重新安装应用程序后,不会删除 Parse 当前用户

The Parse current user is not deleted after app reinstalled

用户向我们报告说他们卸载了该应用程序,然后重新安装了该应用程序,他们立即转到了主屏幕,而不是登录屏幕。问题是,因为他们没有登录,所以他们没有会话令牌,因此,他们无法调用云功能!

这是我的支票:

if (ParseUser.getCurrentUser()==null) {
    // show login screen
}
else {
    // show home screen
}

这是我们刚收到的一封电子邮件

I have managed to fix the problem. I had to clear all my temporary data for the application and reinstall it. After that it worked like it should. So the problem was with some temporary saved data in my device.

知道发生了什么事吗?

AndroidManifestapplication标签下,有一个android:allowBackup 对此负责的旗帜。正如文档所说:

android:allowBackup Whether to allow the application to participate in the backup and restore infrastructure. If this attribute is set to false, no backup or restore of the application will ever be performed, even by a full-system backup that would otherwise cause all application data to be saved via adb. The default value of this attribute is true.

对于你的问题,你必须做这个false