-
Notifications
You must be signed in to change notification settings - Fork 1.9k
push.on => "registration" will trigger twice times that only in iOS #57
Comments
@bau720123 Really, I've never seen the registration trigger twice on iOS. Can you put up a gist of the html/js you are using that can reproduce the problem? |
hi @macdonst
but I am using PGB (build.phonegap.com) Cli 5.1.1 with all official core plugin from NPM |
@bau720123 I'm running iOS 8.4 on my test device and I can't reproduce this at all. Do you have a link to the github repo you use to test on PGB? |
hi @macdonst |
@bau720123 |
hi @Mojo90 |
no unfortunately not :-(. Still investigating... |
hi @Mojo90 |
@bau720123 here is a snippet: function initPushService(){
} it is strange because on android it is only called once. |
hi @Mojo90 |
thanks @bau720123 |
@bau720123 Are you using Local Notification Plugin as well? Because I think for me it is called twice because I use both plugins. Anyway as mentioned by me it is ok for now because I am only updating sth if Device Token changed otherwise nothing happens... |
got it |
hi @Mojo90 |
@bau720123 No problem. If you fixed it please let me know. But at the moment I just ignore... |
hi @Mojo90 and @macdonst but still facing same problem that only in iOS (I am in iOS 9) launch it... close the app and launch it again... my full code,index.html
|
Hi @bau720123 , I have tested your code, but in my app it doesn't works, Can you help me ? |
@bau720123 Yeah, I've been able to reproduce this on an iOS9 device as well. |
hi @wakeupmh |
thanks @macdonst |
Yes @ bau720123 , I use deviceready trigger , Can I use another way to show an alert with my registration key ?, I just wanna a test with this plugin, because when i called the function it does not show anything to me in app build |
hi @wakeupmh |
hello @bau720123, In a first moment this app is only for Android version:4.4.2. I'm using a PGB without interface, directly on Sublime text for example, so I only included this following tag: <gap:plugin name="phonegap-plugin-push" source="npm" /> in my config.xml. I'm using phonegap/cordova CLI 5.2. |
hi @wakeupmh |
sorry, this tag: gap:plugin name="phonegap-plugin-push" source="npm" |
hi @wakeupmh
and...if you have other question |
@bau720123, @wakeupmh There is not need to specify 1.2.3 for PhonegapBuild anymore. See the README. |
hi @fredgalvao so...I suggest if you are using PGB,1.2.3 version for now |
I see... that's bad news huh. Well, might as well mention that it's a temporary workaround, so people don't stick with older versions of the plugin unnecessarily. |
@bau720123 can you test with the code that is currently in master? I've merged PR #215 that fixes the issue with the local notifications plugin and I believe it also takes care of this double registration problem. It removes an unnecessary call to |
hi @macdonst
|
Try the
Method as it will get the latest code. On Oct 10, 2015 20:13, "包四維" notifications@github.com wrote:
|
hi @macdonst |
Closing as per @bau720123 |
hi @bau720123 sir code is here : var push = PushNotification.init({ |
This thread has been automatically locked. |
according to the "Quick Example"
https://github.com/phonegap/phonegap-plugin-push
I test in Android 4.4.2 and iOS 8.4 that all in real device
when in android,the "registration" behavior only trigger one time
but...
when in ios,the "registration" behavior will trigger twice times
The text was updated successfully, but these errors were encountered: