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
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
The native 'Allow/Deny' prompt/dialog that allows a user to allow or deny push notifications is never presented. However, when calling isEnabled returns as true when calling .hasPermission()
Only iOS show alert request permission receive notification. Android default is grant, and if user don't want to receive notification, they must set in Setting.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behaviour
The below code will initiate the native 'Allow/Deny' prompt/dialog that allows a user to allow or deny push notifications.
var push = PushNotification.init({
ios: {
alert: "true",
badge: "true",
sound: "true"
},
android: {
senderID: '123456'
}
});
Actual Behaviour
The native 'Allow/Deny' prompt/dialog that allows a user to allow or deny push notifications is never presented. However, when calling isEnabled returns as true when calling .hasPermission()
Reproduce Scenario (including but not limited to)
Steps to Reproduce
var push = PushNotification.init({
ios: {
alert: "true",
badge: "true",
sound: "true"
},
android: {
senderID: '123456'
}
});
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 8.1.0
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Pixel C
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
Sample Code that illustrates the problem
try {
var push = PushNotification.init({
ios: {
alert: "true",
badge: "true",
sound: "true"
},
android: {
senderID: '123456'
}
});
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: