We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0.4
I'm having trouble sending pushes to Android 6.0 phone with "high" priority setting. In the code (https://github.com/Redth/PushSharp/blob/master/PushSharp.Google/GcmNotification.cs#L142) i've found that GcmNotificationPriority enum is serialized as int (5, 10) not as strings ("normal", "high") as google's docs require https://developers.google.com/cloud-messaging/concept-options#setting-the-priority-of-a-message.
[JsonProperty ("priority"), JsonConverter(typeof(StringEnumConverter))] public GcmNotificationPriority? Priority { get; set; }
The text was updated successfully, but these errors were encountered:
cbfa73b
Change Serialization of GcmNotification Priority
df992e4
This fixes #679 where the priority was being serialized as a number instead of the text as per Google's docs
No branches or pull requests
What version of PushSharp are you using?
4.0.4
Describe your issue:
I'm having trouble sending pushes to Android 6.0 phone with "high" priority setting. In the code (https://github.com/Redth/PushSharp/blob/master/PushSharp.Google/GcmNotification.cs#L142) i've found that GcmNotificationPriority enum is serialized as int (5, 10) not as strings ("normal", "high") as google's docs require https://developers.google.com/cloud-messaging/concept-options#setting-the-priority-of-a-message.
What are the steps required to reproduce this issue?
Please provide any Exception Stack Traces
The text was updated successfully, but these errors were encountered: