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

Unable to disable default handling of paywall URLs #17

Open
troberts-28 opened this issue Sep 19, 2024 · 1 comment
Open

Unable to disable default handling of paywall URLs #17

troberts-28 opened this issue Sep 19, 2024 · 1 comment

Comments

@troberts-28
Copy link

I want to handle the opening of URLs from the Adapty paywall myself (I want them to open in the in-app browser rather than the system browser), but cannot block the default handler. I have tried returning false/void in the onUrlPress event listener, but that doesn't work. Is there a way to do this? If not, can it be implemented?

package.json

"@adapty/react-native-ui": "2.11.0",
"react-native-adapty": "2.11.1",

onUrlPress Listener

onUrlPress(url) {
    // ideally we would open URL in the in-app browser
    // but could not find a way of blocking Adapty's URL handling
    WebBrowser.openBrowserAsync(url);
},
@vladd-g
Copy link
Contributor

vladd-g commented Oct 22, 2024

hi @troberts-28

please try v3.0.0

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