User Logout upon terminating application in android -
i looking way logout user of app automatically when application has been terminated. dont believe there anyway activities have onterminate() function call. coming ios background app, call logout() function when user entered background. there similar sort of parallel android?
the reason looking option because have global helper class extends application store user credentials , other info. if application gets terminated os, data lost have read. force user log in again repopulate data if destroyed.
save user credentials shared preference, when press logout button clear data in shared preference , finish activities , cancel background services related app
Comments
Post a Comment