0

If I install whatup on a different device with same phone number, the old device's whats app does not work. Similar to that, in flutter App, I want to know if a user has signed up on new device while leaving signed on another device.

There is solution proposed,but what about if there is no phone number or permission not granted

another solution is about token, but token change as mentioned, so the best could be invalidate the session, but I could not find how to invalidate the session.

puzzled
  • 509
  • 1
  • 5
  • 18
  • You could create a user agent by using device info package and / or google ad id. For session if token expired check what sstatus code your back end is sening and do what you want – Blasanka Aug 23 '20 at 16:00

1 Answers1

1

but what about if there is no phone number or permission not granted

Then use something else as the unique identifier, for example my team uses flutter_udid to keep track of licensing. We haven't had any issues with it so far hence why I am recommending that one, but there are others that serve the same purpose out there.

but I could not find how to invalidate the session.

That is entirely backend related and is a "problem" of its own, you should write a new question dedicated for that. Also don't forget to tell what you are using as a backend (you haven't done so in this question).

Uroš
  • 1,428
  • 1
  • 12
  • 18