How can I identify an app is uninstalled, Based on that I want to change the status from 1 to 0 in my Database for generating
OTP
. If the status not changed OTP won't generated. Any Solution? Thanks
How can I identify an app is uninstalled, Based on that I want to change the status from 1 to 0 in my Database for generating
OTP
. If the status not changed OTP won't generated. Any Solution? Thanks
No. You cannot check that your application is going to uninstall.
When the user uninstalls the app, at first the process is killed, then your apk file and data directory are deleted, along with the records in Package Manager that tell other apps which intent filters you've registered for.
Thanks for All Suggestions,
I want this scenario for OTP request. Before sending OTP to Mobile we should check whether the Mobile number existed or not. If it exists then delete the records which already had with this number on Database instead of changing status '1' to '0'. It Works for me.