Closed jabirmayar closed 1 year ago
same issue
Same issue on MIUI on real device
same issue for us
same issue
same issue. any solution ????
same issue. any solution ????
rolled back to version 3.5.1
Same issue here, seems like no clear solution right now beside rolling back to previous version
Same issue here, seems like no clear solution right now beside rolling back to previous version
I've rolled back too. Now I have problems with OneSignal.shared.setExternalUserId , OneSignal.shared.setEmail, OneSignal.shared.removeExternalUserId. They just take a long time to call
OneSignal is so buggy, are there any alternatives with full Flutter support?
Same issue here. Version 5.0.0 works on iOS but causes android to crash.
Downgrading to https://pub.dev/packages/onesignal_flutter/versions/3.5.1 works for now.
3.5.1 works, yes. but I would really like to use the latest as I already changed everything and i don't want to rollback. So I guess will have to wait for a fix.
same issue here
Same issue crashing in release mode
Updated all my code to new version just to have to rollback Zzz..
Thank you for reporting this is likely a "minify" issue with the Android native SDK. The fix should be available soon thank you for your patience!
same issue when running the app on release mode flutter run --release
.
but it's work fine on debug mode flutter run
Check this answer on another issue: https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/725#issuecomment-1710603403
+1
Check this answer on another issue: #725 (comment)
Not working for this issue, +1
Thank you for reporting we are working on a fix for this asap!
Thanks @emawby! I am having the same issue and just found this thread. Glad you guys are working on it!
same issue any solution?
Same issue
same issue
Is there a short term workaround? I am running into this issue for the react-native SDK as well.
same issue
Same issue. iOS works fine. Only crashes with Android
Hi everyone,
Can you let me know if you are using any other in-app purchasing or purchases-related SDK in your app? And if you use Amazon IAP SDK?
Hi @nan-li, I used purchases_flutter, and it is working well after commenting this library.
Hi everyone,
Can you let me know if you are using any other in-app purchasing or purchases-related SDK in your app? And if you use Amazon IAP SDK?
We do not use any of those things in our Flutter app. Thanks for looking into it!
Hi everyone,
Can you let me know if you are using any other in-app purchasing or purchases-related SDK in your app? And if you use Amazon IAP SDK?
I am using purchases_flutter from RevenueCat. I will look into if this is what causing the issue.
Hi @akanxa, the OneSignal SDK works successfully if you remove purchases_flutter
?
This is helpful information to help us resolve this bug.
Possibly related: after removing RevenueCat's sdk mine started working again. Using Ionic Vue Capacitor and the Cordova plugin.
Same here with RevenueCat installed. It causes issues and breaks everything.
I'm using Expo SDK but I guess that's the same problem.
Hi everyone,
Can you let me know if you are using any other in-app purchasing or purchases-related SDK in your app? And if you use Amazon IAP SDK?
I'm using both the "in_app_purchase" package and the "purchases_flutter" package. OneSignal SDK started working correctly after I removed the "purchases_flutter" package from RevenueCat.
Hi @akanxa, the OneSignal SDK works successfully if you remove
purchases_flutter
?This is helpful information to help us resolve this bug.
Hi @akanxa, the OneSignal SDK works successfully if you remove
purchases_flutter
?This is helpful information to help us resolve this bug.
Yes it perfectly working after removing 'purchase_flutter'
I work at purchases-flutter. I've been looking into this, and I believe the issue is in this line https://github.com/OneSignal/OneSignal-Android-SDK/blob/5.0.2/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/purchases/impl/TrackAmazonPurchase.kt#L77.
Method e
changed in version 3.0.4 of the Amazon SDK (see https://www.diffchecker.com/mAggUTRG/ )
In 3.0.4
public boolean e() {
this.h();
return com.amazon.a.a.a((Application)this.e.getApplicationContext());
}
In 3.0.1, 3.0.2, 3.0.3
public static d e() {
return c;
}
purchases-flutter
depends on version 3.0.3 of the Amazon Appstore SDK, and it looks like OneSignal-Android compiles against the latest available (3.0.4), so maybe that's where the issue is? That the function is not the same as the one in runtime?
Hi everyone, thanks for your reports.
We identified the bug in our native Android SDK's code and the fix will be included in the next release.
Thanks @vegaro for pointing out that the appstore v3.0.4 has a method name change. This wasn't the bug we needed to fix, but we used this information to make the SDK now compatible with v3.0.4.
Hi @nan-li thanks for the good news (and @vegaro for taking a look at it). When will the new version be released? I guess you'll also update the Expo SDK as it also contains the issue?
Thanks again!
Hi everyone, thanks for your patience.
We released the fix in the latest release of the OneSignal Flutter SDK, please see version 5.0.3.
Please let us know if you have any remaining issues.
Still present in 5.0.3
Hi @michael-joseph-payne,
I cannot tell what the logs show. Is it a crash? Is it a "method not found" error? Is it an log from OneSignal or is it a log from Amazon Appstore SDK?
The crash users reported is java.lang.IllegalArgumentException: Expected receiver of type com.amazon.device.iap.internal.d, but got kotlin.Unit
which has been fixed in 5.0.3.
still gettiing this error on 5.0.4
E/DartMessenger(28499): Uncaught exception in binary message listener
E/DartMessenger(28499): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger(28499): at com.onesignal.internal.OneSignalImp.getNotifications(OneSignalImp.kt:91)
E/DartMessenger(28499): at com.onesignal.OneSignal.getNotifications(OneSignal.kt:62)
E/DartMessenger(28499): at com.onesignal.flutter.OneSignalNotifications.registerClickListener(OneSignalNotifications.java:195)
E/DartMessenger(28499): at com.onesignal.flutter.OneSignalNotifications.onMethodCall(OneSignalNotifications.java:74)
E/DartMessenger(28499): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/DartMessenger(28499): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/DartMessenger(28499): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/DartMessenger(28499): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger(28499): at android.os.Handler.handleCallback(Handler.java:938)
E/DartMessenger(28499): at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger(28499): at android.os.Looper.loop(Looper.java:246)
E/DartMessenger(28499): at android.app.ActivityThread.main(ActivityThread.java:8653)
E/DartMessenger(28499): at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(28499): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/DartMessenger(28499): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Hi! I am also receiving that issue on Android using package version 5.2.2 We also use in-app purchase packages in the project.
in_app_purchase: ^3.1.13
in_app_purchase_android: any
in_app_purchase_platform_interface: any
in_app_purchase_storekit: any
in_app_review: ^2.0.9
E/DartMessenger(10972): Uncaught exception in binary message listener
E/DartMessenger(10972): java.lang.Exception: Must call 'initWithContext' before use
E/DartMessenger(10972): at com.onesignal.internal.OneSignalImp.getUser(OneSignalImp.kt:119)
E/DartMessenger(10972): at com.onesignal.OneSignal.getUser(OneSignal.kt:46)
E/DartMessenger(10972): at com.onesignal.flutter.OneSignalUser.setLanguage(OneSignalUser.java:70)
E/DartMessenger(10972): at com.onesignal.flutter.OneSignalUser.onMethodCall(OneSignalUser.java:36)
E/DartMessenger(10972): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/DartMessenger(10972): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/DartMessenger(10972): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/DartMessenger(10972): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/DartMessenger(10972): at android.os.Handler.handleCallback(Handler.java:958)
E/DartMessenger(10972): at android.os.Handler.dispatchMessage(Handler.java:99)
E/DartMessenger(10972): at android.os.Looper.loopOnce(Looper.java:205)
E/DartMessenger(10972): at android.os.Looper.loop(Looper.java:294)
E/DartMessenger(10972): at android.app.ActivityThread.main(ActivityThread.java:8177)
E/DartMessenger(10972): at java.lang.reflect.Method.invoke(Native Method)
E/DartMessenger(10972): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/DartMessenger(10972): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
EDIT: Sorry wrong issue. I had to init OneSignal before calling setLanguage.
What happened?
i have in main function ` OneSignal.Debug.setLogLevel(OSLogLevel.fatal);
OneSignal.initialize("appid");
OneSignal.Notifications.requestPermission(true);`
Steps to reproduce?
What did you expect to happen?
For appsignal to initialize and login user external id
OneSignal Flutter SDK version
5.0.0
Which platform(s) are affected?
Relevant log output
Code of Conduct