You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #311 got merged I started testing it again. I started seeing
"Master key is invalid, you should only use master key to send push'" on Parse push registrations.
Hi @rogerhu, as we said in wiki, we do not officially support client push yet. The main reason is related to security. Since you will distribute the app with your clientKey, malicious users can use that to send push notifications to your app users if you enable client push. For Parse.com, we have the dashboard to remind you and allow you to change this setting. It is disabled by default. For open parse server, we simply disable the client push at the beginning. Compared to client push, we always recommend developers to use cloud functions to send push notifications.
I will send a PR to allow you to enable client push when you initialize parse server later. Removing the checking does not have an effect on the push functionality, just be aware of the security issue I mention to you.
changed the title [-]validateMasterKey() call prevents Android SDK from registering for push notifications[/-][+]Client push unavailable[/+]on Feb 14, 2016
Thanks again for the input...the security concerns are duly noted.
Wondering if there's a PR that you have? We have a bunch of group projects that are going to be spinning up hosted Parse so curious to see if we'll be able to get it so it can be supported.
How to send client push notifications for multiple users using cloud code? I am able push to single user with help of this link (I am unable to come up with Query for multiple users?)
Activity
rogerhu commentedon Feb 13, 2016
After disabling it, I was able to validate user and channel pushes though!
wangmengyan95 commentedon Feb 14, 2016
Hi @rogerhu, as we said in wiki, we do not officially support client push yet. The main reason is related to security. Since you will distribute the app with your clientKey, malicious users can use that to send push notifications to your app users if you enable client push. For Parse.com, we have the dashboard to remind you and allow you to change this setting. It is disabled by default. For open parse server, we simply disable the client push at the beginning. Compared to client push, we always recommend developers to use cloud functions to send push notifications.
I will send a PR to allow you to enable client push when you initialize parse server later. Removing the checking does not have an effect on the push functionality, just be aware of the security issue I mention to you.
rogerhu commentedon Feb 14, 2016
Yep makes sense thanks!
[-]validateMasterKey() call prevents Android SDK from registering for push notifications[/-][+]Client push unavailable[/+]rogerhu commentedon Feb 17, 2016
Thanks again for the input...the security concerns are duly noted.
Wondering if there's a PR that you have? We have a bunch of group projects that are going to be spinning up hosted Parse so curious to see if we'll be able to get it so it can be supported.
Thanks!
edwardyue commentedon Feb 20, 2016
I encountered the same too
[Error]: Master key is invalid, you should only use master key to send push (Code: 115, Version: 1.12.0)
Could you please send us the solution?
gfosco commentedon Feb 20, 2016
Are you trying to send a push from Android? We are not going to support that, you should call a cloud function and send the push from there.
If you're having a problem just registering for push, not sending, please re-open.
gowridev commentedon May 6, 2016
How to send client push notifications for multiple users using cloud code? I am able push to single user with help of this link (I am unable to come up with Query for multiple users?)