Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
  1. Home
  2. General
  3. Can I check duplicated login?

Can I check duplicated login?

Scheduled Pinned Locked Moved General
4 Posts 2 Posters 880 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LEE JONG GUN
    wrote on last edited by LEE JONG GUN
    #1

    Hello

    I asked before about this.

    and I heard braincloud did (token check?)

    so I want to make Only one device can login with same account

    so I found some error code for check this

    INVALID_DEVICE_TOKEN

    is it return when duplicate login?

    thank you

    1 Reply Last reply
    0
    • Paul WinterhalderP Offline
      Paul WinterhalderP Offline
      Paul Winterhalder
      brainCloudAdmin
      wrote on last edited by
      #2

      Are you wanting to ensure that a user can't sign in from multiple devices EVER - or at the same time?

      brainCloud already enforces a single concurrent login session for an account. But it doesn't block the 2nd login - instead it invalidates the first one. This is done intentionally - because otherwise if a user session were to crash - it might block subsequent logins from succeeding.

      The setting to control how many concurrent logins are allowed in your app can be found on the Design > Core App Info > Advanced Settings > Session Behavior screen.

      2023-09-10_09-49-41.png

      From what I can see in our system, INVALID_DEVICE_TOKEN indicates that the push notification token being registered against a user account is invalid (it would generally mean that it is empty string).

      Hope that helps!

      Paul.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LEE JONG GUN
        wrote on last edited by
        #3

        yes!
        it invalidates the first one <<
        how can i check older device is invalidates?
        i want notice to device(old,first) is invalidated(when try to save or other)
        thank you

        1 Reply Last reply
        0
        • Paul WinterhalderP Offline
          Paul WinterhalderP Offline
          Paul Winterhalder
          brainCloudAdmin
          wrote on last edited by
          #4

          Well - there's no great way to tell until you try doing an operation.

          You could try doing a simple ReadServerTime() call - and if that fails - the session isn't good anymore...

          http://getbraincloud.com/apidocs/apiref/?objective_c#capi-time-readservertime

          Hope that helps!

          Paul.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Solved
          • Unsolved
          • Users