-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Incrementing a push notification badge number support coming soon? #723
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
As per the documentation it seems that the badge is supported: https://github.com/ParsePlatform/parse-server/wiki/Push#api |
I think this ticket was about supporting |
Did you try |
You can see in Parse's Push wiki, it says that this hasn't been implemented "yet". Link: https://github.com/ParsePlatform/parse-server/wiki/Push. That's why I was asking if/when/whether it'll ever be implemented... |
Right. |
Just to double check, I tested |
PR is pending review |
Hi, I've updated my package.json file to Thanks. |
I've also updated using the instructions given here: #879 Any ideas why it's not working still @flovilmart ? |
Can you run a query on _Installation to see if the badge value increments correctly? The badge increment is only for iOS devices, (deviceType=ios should be set on _Installation). Also when you say not working at all, what do you mean? |
I did. The badge is still showing zero. Here is my package.json:
I'm using cloud code to send push notifications. As soon as I change the badge value to "1", it works. As soon as I change it Here is me updating my Parse Server:
|
what is the deviceType for your _Installation? |
Oh they are all iOS. I updated my previous comment with more info. |
is it iOS or all lowercase string? Could you dump an excerpt of the query result? |
Sure:
|
nothing logged ? when you try sending the push? |
I got something:
|
so badge is actually undefined. |
yeah, I wonder why? I was using the following function:
Why is badge being sent as "undefined"? |
Maybe Parse server expects an integer instead of string for the |
not sure, we have unit tests to make sure everything is functional, this part is heavily tested through he PushController. I just noticed that your push query is on Parse.User, that is maybe the problem now. |
I updated the cloud code to the following and it still isn't working (shows the same "undefined" badge error):
Do you have any sample apps that you can test to see if "Increment" push notifications are working properly? |
I'm seeing the same behavior as taufiq in my heroku setup as well - all of my push notifications show up but the badge is never incremented despite having badge: "Increment" in the data parameter. My MongoDB entries for installations show badge count staying at 0. Is there any update on this? |
@cra5370 I don't know if you fixed this issue yet but my heroku server started working after updating to the most recent Parse server version. If you used git to set up heroku then follow these steps and it might start working properly:
Other than that, you should look into the docs furthermore. Amazing guys like @flovilmart and the rest of the Parse team are doing a wonderful job keeping and making Parse great and open source. |
@flovilmart P.S: I'm using Docker for AWS elasticbeanstalk deployment. It was also giving me error for mailgun adaptor file. Docker dose not seem to be updated with current parse-server directories. |
Hey any progress on this? Is there a way to get the badge value so I can then count that up ? |
What version of parse-server are you running? The increment should be implemented for a while. |
I belive I am running 1.2.0, but It's a parse server for Microsoft Azure |
Parse server versions start from 2.0.0, the current version is 2.2.22. |
Whoops sorry, in that case the version is 2.1.4, which judging by the current version is very old... |
Yes syou should upgrade then! |
someone should probably update the docs to reflect this sometime. "Here is the list of sending options we do not support yet: |
Yes! Could you do it @jeacott1 ? Push schedule is saved but not run though |
How can I tell whether the open source server will support something or whether I should implement a solution myself? I noticed that on the detailed docs, it said that Parse server doesn't support iOS badge numbers yet. Does this mean it's coming soon? Could I please know when/how I can help to speed this particular part? My project needs to be live on the app store within a week and this part is the only broken part.
I've successfully set up cloud code and fixed up my iOS front-end codes to use the Parse server. Thank you guys so much for everything you're doing with this. Highly appreciate it!
The text was updated successfully, but these errors were encountered: