We have a crucial problem with PushNotification module on Both Android and iOS and the problem is :
When the registration got succeeded the Event Emitter is not fired neither on Success nor on Failure ! and i have investigated the problem and modified some lines to find out the problem and it was as the following:
This problem was visible at many apps i have developed, in some apps only in the MainView.ux give me a callback and the rest sometime yes and the most is not !
So, please figure out the problem and have a hotfix soon.
PS: i’m using Cloned version of Fuselibs from the master branch.
Hey Uldis, you didn’t get the error. the error is on the Callback only !
I have added some lines to detect the problem source and it was from your side because:
1- I have initiate the Push.
2- The Push notification generates the RegID.
3- I have print out the RegID.
4- The library then fires emit the event registrationSucceeded.
5- The UX event never fired --> this is the problem that not all the time i’m getting notified .
You say: Push notification generates the RegID. No, it does not. I explained that in my post above.
Until you provide a perfectly clear description of the problem (no, you haven’t), there is nothing else we can do. I’m doing my best to try and understand what you’re reporting, but currently all I see is false expectations.
My interpretation of the problem is (after discussing a little with Ahmed on slack):
He is trying to say that when he attaches the registrationSucceded handler in the root of MainView.ux, then he gets the callback all the time, while if he does so in a different view, it starts to be faulty. This sounds to me like a race condition with the event.
push.on("registrationSucceeded", function() {... - if the callback here is registered “too late” then it never gets the memo. The event emitter probably needs to fire on subscription if the registration has already succeded.
But this is not my domain, I’m poking some guys internally to have a closer look.