android - 使用 sencha touch 2 开发的应用程序的推送通知

标签 android push-notification sencha-touch-2 apple-push-notifications phonegap-plugins

如何为 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/

相关文章:

Android 应用程序创建两个启动器图标

java - Android/Java 为特定类找到正确的库

ios - 应用程序未运行时不会收到远程通知

sencha-touch - 在 sencha touch 2 中动态加载列表

android - Windows 10 上的 meteor install-sdk android 出错

android - Graphhopper。我可以只加载部分图形文件以避免 OutOfMemory 错误吗?

ios - 使用无法在 azure 通知中心工作的标签注册推送通知

java - Java 中的 Android GCM 推送通知服务器端

javascript - 我无法将数据从 Controller 传递到 Sencha Touch 2.4 中的 View

list - Sencha Touch 2 列表背景改变