Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneSignal Flutter v5.0.1 not working #742

Closed
1 task done
akanxa opened this issue Sep 15, 2023 · 13 comments
Closed
1 task done

OneSignal Flutter v5.0.1 not working #742

akanxa opened this issue Sep 15, 2023 · 13 comments

Comments

@akanxa
Copy link

akanxa commented Sep 15, 2023

How can we help?

In this major version release of OneSignal SDK, the message goes through successfully, but in the OneSignal account, it displays a failed status, and the message is not getting delivered.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Sep 15, 2023

Hi @akanxa,

Failed delivery can be caused by a few different issues:

  1. Your OneSignal Application Settings are incorrect.
  2. These tokens belong to an app that does not match your OneSignal settings.
  3. A backend error occurred.
  4. The FCM sender id on Android or the Bundle ID on iOS have changed from what these devices originally subscribed under.

We need more information to understand the issue.

  • Can you give more information about your reproduction steps?
  • What is the Android device and version?
  • Does it happen across all devices?
  • Did this device upgrade from a previous version of the OneSignal Flutter SDK?
  • Does this issue happen after a new app install?
  • What leads you to think it is related to Firebase?

@giovanni256
Copy link

giovanni256 commented Sep 16, 2023

Same here while migrating from v3

@nan-li

  1. OneSignal is initialized, then I get some errors:
