How to get unique device id in flutter?

前端 未结 6 1652
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 16:28

In Android we have, Settings.Secure.ANDROID_ID. I do not know the iOS equivalent. Is there a flutter plugin or a way to get a unique device id for both Android

6条回答
  •  孤街浪徒
    2020-12-03 17:12

    UPDATE: Because this thread has a very high Google ranking I wanted to mention here that the device_id package has been discontinued. The package platform_device_id looks like it works about the same way though, and has very recent activity. We're switching over to that after seeing errors in the log after iOS crashes which point to the old package.

提交回复
热议问题