Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin failed registration #1

Open
aguerot opened this issue Feb 17, 2017 · 0 comments
Open

Plugin failed registration #1

aguerot opened this issue Feb 17, 2017 · 0 comments

Comments

@aguerot
Copy link

aguerot commented Feb 17, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant