How can I open my PWA app from other native app? - progressive-web-apps

I am implementing a PWA application and a native application on Android. I need to open the native app from PWA app which I know how to do that. Basically I need a URL provided from the native app and open the URL from PWA which will bring the native application. This approach is pretty much like opening google map by clicking its url: http://maps.apple.com/?address=1,Infinite+Loop,Cupertino,California..
Now I have a requirement to open my PWA from the native app. For example, if I share the PWA url through facebook, I'd like other people open the PWA app when they click on the url in facebook if they have installed the PWA.
How can I achieve that?.

You don't need to implement anything to do that. Android does it for you. For example, if your PWA is hosted on https://my-pwa.com and the user clicks a link with the href https://my-pwa.com, Android first looks through your PWAs and if the URL matches, it opens the PWA. Otherwise Android opens the Chrome browser.
Just verified this on an Android 6 device.

Related

How to suggest Flutter Mobile app on clicking flutter web app url?

How to succeed When user tap on Flutter web url we should suggest whether open in Chrome or Flutter installed app?
If you want to open a native application selection dialog, then you should enable deep linking for your application.
This will result with an app chooser dialog on Android when user opens a URL which mobile application has registered as deep link or a "Open in application X" banner in Safari for iOS
In Flutter , I have used uni_links package and followed document to succeed

Flutter: how to open an user's Airbnb app inbox in guest mode?

I want to open my app's user's Airbnb inbox in guest mode.
Presently I'm launching the URL:
https://www.airbnb.co.uk/guest/inbox/
But it opens their Inbox in a browser, even if the App is present. Dissappointing the app doesn't redirect it, like Googlemaps does.
Is there a way to trigger the Airbnb app? A deeplink? How would I test if the app was present before launching it?
One of Airbnb's open source contributions was 'DeepLinkDispatch', so internally they're using Deeplinks a lot.
For that link and my other links I'm using the Flutter plugin url_launcher. Would be great to have a deep link URL to throw at that, if it fails I could launch the URL above as a fallback.

Instagram in-app browser does not support add to home screen feature for pwa

https://caniuse.com/web-app-manifest
https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent
Here it says, android webview supports add to home screen. Even then in instagram's in-app browser it doesn't work.
Even the custom install that we trigger using beforeinstallprompt also doesn't show up.
Not any of the documentations mention anything about this.
In IOS there's a way you can install web apps using profile configuration files. Do you know if there is a way to do the same in Android? If so, we can redirect the bio link to an install page of our web apps.

open facebook app to login (meteor/cordova) iOS/Android

1.)
I have a native meteor app on my devices (ios/android.
2.)
I would like to enable a facebook login for my app (android/ios devices).
3.)
If the facebook app is installed on the device it should open the facebook app to login.
else it should open the browser.
Problem
there are so many facebook packages out there and its hard to choose one with the latest facebookSDK for meteor that works with cordova and allows me to open the installed facebook app. All packages had tested just opened a new browser window. can someone give me a hint for a working package that actually works?

My web app not showing on facebook native app

My app is showing on facebook desktop, m.facebook.com, but not on the native app?
I meant not showing on bookmark or favorite. When I search for it within the native app I can find it.
According to the documentation it should also appear on the native Facebook app bookmark?
Can anyone please advise what did I do wrong? I have set the mobile web setting already.
Thanks
If your app has a native app, the it will show up in the Facebook app bookmark list. If you app is a desktop or canvas app, it shows up on desktop. If your app is a mobile site, then it shows up on m.facebook.com. You need to specify the type of app or apps you support/have/exist in the developer dashboard for the app.