如何为sencha touch 2应用程序实现推送通知?我需要将设备ID作为第一步发送到php服务器。我没有在这方面走得太远。我刚创建了一个用于启用/禁用推送通知的滑块
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%'
}
]
},
});
因此,当我启用上面的滑块时,我需要将设备ID发送到服务器。我需要android和ios设备的帮助
答案 0 :(得分:0)
检查出来:
http://blog.pubnub.com/building-a-pubnub-powered-chat-app-with-sencha-touch-2/
我已经使用它在我的应用程序中进行推送通知,它就像魅力一样。