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
I get the following error message on the register promise rejection:
Plugin failed registration: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.optString(java.lang.String, java.lang.String)' on a null object reference
Here is the code I use register: let res = azureNotificationHubs.register( 'hubname', 'Endpoint=sb://<ns>.servicebus.windows.net/;SharedAccessKeyName=<keyname>;SharedAccessKey=<key>') .then((result) => { let registrationId = result; console.log(Registration id: ${registrationId}); }, (err) => { console.error(Plugin failed registration: ${err}); });
I am using
Cordova 6.3.1
Nodejs 4.4.3
npm 2.15.0
cordova-simulate 0.3.9
cordova-android 5.2.1
cordova-ios 4.2.0
cordova-windows 4.4.2
The text was updated successfully, but these errors were encountered:
Hi,
I get the following error message on the register promise rejection:
Plugin failed registration: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.optString(java.lang.String, java.lang.String)' on a null object reference
Here is the code I use register:
let res = azureNotificationHubs.register( 'hubname', 'Endpoint=sb://<ns>.servicebus.windows.net/;SharedAccessKeyName=<keyname>;SharedAccessKey=<key>') .then((result) => { let registrationId = result; console.log(
Registration id: ${registrationId}); }, (err) => { console.error(
Plugin failed registration: ${err}); });
I am using
Cordova 6.3.1
Nodejs 4.4.3
npm 2.15.0
cordova-simulate 0.3.9
cordova-android 5.2.1
cordova-ios 4.2.0
cordova-windows 4.4.2
The text was updated successfully, but these errors were encountered: