Skip to content

Android PushNotification Is undefined  #267

Description

@Kklung011

I have a Cordova project

This is my code:

try{
alert(window.PushNotification)
var push = window.PushNotification.init({
android: {
senderID: this.$appInfo.NotificationSenderID,
},
ios: {
alert: "true",
badge: "true",
sound: "true",
clearBadge: true,
},
windows: {},
});
}catch(e){
alert(e)
}

This code in iOS is working but not working in android
It will alert ‘undefined ’

I try anyway as I can search but didn’t find solution
Can any give any solution can fixed it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidRelated to the Android platforminfo-neededFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions