What I want to achieve is get to know whether app is installed first time or user have installed this app previously in android.
Asked
Active
Viewed 623 times
0
-
i would say that you better use an API interaction here. Api should be like this : As the user opens your app the API should send the user's **deviceId** (IMEI or any Unique number) to your API and you store it in your DB. Now even if the user deletes the app, you will be having the details of his/her deviceId. So, in case of reinstallation of app, fetch the deviceId again and check if the deviceId is already there in your DB or not. If available, it's a reinstall else first install.. That's it.. simple and elegant :) – sohaib karim Feb 01 '17 at 12:16
-
@Piyush this is asked specifically for ANDROID OS not for iOS. – Asmita Bhiware Feb 01 '17 at 12:25
-
@VaibhavKadam Check http://stackoverflow.com/questions/11392183/how-to-check-programmatically-if-an-application-is-installed-or-not-in-android – Piyush Feb 01 '17 at 12:29
-
Do you want to know if the user is running the app second time after the installation or you want to check even for a fresh install ? – nishith kumar Feb 01 '17 at 12:41
-
@Piyush that won't determine whether my app is installed 1st time. If user uninstall and reinstall then app can not determine whether the install is for 1st time. – Asmita Bhiware Feb 01 '17 at 12:41
-
@Nishith yeah its about install and reinstall. – Asmita Bhiware Feb 01 '17 at 12:42
-
@VaibhavKadam In this scenario sohaib's approach would be the most appropriate. – nishith kumar Feb 01 '17 at 12:44
1 Answers
0
Unfortunately this is not possible. If the user uses an email to register/login to your app you could store information regarding if the email was used before or not.

JesperQv
- 280
- 4
- 12