fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.56k stars 946 forks source link

identifierForVendor is always change in ios after re-installing, i need unique id for ios device to limit Login. #447

Closed tejtechtonic closed 2 years ago

tejtechtonic commented 3 years ago

System info

Issue occurs on: iOS Plugin name: device_info_plus Plugin version: 2.1.0

shubh420 commented 3 years ago

Any update on this? I am also facing this issue. UUID is getting reset after app update.

tejtechtonic commented 3 years ago

Any update on this? I am also facing this issue. UUID is getting reset after app update.

Try this flutter_udid, it gives accurate and static id.

wahyu-handayani commented 2 years ago

Hi @tejtechtonic ... right now I am trying your solution by using flutter_udid to get uniq id for ios device. I have tried it in one of simulator and there is no problem when I do uninstall my apps and then do reinstall... the id will keep static like what you said. I haven't try it in another simulator. So, I would like to ask you.. so far when you use flutter_udid package to get uniq id, is there any other problem that you get ?

tejbhansahu commented 2 years ago

Hi @tejtechtonic ... right now I am trying your solution by using flutter_udid to get uniq id for ios device. I have tried it in one of simulator and there is no problem when I do uninstall my apps and then do reinstall... the id will keep static like what you said. I haven't try it in another simulator. So, I would like to ask you.. so far when you use flutter_udid package to get uniq id, is there any other problem that you get ?

Hi @wahyu-handayani i didn't listen any issues regarding this from my team yet.

wahyu-handayani commented 2 years ago

Hi @tejbhansahu thank you very much for your reply and your help, right now I use flutter_udid like your suggestion before. Hope there is no problem for the future

Leffe108 commented 2 years ago

According to Apple docs, identifierForVendor is expected to change when you uninstall and re-install your app unless user has another app that you have also published that remains on the device during uninstall + re-install. It also mentions that test builds can cause it to change.

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

Novaera commented 1 year ago

We facing the same issue, any updates on this?

swapnilgaikwad1507 commented 10 months ago

I am also getting the same issue from identifierForVendor. what could be the workaround for the same?

ankitsaurabhinfosys commented 8 months ago

any update on this?