This is a migrated thread and some comments may be shown as answers.

Integrated Plugins PushPlugin 1.3.3 iOS bug

4 Answers 70 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 2
Joe asked on 07 Nov 2013, 04:14 AM
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.

4 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 07 Nov 2013, 06:30 AM
I reported this in detail on the plugin GitHub issues:

https://github.com/phonegap-build/PushPlugin/issues/108
0
Steve
Telerik team
answered on 08 Nov 2013, 02:26 PM
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.
0
Joe
Top achievements
Rank 2
answered on 05 Dec 2013, 01:59 AM
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">


0
Steve
Telerik team
answered on 06 Dec 2013, 04:47 PM
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.
Tags
Report a bug
Asked by
Joe
Top achievements
Rank 2
Answers by
Joe
Top achievements
Rank 2
Steve
Telerik team
Share this question
or