Open jimseiwert opened 5 years ago
Hi jimseiwert, Could you show me your device os version and cordova version? So that I can test it for you.
on registration I am getting back undefined for data.azureRegId. I am also not seeing any activity in the azure notification hub for this registration. Am I missing something on registration?
` this.push = PushNotification.init({ notificationHubPath: "{{hub name}}", connectionString: "Endpoint={{connectionstring}}", android: { sound: true }, ios: { alert: "true", badge: true, sound: "false" } });
this.push.on("registration", function(data) { console.log("registering"); console.log(data); console.log(data.registrationId); }); this.push.on("error", function(err) { console.log(err); }); this.push.on("notification", function(data) { console.log(data.message); console.log(data.title); console.log(data.count); console.log(data.sound); console.log(data.image); console.log(data.additionalData); alert(JSON.stringify(data)); });`
Hi jimseiwert, Could you show me your device os version and cordova version? So that I can test it for you.
I am facing the same error on android. Fix is to add
<uses-library android:name="org.apache.http.legacy" android:required="false" />
on registration I am getting back undefined for data.azureRegId. I am also not seeing any activity in the azure notification hub for this registration. Am I missing something on registration?
` this.push = PushNotification.init({ notificationHubPath: "{{hub name}}", connectionString: "Endpoint={{connectionstring}}", android: { sound: true }, ios: { alert: "true", badge: true, sound: "false" } });