-
-
Notifications
You must be signed in to change notification settings - Fork 735
Push notification is not working after Upgrade 1.13.0 #525
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
Comments
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
Upgrade parse android sdk 1.8.0 to 1.13.0 last week. For Ionic application using parse android PSDK Don't see any notification on device when sending notifications through parse web app or from the tutorial test button. In Webapp, I can see notifications with Pushes Sent as 0 and In delivery report it shows |
do you have deviceToken or GCMSenderId field filled in installation table ? |
For me the issue was that GCM is now deprecated and Google only gives FCM serverId and senderId. These are not valid in GCM server and gives me: java.lang.Exception: GCM registration error: INVALID_SENDER . So maybe adding FCM support to SDK helps in future. |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
I also don't have a GCM key, only a FCM key. Please add FCM support, I need a fix ASAP. |
Did someone fix this problem? |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
Same. Up until around Sept 20th, the Installations have "gcm" written in the pushType column and have a deviceToken. However, sometime around Oct 5th, pushType & deviceToken is 'undefined'. Also, GCMsenderId is undefined since July 22nd (in my Installation table). Is there some server side migration that is causing this? Edit: Parse SDK 1.13.0 Android In my case no upgradation of library has been done. I have been using 1.13.0 since the beginning, and earlier I was able to receive push notifications. (June was the last time I had tested Push-notifications; app is still in development) Now nothing is shown on device. Also, push-notifications through cloudCode are sent successfully but have 0 recipients,ie, there is no error message, the success function is called Edit2: Upgraded library to 1.13.1 ; Still no change. |
Application.java file:
Everytime I start the app; the following log is recorded |
Manifest:
PushRec.java
When I start the app the following logs are recorded:
|
@grantland Is there anything you'd like me to provide specifically? Does it have something to do with this? @inlined |
@summers314 This may sound stupid, but does it work after specifying a notification icon in your manifest?
I ran into this exact issue a few weeks ago. I didn't specify a notification icon because I was building my own notifications from a custom receiver. For some reason, it suddenly started working after adding this to my manifest, even if it's not being used. |
@Pkmmte btw for new androids the icon should be white&transparent png, but this wont affect anything most likely |
@Pkmmte That doesn't solve it either. In your installation class, does it show 'undefined' under the "pushType" & "deviceToken" column? Earlier this year it should gcm-under pushType & a string value under deviceToken. Should be an error with how I'm registering the Installation class in the Application.java file or something in the manifest? I've shared my manifest.xml file above I doubt the if the error is on the client side, because when I send a PushNotification from the web-panel it shows 0-sent. Had it been a client side error it wouldn've sent it from the server side. This is how I register Push and Installation in my Application.java class ; has this approach been changed?
|
Sorry for the late reply. FCM and GCM Sender IDs are the same thing (your Google Cloud project #), so I can't see that being the problem. My linked change was originally intended to help Parse upgrade to be compatible with Google's upcoming features before I could tell anyone that they were coming. The change did include a few bugfixes that never got patched in AFAIK--e.g. including setting the senderID on the Installation object--but their absence shouldn't introduce this aggressive a bug. Without that change's bugfixes Parse.com keeps sending messages using its own server key. That might mess up a few stats, but shouldn't affect your ability to send messages. Now that Firebase Cloud Messaging is public and the new auto-init APIs are available, the real fix (for v4 incompatibility) is to rip out most of the Parse Android SDK code for registering for pushes. The Parse SDK should stop using undocumented APIs for GCM v3, which aren't compatible with [F|G]CM topics or Firebase Notifications. Instead, it should follow the FCM getting started guide. My change was rejected for two primary reasons:
After some thought, I've come up with a solution to (1): This would avoid a compile-time dependency on GMSCore, cut out lots of Parse code, and let ParsePush be compatible with newer features of FCM. I'd be curious whether keepers of the SDK (e.g. @grantland) are for this. Unfortunately, my last change took a lot of time and I just don't have the free cycles anymore. Someone else would have to pick up the charge. [1]: One small tip. If I recall my hacking from 6mo ago correctly, the |
Hi @inlined ! Thanks for replying. In my case I have a valid installationID. However, under pushType& deviceTokenit shows undefined; where previously it had a string (eg: APA91bETlRdCtLd9o-SpReI86avXrYwg5eYI12QFqxYMpXl8XxPS5FsHwY0jCRuSlfpUZQWJmqUOjdZfdag2A04LRKJsy1N4VyOhbZzE5DHQg00c9A7K4VPSiRebzfetvasz-z3ubbRQ) and gcm, in the respective columns. My recent installation objects have undefinedwritten under these two columns. I haven't updated my Android (5.0.2) since when it was working. So I suppose its either a Google/GCM issue or Parse SDK issue? Since you mentioned that:
But in the Installation class on Parse I have two columns that show |
Hmm. It's possible. The part of Android that handles push notifications is in Google Mobile Services, not the core OS. This means you get updates whether or not you upgrade Android. If you're not getting pushType or devideToken it sounds like something is failing in the SDK. Try calling Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE) in your Application (not Activity) onCreate |
@inlined Thanks a lot! Turns out, I'd changed the package name but that didn't reflect throughout other parts of the manifest which caused pushType and deviceToken to be 'undefined' . Would never have caught it if you'd not mentioned the above method (didn't know it existed either, thought parse displayed all errors/warnings/failures by default). Thanks again!! |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
I really wish we would stay up to date with FCM, up to date with LiveQuery etc. It’s sad to see this SDK in a stale state. I can see much more activity and enthusiasm in parse-server and other parse SDKs. With all respect, maintainers here seem to be very busy with something else, but also restrictive on what to merge, while this SDK is far from complete and bug-free. And with parse-server implementing new features each week, it will be hard to ever get at par again. |
I've decided to move on to firebase finally :( I'm a front end dev, hosting a Parse-Server maintaining it all seems like a lot of effort with a lot of room for mistakes. |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback. |
If anyone is still facing this problem, please find solution here: Attached library is having deviceToken editable. |
I upgrade my application to 1.13.0. then it subscribe on installation table but push notification is not receiving
The text was updated successfully, but these errors were encountered: