Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.9.5
-
-
MOODLE_39_STABLE
-
MOODLE_400_STABLE
-
Moodle App 4.0
Description
If a site is configured to "log out" instead of change site, the app deletes the user token when he logs out. If the user then deletes the site, the device cannot be unregistered from Moodle because we no longer have the token. The app will try to unregister the device later again, but it will never be able to do it because it no longer has the token.
This has an annoying side effect in browser and desktop. In mobile, when you login again in the site the device is registered again and all the "pending unregisters" are deleted. But this isn't done in browser because there is no pushID, so the app still tries to unregister the site. This unregister throws an invalid token error, forcing you to reconnect to the site every certain minutes.