Closed hetang-shah closed 6 years ago
Thank you for pointing this out, our team is working on it and will post an update soon.
Thanks @peperodo for looking into it. Any ETA, I should expect here?
I'm running into this issue also, I'm pretty sure this is the fix for it https://developer.android.com/about/versions/oreo/android-8.0-changes.html#back-all
The most recent build of the SDK that supports Android 8.0: https://github.com/Marketo/android-sdk/tree/preprod
I still have issues with Android 8.1 in version v0.7.6
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1768)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
If I set my targetSdkVersion to 26 instead of 27 it works, but that isn't an ideal solution.
The most recent build (0.7.7 in preprod branch) of the SDK that supports Android 8.0:
Here is the stack trace:
Fix might me moving from
IntentService
toJobIntentService
.