-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add new error callbacks to CellLocationProvider #36
Comments
i'm also facing this issue, my app is crashing only in android 8.... do u know how to fix this issue @andygup |
@RameshkrishnanV can you provide a logcat dump of the error? |
@andygup sorry for the late reply. this is my error log Fatal Exception: java.lang.RuntimeException: Unable to pause activity {com.mywired.app/com.mywired.app.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.Integer android.telephony.PhoneStateListener.mSubId' on a null object reference |
There are a number of potential causes:
|
Thank you. Let me check this.
…On Wed 18 Apr, 2018, 20:59 Andy, ***@***.***> wrote:
@RameshkrishnanV <https://github.com/RameshkrishnanV>
There are a number of potential causes:
- If the index.html is calling the AdvancedGeolocation.kill() this can
happen
- Or, if MainActivity is directly calling onDestroy()
- Or, for some reason some other plugin shutdown Cordova first before
this plugin could shutdown.
- Or, something else is using the PhoneStateListener Class...the error
is very strange because this plugin doesn't use the property mSubId,
reference:
https://android.googlesource.com/platform/frameworks/base/+/master/telephony/java/android/telephony/PhoneStateListener.java#306
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQy2HzYWI-4OUkf5BzrtcsNjcvihW-c2ks5tp1vrgaJpZM4J-PeE>
.
|
@RameshkrishnanV you might try the suggestion in this issue: #61. It took a little while to figure the issue out. |
@dorianrod I leaning towards saying this will not affect battery life since the |
Don't start if thread is interrupted: https://github.com/Esri/cordova-plugin-advanced-geolocation/blob/master/src/com/esri/cordova/geolocation/controllers/CellLocationController.java#L135
Unable to provide data due to version restriction: https://github.com/Esri/cordova-plugin-advanced-geolocation/blob/master/src/com/esri/cordova/geolocation/controllers/CellLocationController.java#L175
The text was updated successfully, but these errors were encountered: