OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

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

Open farhanakgk opened this issue 1 year ago • 2 comments
trafficstars

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
  • [X] Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

farhanakgk avatar Jul 25 '24 13:07 farhanakgk

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 avatar Aug 08 '24 16:08 nan-li

I have the same issue For web app am using a url , but why that is triggering in mobile side like this is my additional data {id: 1, page: CATEGORY, url: https://abc.com/categories#1}

ilyasarafathemvigo avatar Dec 16 '24 05:12 ilyasarafathemvigo