Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PWA - is it possible to open a native app from a PWA?

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?

like image 952
Nate Avatar asked Aug 31 '25 23:08

Nate


1 Answers

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;';
like image 155
Sean Cheong Zhen Xiong Avatar answered Sep 03 '25 11:09

Sean Cheong Zhen Xiong