How do I launch an app inside of my flutter app? - dart

I'm trying to build a flutter app that could launch all kinds of apps with a button. But I can't find a way to launch an app without using a browser or going through the google play store and the app store.
Is there a way to launch the app directly without using a browser or the play/app store?

You can try my plugin flutter_appavailability: A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
Methods available:
checkAvailability(String uri)
getInstalledApps() (only for Android). Unfortunately, for iOS there is no way to get the list of installed apps!
isAppEnabled(String uri) (only for Android)
launchApp(String uri)
In the README.md file there is an example with screenshots

Related

Does apple-app-site-association work with a web app?

I've just come across apple-app-site-association.
Will it work to open an iOS webapp (created by tapping Add To Homescreen while on a Safari webpage) as opposed to a native iOS app?
I have a URL link in a newsletter email we send out that I was trying to get to open the iOS user's webapp instead of their normal Safari.
https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html
No, it doesn't; The apple-app-association file contains the bundle id of the app to be launched. Web apps aren't really apps and they don't have a bundle id, so they can't be launched

Auto update iPad app without app store

I have an iPad app and I don't want to publish on app store.
I want to reconfigure the app from server i.e. if the flow of the app was:
Page 1 -> Page 2 -> Page 3
And I change data in the database to:
Page 1 -> Page 3 -> Page 2
My app should be reconfigured. I would also like new pages to be added in my app.
How to download the Swift files in user's app, compile it on the fly and update the app without user's intervention or through app store?
This is a private app and won't be published on app store.
How to download the Swift files in user's app, compile it on the fly and update the app without user's intervention or through app store?
You can't.
You can, however, design your app to have UI not hardcoded in the app, but defined in some configuration file (i.e. in JSON format) which you would download at app launch. You would need to implement functions to create UI elements from their JSON definitions, etc.
No, This is not how it works on iOS. You can't achieve this requirement through Native iOS development. You have to create a web app. You can build the app using React-Native or PhoneGap cross platform environments. Again there, without publishing app store you can't share iOS .ipa file like the .apk file in android. In that case, you have to buy Enterprise developer account and share.
Another option like building a UI using JSON is very tricky and takes lots of efforts. In case if you really want to do like this go for it.

Can you launch **any** phone app from a web link?

Im making a phone automation system with a web interface. As part of this I am looking to replace all remote controls (tv media center etc) with my phone.
I have a Roku media player that has a remote control iOS app, what I am trying to do is to launch the Roku native phone app from my web interface.
I know it is possible to launch apps via href such as this:
Launches native FB app
But I have tried both these which fail
Fails to launch native 'Roku' app
Fails to launch native 'ROKU' app
So I have two main questions:
Is it possible to launch any app from a web link, or does the app developer need to enable that function in some way?
Answer - Yes the app developer will need to set a url schemer
Is there a way to determine the URL you would need to launch an app IE the Facebook app can be launched by fb:// but can you determine that anywhere?
Answer - There is a link to multiple URL schemers for popular apps below but my understanding is that the app developer would need to release them
Thanks
JS Fiddle just in case - https://jsfiddle.net/0znc12bs/
Update - as a point of reference I am not developing an app this is a
web service trying to connect to apps I didn't author.
Update2 - I have been in touch with Roku support and their remote app
currently doesn't support deep linking.
To open the app from the web url the app developer need to set the id (deep linking) setting and URL Schemas in the app
For the famous app you can find the deep linking url from the net,from that you can make your list to open the app
else you can find on it's site if they have written that
List of sites which can provides some list of url schemas which you can use to open app from the web :https://stackoverflow.com/a/11155918/4557505

Retrieving a deep link when the app isn't installed (iOS)

In the iOS docs for Google App Invites, under Receiving Invitations, it is suggested that a deep link can be retrieved on first launch if the app wasn't installed in advance:
If the user has not yet installed the app, the user can choose to
install the app from the iTunes App Store. When the app opens for the
first time, the App Invites SDK will supply a deeplink if one is
available.
I've looked through the reference docs for GINInvite and GINReceivedInvite but I don't see any way to instantiate GINReceivedInvite outside of an application openURL call. Anybody know how to actually have the SDK retrieve the deep link in this scenario?
What you are trying I will say is not the correct way. You have to check in Safari web browser if app is install or not. If not navigate to App store
You can find your solution in here How to check if an app is installed from a web-page on an iPhone?

How does DataManPro AppWatch get info about installed apps

How does AppWatch feature in DatamanPro show the icon of the installed apps?
The dataman shows icons of the app that have used data in the certain interval. I believe using sysctl its able to figure out which process is using data, but how does it get the app icon?
I originally believed that its getting the icon from iTunes AppStore search url, but I found out that it does get icon for non-app store apps as well, which means that it is somehow getting that app icon locally from the iOS.

Resources