Better way to get the user's name from device?

前端 未结 6 1481
耶瑟儿~
耶瑟儿~ 2020-12-09 05:11

I made a function that extracts a user name from the device name.

The idea is to skip setup steps to allow the user to go straight to play

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 05:41

    If it's just meant for iPods and iPhones, then why even use a username? If you need to identify the device for your web-service, there are other unique values each device has (such as UDID). Other option would be to let the user pick a contact from the address book that represents themselves and use that data.

提交回复
热议问题