Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. In your user table add two extra column device id and token. when a
  2. user is logged in first time generate a random token and send it to
  3. the app and update your database.In app store that token in
  4. persistence. every time when app starts send that token to server if
  5. token matches with db token that means u r logged in, else not.for
  6. logout send null or zero to server. Try with this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement