Open
Description
What happened?
I am using Flutter SDK 3.92.2 and onesignal_flutter 5.3.0
and the process seems sucked in create channel for android :
W/System.err(12870): java.lang.IllegalArgumentException
W/System.err(12870): at android.os.Parcel.createExceptionOrNull(Parcel.java:3246)
W/System.err(12870): at android.os.Parcel.createException(Parcel.java:3226)
W/System.err(12870): at android.os.Parcel.readException(Parcel.java:3209)
W/System.err(12870): at android.os.Parcel.readException(Parcel.java:3151)
W/System.err(12870): at android.app.INotificationManager$Stub$Proxy.createNotificationChannels(INotificationManager.java:3675)
W/System.err(12870): at android.app.NotificationManager.createNotificationChannels(NotificationManager.java:1028)
W/System.err(12870): at android.app.NotificationManager.createNotificationChannel(NotificationManager.java:1016)
W/System.err(12870): at com.google.android.gms.common.GoogleApiAvailability$$ExternalSyntheticApiModelOutline1.m(R8$$SyntheticClass:0)
W/System.err(12870): at com.onesignal.notifications.internal.channels.impl.NotificationChannelManager.createChannel(NotificationChannelManager.kt:150)
W/System.err(12870): at com.onesignal.notifications.internal.channels.impl.NotificationChannelManager.processChannelList(NotificationChannelManager.kt:197)
W/System.err(12870): at com.onesignal.notifications.internal.listeners.DeviceRegistrationListener.onModelReplaced(DeviceRegistrationListener.kt:52)
W/System.err(12870): at com.onesignal.notifications.internal.listeners.DeviceRegistrationListener.onModelReplaced(DeviceRegistrationListener.kt:26)
2
W/System.err(12870): at com.onesignal.common.modeling.SingletonModelStore$replace$1$1.invoke(SingletonModelStore.kt:44)
W/System.err(12870): at com.onesignal.common.events.EventProducer.fire(EventProducer.kt:50)
W/System.err(12870): at com.onesignal.common.modeling.SingletonModelStore.replace(SingletonModelStore.kt:44)
W/System.err(12870): at com.onesignal.core.internal.config.impl.ConfigModelStoreListener$fetchParams$1.invokeSuspend(ConfigModelStoreListener.kt:106)
W/System.err(12870): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W/System.err(12870): at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
W/System.err(12870): at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
W/System.err(12870): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
W/System.err(12870): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
W/System.err(12870): at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
W/System.err(12870): at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
W/System.err(12870): at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
W/System.err(12870): at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
W/System.err(12870): at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
W/System.err(12870): at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
W/System.err(12870): at com.onesignal.common.threading.ThreadUtilsKt$suspendifyOnThread$1.invoke(ThreadUtils.kt:69)
W/System.err(12870): at com.onesignal.common.threading.ThreadUtilsKt$suspendifyOnThread$1.invoke(ThreadUtils.kt:67)
W/System.err(12870): at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
and turns out the one signal panel shows [Permission Not Granted]
Steps to reproduce?
1. Install Flutter
2. install onesignal flutter with official guide
3. OneSignal.initialize and OneSignal.Notifications.requestPermission
4. crash with java.lang.IllegalArgumentException
What did you expect to happen?
Subscribed normally.
OneSignal Flutter SDK version
5.3.0
Which platform(s) are affected?
- iOS
- Android
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels