Is it possible to open a progressive web app (desktop PWA) immediately when the user clicks the URL of your web app in another website or another PWA?
Related
I have a case on react native app development :
The app opens an external app (eg. Facebook App)
When Facebook App was opened, I need to add a floating button or whatever to Facebook App, it will be used for back to my application
When that button clicked, it will trigger a function from my react native app
Is it possible ?
What I tried so far is trying to open the app inside a View with WebView and the button that I wanted, but the WebView opens www.facebook.com instead of Facebook App installed.
You can use this module to open other native apps.
https://github.com/FiberJW/react-native-app-link
but as you wanted to place a button that's not possible because if you open other apps then control is no longer available in your app to handle that button in the app which is open now, Webview will always open a web URL, not a native app.
I have a web application that can be installed as PWA. Once installed the problem appears on Android devices with Chrome.
If a user is logged out the application will redirect to an authentication service that is hosted on a separate server. Once a user has logged in the application redirect him to main page of app. PWA is opened automatically at this point. I don't want this.
Does anybody know a way to prevent automatically opening PWA when a user open a site in browser?
It was noticed on Android 8.0 with Google Chrome 74.0.3729.157.
Also if an authentication page is rendered inside iframe PWA is not opened automatically.
Finally I get it.
PWA is installed as WebAPK so Android open my application automatically when an auth server returns redirect to my application https://developers.google.com/web/fundamentals/integration/webapks.
A way exists to prevent that by defining a scope parameter in manifest.json. But it is not my case because all my application is in the root.
Finally I use iframe to render an auth page instead of redirection to auth service directly.
I want to check if an app is installed in iphone or not from web page using javascript. If app is installed then i want to show "open" button in website, once if user clicks "open" button in website then i have to open an app in iphone by custom url scheme. If app is not installed then i want to show "Download" button in web page. How to do this?
I had tried javascript with setTimeout function which tries to open an app by custom url scheme, but it directly opens an app. Without opening an app, how to check if app is installed.
I developed a website and a mobile app as my project. Now, if the website is opened in mobile browser, then i wish to open that app in mobile (if it is installed) otherwise open the app in the appstore. But don't open website in browser.
Using javascript I can know whether the website is being accessed by a mobile device or not. Please help me in redirecting to playstore/App.
I want to find a way to run native mobile app, from a web app on a browser, and communicate the result back to it.
For example, how does Facebook user authentication work on a mobile device? You go to login with Facebook on a website. If on mobile, it opens the native Facebook app to do the authentication, and redirects the user back to the mobile web browser to open some page, post-authentication. Somehow, web browser and native application are able to communicate? Is there also any security risk to this?
One way to do this is as follows:
Use a custom url to launch the app from the website (see link below)
Pass whatever parameters you need to the app (for example a return web site URL in the case of a login authentication type app)
Once the app launches and does it thing, have the app launch a browser using the return address URL you passed as a parameter to the app.
A good, well maintained, link to using custom URL's and passing partakers to the App:
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html