OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
623 stars 213 forks source link

[Bug]: On Android notification click it is opening Google chrome followed by app #926

Open farhanakgk opened 3 months ago

farhanakgk commented 3 months ago

What happened?

onesignal_flutter: ^5.2.2

Steps to reproduce?

1) General initialisation of One signal 
2) Add click on notification
3) Click on notification only Android. 

If google chrome opening it is expected but it is opening app first and then google chrome. there nothing happen. App is below google chrome.

What did you expect to happen?

In General, When you click on notification it directly opens the app but sometime it also opens the app through Google chrome just like deep link. But the situation here is It is opening app after that immediately opening google chrome nothing loading there. you have to press back to get on app.

OneSignal Flutter SDK version

onesignal_flutter: ^5.2.2

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

nan-li commented 3 months ago

Hi @farhanakgk, thanks for reaching out with your question.

Typically, clicking on a notification should open the app unless you have a launch URL for that notification or have some settings in your AndroidManifest.

Can you share if you have any URLs set for the notification?

Can you also share if you have added a notification click listener?

Please also reference our docs on URLs, Links and Deep Links that may be helpful.