Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In your user table add two extra column device id and token. when a
- user is logged in first time generate a random token and send it to
- the app and update your database.In app store that token in
- persistence. every time when app starts send that token to server if
- token matches with db token that means u r logged in, else not.for
- logout send null or zero to server. Try with this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement