I have a native app (requires functionality of a native app) but my site is now a PWA. Is there a way I can open my native app via a button in my PWA?
Yes, you can open native app via PWA. However, there will be no data connection between your native app and PWA.
In your PWA side, you just need to execute the code below when the button is clicked.
For iOS:
document.location.href = 'your_app_schemes_url://';
For Android:
document.location.href = 'intent:#Intent;scheme=app_scheme;package=app_package;end;';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With