Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to identify that a particular application is installed in my android/ios device through flutter and dart?

Tags:

I have a requirement where the admin of the application creates a user's account.

Post creation of the user's account an email will be sent to the user. In this email, the user is provided with a hyperlink. When he/she clicks this link then following actions are taken-

  1. Identify the requested application is installed on the device or not.
  2. If installed then redirect to the password setting screen of the application.
  3. If not installed then redirect the user to the play store/App Store to download the requested application. when download completed redirect to password setting screen.

Thank you.

like image 693
Dhanraj Verma Avatar asked Jul 22 '19 07:07

Dhanraj Verma


People also ask

How can I tell who installed an app?

Run eventvwr. msc → Windows Logs → Right-click "Application" log → Properties: Make sure the "Enable logging" check box is selected.


1 Answers

For point 1. you can use the device_apps plugin, to check wheater the app is installed or not (not supported on iOS though!): https://pub.dev/packages/device_apps

Point 2. can be implemented using the uni_links package:
https://pub.dev/packages/uni_links

But there seems to be a problem with opening the apple app store on iOS when the app is not installed.
This post might help:
How to implement deep linking in flutter, with redirect to app store?

Hope these links help and good luck

like image 65
DoobieAsDave Avatar answered Sep 19 '22 03:09

DoobieAsDave