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

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

Open
2 of 3 tasks
farhanakgk opened this issue Jul 25, 2024 · 1 comment
Open
2 of 3 tasks
Labels

Comments

@farhanakgk
Copy link

farhanakgk commented Jul 25, 2024

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?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

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

nan-li commented Aug 8, 2024

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.

@nan-li nan-li added the Android label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants