React-native – Uninstall ReactNative App – Clean User Data

I want to clean up the user AuthData saved in Mobile when uninstalling. Use AsyncStorage to save AuthData.
Is there any mechanism to detect App Uninstall in ReactNative
It seems impossible, especially if your application is not running when uninstalled. However, there seem to be several ways to take, but two ways Not perfect.

>If your app is running, you can listen to UIApplicationWillTerminateNotification (see Detect iOS application about to delete?)
>Use push notification feedback service (see Delegate Method when Deleting App)

I want to clean up user AuthData saved in Mobile when uninstalling. Use AsyncStorage to save AuthData.
Is there any mechanism to detect App in ReactNative Uninstall

It seems impossible, especially if your application is not running when uninstalling. However, there seem to be several methods you can take, but neither method is perfect.

>If your app is running, you can listen to UIApplicationWillTerminateNotification (see Detect iOS application about to delete?)
>Use push notification feedback service (see Deleting Method when Deleting App)

Leave a Comment

Your email address will not be published.