-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Android RuntimeException with LocationProviderChangedReceiver #80
Comments
You are not the only one having this issue, I have the exact same problem! I also tested on Android 6 with Cordova 6 and it has the same issue! |
Tried that today, same problem for me. |
Did some testing: The problem is that As a workaround I'm now just calling one other function to initialize the plugin and everything is so far looking well. |
I haven't tested this but a fix would be loading the plugin as soon as the application launches. So to have it initialized on load time we should create a pull request (not having time today) changing <feature name="Diagnostic" >
<param name="android-package" value="cordova.plugins.Diagnostic"/>
</feature> to <feature name="Diagnostic" >
<param name="android-package" value="cordova.plugins.Diagnostic"/>
<param name="onload" value="true" />
</feature> in the plugin manifest. |
Sorry it's taken a while - just got back from holiday. This is resolved by commits 4410762 and 92f64de and published to npm as |
Note that |
Hi,
thanks for the nice plugin. Unfortunately it crashes on my device with the following error and stacktrace:
It seems that on line 837,
instance
is null. Don't know if it's always null or only sometimes.I think the thing is fixable by registering the BroadcastReceiver in-line (and not through the manifest) so that we can keep a reference of the CordovaPlugin. But the question is more: why am I the only one encountering this bug?
Any idea? thanks
Android version 5.0, Cordova 6.2, plugin freshly installed.
The text was updated successfully, but these errors were encountered: