-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour #42
Comments
Are you using FCM? |
GCM/FCM yea (it still seems to be in a transitional phase) |
It's a known issue. It has to do with the payload. It's not formatted correctly. Check out the documentation on how to send the correct payload. |
you mean the double data key? because i am sending it, and at times it works, but occasionally the above error happens. I cant yet reproduce a solid testcase for this though |
can you provide the code of how you use the module? |
i've made a bunch of code around it, but it boils down to the wiki examples:
Then the Here's a snippet from the tiapp.xml:
|
You've given three scenarios in the original comment but not specified when the error happens. |
I know, unfortunately I cant tell when exactly it happens, but if i would estimate:
|
i've checked my API for the third time, im sending the nested |
Im also getting
but I cant say if its related. Push Notifications work fine on initial app load |
The last one isn't related and it shouldn't be considered. It could be something with the Activity. Will make some tests as soon as I have some time |
Please do. Let me know when you need me to test something on the newest branch. |
I just noticed gittio has v2.0.2 while github has v2.0.0 as the latest release. I've been running 2.0.0 all the time |
Well, let me know if it fixes the issue |
Unfortunately I'm getting the exact same error using 2.0.2. I was previously using the gcm api endpoint ( https://gcm-http.googleapis.com/gcm/send ) but I've now changed it to fcm ( https://fcm.googleapis.com/fcm/send ). It did not make a difference though. However I noticed in the tigoosh readme that you are sending notification data also in the
|
okay I think i've found a cause of the problem. I wasnt consistently calling I guess you will always need to call the ti.goosh module since it has to attach some Java stuff? |
Yes that is correct. The module needs to be instantiated every time you lunch the app since it handles any incoming notification. |
Any clue on why the above error happens? This module seems quite unstable at times. Am I missing some manifest rules? I'm testing a few situations here:
Platform: Sony Xperia Z3 Compact, Android 6.0.1
The text was updated successfully, but these errors were encountered: