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]: in-App message universal link handling #1535

Open
1 task done
bitsflew opened this issue Jan 13, 2025 · 1 comment
Open
1 task done

[Bug]: in-App message universal link handling #1535

bitsflew opened this issue Jan 13, 2025 · 1 comment

Comments

@bitsflew
Copy link

bitsflew commented Jan 13, 2025

What happened?

Triggering a URL action always opens the passed URL in the browser.
Note that this does not happen with App Links on Android.
Using an AppMessageClickListener does not work, as it is called after the link has already been opened in the browser.
Shouldn't the AppMessageClickListener decide how to handle the URL action?

Steps to reproduce?

Create an inApp message with a URL Click Action
Send it to a test device
Launch the app on the test device
Click the message to invoke the action
At this point the link is opened in the browser followed by a call to the AppMessageClickListener
We've added the OneSignal_suppress_launch_urls: YES  property to Info.plist, that solves a similar issue for push notification but it has no effect on in-Aoo messages

What did you expect to happen?

Using a AppMessageClickListener should overrule the default behavious

OneSignal iOS SDK version

5.2.8

iOS version

18

Specific iOS version

iOS 18.x
iOS 17.x

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 Jan 18, 2025

Hi @bitsflew thanks for reaching out, we will investigate this as a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants