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
Describe your issue:
Unable to wake the android phone when I receive a Push GCM Notification
What are the steps required to reproduce this issue?
Ensure my app has been started once
Restart phone
Ensure phone is on lock screen and screen light is off i.e sleep mode
Send GCM notification from my Rest API
I receive notification as I hear the notification sound, but I don't see the message as the device is still in sleep mode. (the notification is on lock screen) but it never wakes the device up for the user to see it.
I don't have this problem with IOS.
This is the message I'm sending. My android phone does not wake up when it receives this notification below, it only produces the sound and the screen is still in sleep mode
gcmNotification = new GcmNotification
{
To = notification.DeviceToken,
Data = JObject.FromObject(new
{
title = notification.Title,
body = notification.Body,
encrypted = notification.Encrypted,
eventName = notification.EventName,
eventArgs = notification.EventArgs,
priority = 2
}),
Priority = GcmNotificationPriority.High,
TimeToLive = 0
};
The text was updated successfully, but these errors were encountered:
mbullock976
changed the title
GCM Notification does not wake up my Android device when it is in sleep mode
GCM Notification does not wake up my Android device when it is in sleep mode and the app is not running
Jul 5, 2019
What version of PushSharp are you using?
4.0.10
Describe your issue:
Unable to wake the android phone when I receive a Push GCM Notification
What are the steps required to reproduce this issue?
I don't have this problem with IOS.
This is the message I'm sending. My android phone does not wake up when it receives this notification below, it only produces the sound and the screen is still in sleep mode
gcmNotification = new GcmNotification
{
To = notification.DeviceToken,
Data = JObject.FromObject(new
{
title = notification.Title,
body = notification.Body,
encrypted = notification.Encrypted,
eventName = notification.EventName,
eventArgs = notification.EventArgs,
priority = 2
}),
Priority = GcmNotificationPriority.High,
TimeToLive = 0
};
This is my android manifest xml:
new 84.txt
Please can someone help, thank you
The text was updated successfully, but these errors were encountered: