Hi all,
i’m realy new in ionic,
i try to develop push notification to android,
my code-
app
const options: PushOptions = {
android: { "senderID": 'MY_SENDER_ID' },
ios: {
alert: 'true',
badge: true,
sound: 'false'
},
windows: {},
browser: {}
};
const pushObject: PushObject = this.push.init(options);
pushObject.on('notification').subscribe((notification: any) => {
console.log('Received a notification: ' + JSON.stringify(notification));
});
pushObject.on('registration').subscribe((registration: any) => {
this.registration = registration;
console.log('Device registered: ' + JSON.stringify(registration));
});
pushObject.on('error').subscribe(error => {
console.log('Error with Push plugin ' + error);
});
config.xml
<plugin name="phonegap-plugin-push" spec="2.2.3">
<variable name="SENDER_ID" value="MY_SENDER_ID" />
</plugin>
more details:
ionic 4
phonegap-plugin-push 2.2.3
i run the app on virtual device.
i’m getting error in the app-
’String resource ID #0x0’
Can everyone help me?