我想在卸载时清除保存在 Mobile 中的 User AuthData。 AuthData 使用 AsyncStorage 保存。
是否有任何机制可以检测 ReactNative 中的应用程序卸载
最佳答案
似乎不可能,特别是如果您的应用程序在卸载时没有运行。但是,您似乎可以采用几种方法,但都不是完美的。
UIApplicationWillTerminateNotification
(见 Detect iOS application about to delete?)关于react-native - 卸载 ReactNative App - 清理用户数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36820946/