get unique identifier of the mobile device

Discussion in 'Programming' started by tk dd, Jan 16, 2017.

  1. tk dd

    tk dd Guest

    i am writing my own ranking system. i don't want to force users to enter some user name or log into facebook.
    Name is not very important, i just need to get some unique identifier so that i can distinguish one's score from others.

    I could get device id using https://marketplace.yoyogames.com/assets/977/deviceid-for-ios-and-android
    however i don't know if it is ok to store device id in my database. I probably could hash it from my web endpoint but i don't even want to send the device id over the wire.

    Is there a way to generate guid in GML? Or a way to hash a value?
     
  2. Mishtiff

    Mishtiff Guest

    Problem with this is when they switch phones, they lose all their data. I would not suggest this. I am not saying you cant, but I would rather you not. I think you could make a simple login that only required once. it could do all the work every start up. Just my 2 cents, if this is not what you want, wait for others to suggest !
     
  3. tk dd

    tk dd Guest

    thanks but in my scenario this is as casual as it gets and i want to keep this as simple as possible. not carrying user scores between phones is perfectly fine in my case. Thank you for your reply though :)
     
  4. Gabriel Amici

    Gabriel Amici Member

    Joined:
    Apr 10, 2017
    Posts:
    17
    Hey, I need a similar feature for my online highscore system, I've used the extension and it returns "Undefined" in my android phone. I can solve it by manually turning on "read phone status and identity" permission in android app managing. But I need it to work on any device regardless of the manual android permission. Note: I have already enabled READ_PHONE_STATE inside GMS2

    Any clue about what could be wrong?

    TIA
    Gabriel
     
  5. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,530
  6. Gabriel Amici

    Gabriel Amici Member

    Joined:
    Apr 10, 2017
    Posts:
    17
  7. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,530
    You could always Google UUIDs and do some research?
    It's also highly unlikely "every device on Earth" is going to install and play your game.
     
    Last edited: Jul 11, 2019
    Mytchall Bransgrove likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice