parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Sending push from .Net client SDK

Open oyvindvol opened this issue 10 years ago • 2 comments

I am using the Parse 1.7.0 Nuget package in my .Net parse client. Before migrating I sendt pushes from .Net code like this:

var push = new ParsePush {
                      Channels = new List<string> { "channel" },
                      Data = new Dictionary<string, object> {
                          { "alert", "alertText" },
                          { "badge", 1 },
                          { "sound", "default" }
                       }};
await push.SendAsync();

After migration I get this exception when sending push: unauthorized: master key is required. Where do I put the master key for sending push notifications from .Net SDK?

oyvindvol avatar Mar 15 '16 18:03 oyvindvol

Currently client push is not supported. You will need to create a cloud function to send the push, then call that from the client.

drew-gross avatar Mar 15 '16 20:03 drew-gross

Ok, thanks.

oyvindvol avatar Mar 16 '16 07:03 oyvindvol