E/MethodChannel#OneSignal( 5100): Failed to handle method call
E/MethodChannel#OneSignal( 5100): java.lang.IllegalArgumentException: Expected receiver of type com.amazon.device.iap.internal.d, but got kotlin.Unit
E/MethodChannel#OneSignal( 5100): 	at java.lang.reflect.Field.get(Native Method)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.flutter.OneSignalPlugin.initWithContext(OneSignalPlugin.java:128)
E/MethodChannel#OneSignal( 5100): 	at com.onesignal.flutter.OneSignalPlugin.onMethodCall(OneSignalPlugin.java:111)
E/MethodChannel#OneSignal( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/MethodChannel#OneSignal( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#OneSignal( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/MethodChannel#OneSignal( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#OneSignal( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/MethodChannel#OneSignal( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#OneSignal( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/MethodChannel#OneSignal( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/MethodChannel#OneSignal( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/MethodChannel#OneSignal( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#OneSignal( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/MethodChannel#OneSignal( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getInAppMessages(OneSignalImp.kt:83)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getInAppMessages(OneSignal.kt:78)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalInAppMessages.lifecycleInit(OneSignalInAppMessages.java:90)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalInAppMessages.onMethodCall(OneSignalInAppMessages.java:52)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/DartMessenger( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getUser(OneSignalImp.kt:84)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getUser(OneSignal.kt:46)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalPushSubscription.onMethodCall(OneSignalPushSubscription.java:45)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/DartMessenger( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getNotifications(OneSignalImp.kt:81)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getNotifications(OneSignal.kt:62)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalNotifications.onMethodCall(OneSignalNotifications.java:54)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/DartMessenger( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
D/TrafficStats( 5100): tagSocket(139) with statsTag=0x2710, statsUid=-1
D/TrafficStats( 5100): tagSocket(138) with statsTag=0x2710, statsUid=-1
W/Parcel  ( 5100): Expecting binder but got null!
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): PlatformException(error, Expected receiver of type com.amazon.device.iap.internal.d, but got kotlin.Unit, null, java.lang.IllegalArgumentException: Expected receiver of type com.amazon.device.iap.internal.d, but got kotlin.Unit
I/flutter ( 5100): 	at java.lang.reflect.Field.get(Native Method)
I/flutter ( 5100): 	at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
I/flutter ( 5100): 	at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
I/flutter ( 5100): 	at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
I/flutter ( 5100): 	at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
I/flutter ( 5100): 	at com.onesignal.flutter.OneSignalPlugin.initWithContext(OneSignalPlugin.java:128)
I/flutter ( 5100): 	at com.onesignal.flutter.OneSignalPlugin.onMethodCall(OneSignalPlugin.java:111)
I/flutter ( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
I/flutter ( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
I/flutter ( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMes
I/flutter ( 5100): #0      StandardMethodCodec.decodeEnvelope
message_codecs.dart:652
I/flutter ( 5100): #1      MethodChannel._invokeMethod
platform_channel.dart:310
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#lifecycleInit on channel OneSignal#inappmessages)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalInAppMessages.lifecycleInit
inappmessages.dart:77
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#pushSubscriptionToken on channel OneSignal#pushsubscription)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalPushSubscription.lifecycleInit
pushsubscription.dart:65
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#permission on channel OneSignal#notifications)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalNotifications.lifecycleInit
notifications.dart:121
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
E/OneSignal( 5100): Must call 'initWithContext' before using Login
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getUser(OneSignalImp.kt:84)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getUser(OneSignal.kt:46)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.addEmail(OneSignalUser.java:84)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.onMethodCall(OneSignalUser.java:40)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/DartMessenger( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getUser(OneSignalImp.kt:84)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getUser(OneSignal.kt:46)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.removeTags(OneSignalUser.java:116)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.onMethodCall(OneSignalUser.java:50)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger( 5100): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger( 5100): 	at android.os.Handler.handleCallback(Handler.java:942)
E/DartMessenger( 5100): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger( 5100): 	at android.os.Looper.loopOnce(Looper.java:201)
E/DartMessenger( 5100): 	at android.os.Looper.loop(Looper.java:288)
E/DartMessenger( 5100): 	at android.app.ActivityThread.main(ActivityThread.java:7898)
E/DartMessenger( 5100): 	at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger( 5100): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/DartMessenger( 5100): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/DartMessenger( 5100): Uncaught exception in binary message listener
E/DartMessenger( 5100): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger( 5100): 	at com.onesignal.internal.OneSignalImp.getUser(OneSignalImp.kt:84)
E/DartMessenger( 5100): 	at com.onesignal.OneSignal.getUser(OneSignal.kt:46)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.removeTags(OneSignalUser.java:116)
E/DartMessenger( 5100): 	at com.onesignal.flutter.OneSignalUser.onMethodCall(OneSignalUser.java:50)
E/DartMessenger( 5100): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#addEmail on channel OneSignal#user)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalUser.addEmail
user.dart:82
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#removeTags on channel OneSignal#user)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalUser.removeTags
user.dart:77
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#removeTags on channel OneSignal#user)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalUser.removeTags
user.dart:77
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #2      OneSignalUser.removeTag
user.dart:72
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
I/flutter ( 5100): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 5100): MissingPluginException(No implementation found for method OneSignal#removeTags on channel OneSignal#user)
I/flutter ( 5100): #0      MethodChannel._invokeMethod
platform_channel.dart:308
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #1      OneSignalUser.removeTags
user.dart:77
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): #2      OneSignalUser.removeTag
user.dart:72
I/flutter ( 5100): <asynchronous suspension>
I/flutter ( 5100): ----------------------------------------------------
  1. Emulator and a real device (Oppo Find X3) with Android 13

  2. Yes, it happens on all devices

  3. Yes, this happens when upgrading from v3

@akanxa akanxa changed the title OneSignal Flutter v5.0.1 not working with Firebase OneSignal Flutter v5.0.1 not working Sep 18, 2023
@akanxa
Copy link
Author

akanxa commented Sep 18, 2023

@nan-li
I have already checked the onesignal account setting. This issue occurs after updating to the latest version. In the v3.5.1 version, it works properly but after updating the version the message is sent successfully through API but a failed status is received on the onesignal account. Also If I send a message directly through one signal account then also it works.

@ThakarRajesh
Copy link

Hi there,
I experience the same problem. Anybody discover the answer, @nan-li? Please respond to us as soon as possible. OneSignal often releases updates containing bugs. developer pain at OneSignal.

@michael-joseph-payne
Copy link

My personal favourite in the migration guide: 'ignore build errors after you make the changes - they'll get resolved after you build'

No, they didn't....

@emawby
Copy link
Contributor

emawby commented Sep 22, 2023

@giovanni256 Your issue seems to be an issue with initialization which is different from the original issue in the thread. Could you please create a separate issue so that yours doesn't get lost!

@ThakarRajesh
Copy link

Hello @nan-li @emawby Any update?
Notification is occasionally received and occasionally not. We are anxiously awaiting the current situation. Please provide us with a quick fix for that.
Due to this notification issue, many of our users are lost. Are you going to fix this problem?

@nan-li
Copy link
Contributor

nan-li commented Oct 3, 2023

Hi @akanxa

... the message is sent successfully through API but a failed status is received on the onesignal account. Also If I send a message directly through one signal account then also it works.

I want to make sure I understand completely. When you send a notification via the REST API with the Create Notification endpoint, you see a failed status in the OneSignal dashboard and no notification is received by your device?

But if you send the notification through the OneSignal dashboard, the notification sends successfully to your device?

If so, there may be an issue with the request you are making via the REST API. What is the response when you use the API?

Can you also share the answers to these questions?

  • What is the Android device and version?
  • Does it happen across all devices?
  • Does this issue happen after a new app install?

@nan-li
Copy link
Contributor

nan-li commented Oct 3, 2023

Hi @ThakarRajesh,

Notification is occasionally received and occasionally not.

The issue you have is notifications are not consistently received by a device?

Can you share more details? If you can be more specific, that will be very helpful. Are you using the OneSignal dashboard or sending via the REST API?

  • Can you give more information about your reproduction steps?
  • What is the Android device and version?
  • Does it happen across all devices?
  • Did this device upgrade from a previous version of the OneSignal Flutter SDK?
  • Does this issue happen after a new app install?

@phuchuynhStrong
Copy link

I got the same problem and got it working by kept OneSignal classes while minifying. Add this line to your Proguard
-keep class com.onesignal.** { *; }

@nan-li
Copy link
Contributor

nan-li commented Nov 2, 2023

Hi @phuchuynhStrong,

To clarify, you also ran into notifications failing and not being delivered?
And you fixed that with your Proguard update -keep class com.onesignal.** { *; }?

@phuchuynhStrong
Copy link

Hi @nan-li,

Yes. I got into a situation where I couldn't receive notification with release builds

@nan-li
Copy link
Contributor

nan-li commented Dec 11, 2023

Closing due to no response from my two posts asking for more information.

@nan-li nan-li closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants