-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Sending Push Notifications as "Increment" badge is sent as "Undefined" to APNS #897
Comments
and you don't see the badge property set into the installations? |
The badge property isn't updated when using Here's what I changed:
from this:
|
I belive I found the problem. |
Yay, please let me know how to fix it if you figure it out! =] |
in the lib folder, locate Routers/PushRouter.js line 63 replace req.body by req.body.data let me know |
For some reason, I can't update the git changes I just made. I'm getting this:
Sorry, I know this is an unrelated part of the question. |
Also, please note that it wasn't line "63" for me and I can't find a "lib" folder, I found a "src" folder. Could you please update the master branch and let me know? |
Try from the fix branch: cd ./parse-server git commit -am 'uses fix branch' |
Still getting issues like this:
Maybe I'm not allowed to change the server until and unless the master Parse server git is updated? |
I got to the bottom of it, added more unit tests to prevent regressions |
I updated to the master branch just now. I tried Push Notification with Increment again and it's still showing the same problems:
|
Btw, I did noticed something. When I send push notification with |
So now the badge is properly set on the device when you specify a value. That's better. |
I can't really test whether PushController.js is being used or not. Any edits I make is not being updated in the server for some weird reason (also I'm new to git stuff). The master repo is the only one that my server grabs from? My cloud code is being called properly as far as I can see but after that it stops working. I'm pretty sure PushController.js is being called properly because otherwise how else is it pushed to APNS? |
Can you test locally? I'll try to dig deeper with the APNS provider |
@taufiq-husain what's the status on that? Did you manage to setup parse-server locally and test that feature? |
Nope, I'll do it as soon as possible and let you know. Isn't anyone else experiencing the same issue with "Increment" badge? |
Oh it just fixed itself now on the production server too. I don't know what changed but I updated Parse server last like maybe 4-5 days ago. This issue has been resolved! |
Yay! Finally! |
Even though the Parse Push Notification support has been added as referenced here: #740 and here: #723. I've updated my Parse servers and updated my push notification cloud code (Javascript) but I'm still getting no increment on push notifications. I've traced the logs and it shows this:
The issue maybe that the badge is not converted from Integer to String or something. Whenever I change my cloud code to
badge: 1
, it starts to work.Here is my cloud code:
Any ideas on how I can fix this issue?
The text was updated successfully, but these errors were encountered: