【问题标题】:Where is tokenHandler in Pushwoosh's Phonegap Build example?Pushwoosh 的 Phonegap Build 示例中的 tokenHandler 在哪里?
【发布时间】:2014-01-21 00:36:46
【问题描述】:

根据这里的例子,第4步:-

http://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/ios-push-notification-sdk-for-phonegap/

上面写着“从 Phonegap Push Plugin 修改 tokenHandler 回调(当然要替换“YOUR_PUSHWOOSH_APP_ID”)”

修改。建议有一些东西要开始修改。 PushNotification.js 都不是(下面的链接)

https://github.com/phonegap-build/PushPlugin/blob/master/www/PushNotification.js

也不是其他 pushwoosh 代码,pushwoosh.js

包含要修改的任何此类代码。关于这是哪里的任何想法?

【问题讨论】:

    标签: cordova pushwoosh


    【解决方案1】:

    您可以在 PushPlugin 示例中找到 tokenHandler:

    https://github.com/phonegap-build/PushPlugin/blob/master/Example/www/index.html

    请问您为什么不使用 Pushwoosh Phonegap Build 插件?它比 GenericPush 插件有更多的功能。

    此示例是集成了 Pushwoosh 插件的 Phonegap Build 的“即用型”应用程序:

    https://github.com/shaders/phonegap-3-sample-app

    【讨论】:

    • 谢谢。与此同时,我实际上已经付钱给了一家机构来帮我解决这个问题,但我会回去试试看我能不能把它弄好。我不确定我之前是否看过您的示例 - GitHub 上似乎有很多轻微的变体,其中一些肯定不会在 PhoneGap Build 中编译。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多