Flutter Web: Open app on android if installed or send user to play store, open website on all other platforms - flutter

Prevent android user from using the website, redirect the user to the app if installed or play store page but allow the user to use the website on all other platforms.

Related

Flutter Facebook auth through FB application (if installed) not through a WebView

I am currently integrating Facebook login through the flutter_facebook_auth package in Flutter.
If I am currently having Facebook application installed on iOS, then login through Facebook in my application it should follow the flowing scenario:
If the Facebook application is already installed, when clicking the Facebook login, Facebook application should pop up.
Else if we don't have Facebook application, it should divert to a WebView.
It's working this way on Android but on iOS only opens in WebView even if FB application is installed. How to do this for iOS?

How can I open my PWA app from other native app?

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.

Launch Twitter using device’s browser, not launch Twitter app on iOS device

I have an ionic 3 app that needs to launch my company’s Twitter page in the device’s browser. The Twitter link is like : https://www.twitter.com/mycompany.
When I add this link to my page, the behavior is like this:
If there is no Twitter app installed on the device, the ionic app
will launch the device browser with the Twitter url above.
If the Twitter app has been installed on the device, the ionic app will
launch the Twitter app, and users have to log in to use the Twitter
app.
This happens on iOS only, even when using InAppBrowser plugin.
Is there any way to always launch the link using the device’s browsers, even when the Twitter app has been installed? It really annoys when users have to create an account and log in to Twitter app just to view my company’s Twitter page.
Thanks.

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?

How to use deep linking with posting photo

I have integrated facebook to my android App, and posting through the App. On below posted photo by my application I see "posted XX minutes ago via APPNAME", clicking 'APPNAME' no reaction. How can I change this link to my google play for example.
So how for example instagram or other apps redirect "via app" to their sites ?
I want my app to be able to make a share on Facebook which will appear as a link via my page. Is it possible?
I used to facebook sdk v2.0 and referenced below site. https://developers.facebook.com/docs/mobile/android/deep_linking/ I've set the below information . Settings -> Basic -> app -> Website with Facebook Login, Mobile Web, Native Android App.
But, page didn't redirect in case of Native Android Facebook app. I can't link To my native App.
You have to create a Facebook app page to get the via app name feature.
You will also have to specify native app link in the facebook app, save a key hash and specify the Launcher activity name in the facebook app to launch the app if it is installed on the android device.
If the app is not installed,clicking on the post will open the play store link.