如何为 sencha touch 2 应用程序实现推送通知?作为第一步,我需要将设备 ID 发送到 PHP 服务器。我在这方面没有取得太大进展。我刚刚创建了一个用于启用/禁用推送通知的 slider
Ext.define('MyApp.view.SettingsPanel', {
extend: 'Ext.Panel',
xtype:'settingspanel',
id:'settingspanel',
backButton : {
visible : true,
ui : 'blue_back_button'
},
config: {
items:[
{
xtype:'togglefield',
name: 'pushnotifications',
value: 1,
label: 'Enable Push Notifications?',
labelWidth: '40%',
height:'100%'
}
]
},
});
所以当我启用上面的 slider 时,我需要将设备 ID 发送到服务器。我需要有关 android 和 ios 设备的帮助
最佳答案
检查一下:
http://blog.pubnub.com/building-a-pubnub-powered-chat-app-with-sencha-touch-2/
我已经用它在我的应用程序中制作推送通知,而且效果很好。
关于android - 使用 sencha touch 2 开发的应用程序的推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14133588/