Integrated Plugins PushPlugin 1.3.3 iOS bug

5 posts, 0 answers
  1. Joe
    Joe avatar
    16 posts
    Member since:
    Jan 2013

    Posted 06 Nov 2013 Link to this post

    Using Integrated PushPlugin 1.3.3, I deployed to device with Graphite to an iPhone 4 running iOS 7.0.2 and launched my app. For the onDeviceReady handler I am calling:

    window.plugins.pushNotification.register(onTokenHandler, onErrorHandler, { "badge": "true", "sound": "true", "alert": "true", "ecb": "onNotificationAPN" });

    I clicked "Don't Allow" in the "[App name] Would Like to Send You Push Notifications" dialog but onTokenHandler was fired with a resulting token anyway. Apparently a user's selection is ignored and the APNS registration happens but the token is invalidated by the dialog selection and a new one will not be issued when register is called with subsequent attempts and thus the onTokenHandler callback will not occur. I also tried unregister() and then register() again to no avail.
  2. Joe
    Joe avatar
    16 posts
    Member since:
    Jan 2013

    Posted 07 Nov 2013 Link to this post

    I reported this in detail on the plugin GitHub issues:

    https://github.com/phonegap-build/PushPlugin/issues/108
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Nov 2013 Link to this post

    Hi Joe,

    The Push Plugin is not maintained by Icenium, so posting the issue to its repository is the best option. Thanks for sharing that with the community!

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  4. Joe
    Joe avatar
    16 posts
    Member since:
    Jan 2013

    Posted 04 Dec 2013 Link to this post

    Steve, Bob East closed my PushPlugin issue stating, "Cordova 3.0 and above requires PushPlugin version 2.0.0 or above." https://github.com/phonegap-build/PushPlugin/issues/108

    When looking at the PushPlugin GitHub master branch I see that the current version is 2.1.1 but when creating a new Icenium Cordova 3.0 project the Integrated PushPlugin is labeled as Version 1.3.3 and the Plugin.xml matches. Did Icenium pair this old plugin version with Cordova 3.0 project templates as an oversight per the requirements stated by Bob? I will disable the Integrated Plugin from my project and add PushPlugin 2.1.1 as a Custom Plugin and see if this fixes the issue.

    https://github.com/phonegap-build/PushPlugin/blob/master/plugin.xml
    <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
        xmlns:android="http://schemas.android.com/apk/res/android"
        id="com.phonegap.plugins.PushPlugin"
        version="2.1.1">


  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 Dec 2013 Link to this post

    Hello Joe,

    There was no 2.x version of the plugin at the time we released Cordova 3.0 (it was probably a week after Cordova released it). That is why we amended the 1.x plugin to work with Cordova 3.0 and in our tests it did work.

    We would be upgrading to Cordova 3.2 next week and the PushPlugin version is upped to 2.0.5. Of course if you wish to be up to date, you can always download the latest version from the repo and use it as custom Cordova plugin.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top