-
Notifications
You must be signed in to change notification settings - Fork 1.9k
on registration callback getting called repeatedly. #353
Comments
@efanurag not even close to enough information for a meaningful answer. |
@macdonst Sorry for bothering you with in sufficient information. I have written a JavaScript function which is supposed to call when the registration request for receiving cloud notification for ios is successful. This callback function is getting called repeatedly like it is called in loop on iOS. Though the same function is working fine on Android and is called only once for GCM registration. |
@efanurag what version of the plugin are you using? What version of iOS is exhibiting this problem? Can you show your code? |
@macdonst I just added plugin to app by On deviceready event I am doing var push = Pushnotification.init(); push.on('register', onRegister); and onRegister is defined as follow. function onRegister(data){ Now data is getting printed indefinitely. Please bear with me, I am writing this on my phone and I am off to work, so whatever I can recall I wrote it here. Hope you understand the problem I am facing. |
Ios version is 9.1 |
phonegap-plugin-push 1.4.2 "PushPlugin" |
Simon happy to say that your plugin is fine, the culprit is another Cordova plugin. |
@kishorpawar & @efanurag can this issue be closed then? Also, what is the other plugin causing the issues? |
Yes, You can close this issue. Somehow the callback for onRegister was getting called indefinitely when we add that plugin. The plugin clevertap-cordova |
This thread has been automatically locked. |
I put a console in handler for registration success. which is printing repeatedly.
The text was updated successfully, but these errors were encountered: