phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Android screen not waking up #2339

Open HugoHeneault opened 6 years ago

HugoHeneault commented 6 years ago

Expected Behaviour

With high priority notification, the phone should wake up to show the notification.

Actual Behaviour

The notification vibrates and makes sound, but the screen remains off.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 7.1

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Galaxy S7 edge / HUAWEI P8 Lite 2017

Cordova CLI version and cordova platform version

cordova --version                                   8.0.0
cordova platform version android                    android 6.3.

Plugin version

cordova plugin version | grep phonegap-plugin-push   phonegap-plugin-push 2.1.3 "PushPlugin"

Sample Push Data Payload

{
    to: deviceID,
    priority: "high",
    data: {
        title,
        message: body,
        priority: 2,
        notId,
        visibility: 1,
        vibrationPattern: [0, 3000, 500, 3000, 500, 3000],
        "content-available": 1,
        "force-start": 1,
        soundname: "sound",
        android_channel_id: "call"
    }
}
macdonst commented 6 years ago

https://stackoverflow.com/questions/45614065/wake-up-screen-on-notification-recieved