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
Hi! I'm having this crash in several devices with Android 8:
Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } in io.ona.kujaku.receivers.KujakuNetworkChangeReceiver@39ceec7
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1401)
at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(:2)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6746)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.dhis2.debug/io.ona.kujaku.services.MapboxOfflineDownloaderService (has extras) }: app is in background uid UidRecord{7159e69 u0a161 TPSL bg:+17m38s556ms idle procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1577)
at android.app.ContextImpl.startService(ContextImpl.java:1532)
at android.content.ContextWrapper.startService(ContextWrapper.java:664)
at io.ona.kujaku.receivers.KujakuNetworkChangeReceiver.resumeMapDownload(KujakuNetworkChangeReceiver.java:40)
at io.ona.kujaku.receivers.KujakuNetworkChangeReceiver.onReceive(KujakuNetworkChangeReceiver.java:33)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1391)
at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(:2)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6746)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
It is happening when trying to start the MapboxOfflineowloaderService as it is using the .startService instead of .startForegroundService.
Don't know if I am missing something.
This is how we init the library:
@Balcan Sorry for the late reply. I recently realized that I was my notification settings for this repo were off(I did not have watching ON).
Kindly disable the map-download-resumption in the mean-time, the background restrictions are probably causing this. We added the foreground notification instead since Mapbox supports added download resumption whenever a network connection is detected. The foreground service & notification keep Mapbox alive long enough to wait for a network resumption intent.
This is being treated as a bug and might be deprecated. Also update to the latest version of kujaku 0.8.9 which has other bug fixes & updates from Mapbox
Hi! I'm having this crash in several devices with Android 8:
It is happening when trying to start the MapboxOfflineowloaderService as it is using the .startService instead of .startForegroundService.
Don't know if I am missing something.
This is how we init the library:
Thank you!
The text was updated successfully, but these errors were encountered: