-
Notifications
You must be signed in to change notification settings - Fork 212
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
Tap on notification won't open on oneSignal Flutter Android ONLY #488
Comments
Happening on mine too. I just minimised the app by pressing home button and sent a test notification but on clicking the notification it never opens the app even though the app is not closed. Was not happening before. |
Same here |
I also faced the same problem. But on many android devices, when i click on the push notification, the application opens. It just doesn't work on some phones. When I open the application manually, the relevant page is opened. "setNotificationOpenedHandler" method actually worked, but the app does not focus. |
I have the same problem with setNotificationOpenedHandler, I´m into the app focus but setNotificationOpenedHandler is not working. Sometimes It works but sometimes not. Do you have any solution about this? |
any updates? |
@nimr77 @aryanyadav9 @MingSern @yunuskaygun There an Android bug where the app would not bring he app to the foreground that was fixed in OneSignal-Flutter-SDK 3.2.5. This mostly effected notifications with launch URLs set but could also happen with ones without. This was regression bug introduced in the OneSignal-Flutter 3.2.1 so it is recommend you upgrade if you are using a version in that range. @yunuskaygun Could you provide more details on which devices and Android versions worked and did not work?
@nimr77 The Android V2 embedding build warnings have been fixed in the OneSignal-Flutter-SDK 3.2.4. @hugoyair Issue #509 is more relevant to |
@pankokmu1 Could you open a new issue for the iOS issue you are seeing?, this issue is Android specific. |
Many users has reported this problem.. Does anyone have a fix ? |
I have the same issue, any solution for this problem ? |
Hi @shameelsadaka and @Makarov96, details are in jkasten2's post above. Are you still experiencing this problem in OneSignal-Flutter-SDK 3.2.5 and up? |
Yes I'm using the last version of onesignal_flutter 3.2.7 and don't work |
Yes. I am also using the version 3.2.7 . |
I have same error! |
i get the same error |
Have you found any solution? @Makarov96 @shameelsadaka @farlabjavier |
Same Issue! any solutions? |
Facing same issue... |
Is there anyone who can take care of this? @jkasten2 |
I had to use FCM and as for notifications from my website to my app I'm using server app with nodejs, as for onesignal no idea. |
While i change to 3.0.0 Version, its works again but sometimes cant open notification. This better than nothing XD |
Thanks for reporting the updated information. I will try to reproduce this on In the meantime, can people share what Android devices and versions they encountered this on? |
Still not solved in OneSignal-Flutter-SDK 3.2.8 : Android 11
Please Resolve This Issue ASAP. |
@nileshsoni97 |
@bwrelawan @nileshsoni97 MainActivity.kt code:
Dart code:
|
Where to put this dart code? In main() ? |
@nileshsoni97 I added a button to get permission in "StatelessWidget" and when I clicked the button, I ran the "perStart()" function. Add it in StatelessWidget This method worked for me. |
@Aksoyhlc Code For Button (Ask user to enable)`
` #Code in main activity `
` Some source of the code : https://gist.github.com/Muyangmin/e8ec1002c930d8df3df46b306d03315d |
same issue |
Hi all, For the Xiaomi issue, thank you for waiting and the fix is now in the latest Most comments were about the Xiaomi bug, so I will close this issue, but please follow up if you are having any problems with it. Please open a new issue if you were having a different problem. |
In the Xiaomi Remi Note 8, I'm not able to open an app when tapping on notification but It opens on other devices. |
Once I tap on the notification It doesn't open the app but it calls the handler for opening the notification, this issue is only on android, as for the IOS it is working perfectly.
and while using flutter 2.5 I'm getting this warning on building my app
The plugin onesignal_flutter uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it
since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
flutter doctor
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-x64, locale en-MA)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.58.0)
[✓] Connected device (3 available)
The text was updated successfully, but these errors were encountered: