Hi, I’ve updated plugin and now i’m having crash on Android when application go into suspended state.That’s my call stack:
I/Corona: core 142: suspended E/AndroidRuntime: FATAL EXCEPTION: FocusHandlerThread Process: com.adb.android.app.myapp, PID: 23761 java.lang.IllegalArgumentException: No such service ComponentInfo{com.adb.android.app.myapp/com.onesignal.SyncJobService} at android.os.Parcel.readException(Parcel.java:1947) at android.os.Parcel.readException(Parcel.java:1889) at android.app.job.IJobScheduler$Stub$Proxy.schedule(IJobScheduler.java:180) at android.app.JobSchedulerImpl.schedule(JobSchedulerImpl.java:44) at com.onesignal.OneSignalSyncServiceUtils.scheduleSyncServiceAsJob(OneSignalSyncServiceUtils.java:137) at com.onesignal.OneSignalSyncServiceUtils.scheduleSyncTask(OneSignalSyncServiceUtils.java:113) at com.onesignal.OneSignalSyncServiceUtils.scheduleSyncTask(OneSignalSyncServiceUtils.java:60) at com.onesignal.OneSignal.onAppLostFocus(OneSignal.java:1089) at com.onesignal.ActivityLifecycleHandler$AppFocusRunnable.run(ActivityLifecycleHandler.java:171) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:171) at android.os.HandlerThread.run(HandlerThread.java:65)
first recognizable call is from OneSignal.onAppLostFocus() method, do you have any ideas how to deal with it?
Bug happens when i stay 2 seconds or longer on native.showPopup from code below, but when i close alert fast enough then bug dosn’t appear. Any ideas?
local permissionOptions = { appPermission = "android.permission.READ\_PHONE\_STATE", urgency = "Critical", listener = function(e) end, rationaleTitle = "Lorem ipsum", rationaleDescription = "Lorem ipsum", settingsRedirectTitle = "Lorem ipsum", settingsRedirectDescription = "Lorem ipsum" } native.showPopup( "requestAppPermission", permissionOptions )
I’ve also updated Corona from 3.178 to 3.408.