[AC-5237] Android: [ti.geofence] UnsopportedOperationException
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-10-21T19:24:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Brian García |
Assignee | Shak Hossain |
Created | 2017-09-26T09:41:56.000+0000 |
Updated | 2017-10-21T19:24:48.000+0000 |
Description
When trying to add a geofence from 6.1.0 SDK to 6.2.2.GA the following error is thrown
[DEBUG] : GeofenceModule: (main) [13,44147] Play Services is available
[DEBUG] : GeofenceModule: (main) [6,44153] Play Services is available
[WARN] : W/System.err: java.lang.UnsupportedOperationException
[WARN] : W/System.err: at ti.geofence.GeofenceRequester.addGeofences(GeofenceRequester.java:251)
[WARN] : W/System.err: at ti.geofence.GeofenceModule.startMonitoringForRegions(GeofenceModule.java:134)
[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeCallProperty(Native Method)
[WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.callProperty(V8Object.java:73)
[WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1109)
[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:154)
[WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6077)
[WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
[ERROR] : TiExceptionHandler: (main) [2,44155] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,44155] - In undefined:174,22
[ERROR] : TiExceptionHandler: (main) [0,44155] - Message: Uncaught Java Exception occurred
[ERROR] : TiExceptionHandler: (main) [0,44155] - Source: geofence.startMonitoringForRegions([ geofence.createRegion({
Hi, Thanks for reaching us. Can you be more specific about test devices version? Please add more details about test code and steps to reproduce. Regards, Aminul
Hi, We have tested ti.geofence version: 2.0.1 with latest SDK 6.2.2.GA on android 6.0 (HTC one m8). So far we have been unable to reproduce this error. Success log
Thanks
let me provide an example later today. I've used it together with ti.map and thus I'd to delete a play-services-base jar
Hello [~bgarcia], did you follow [~aislam]'s guide. Let me know the update of your issue.