jamesmontemagno / DeviceInfoPlugin

Device Information Plugin for Xamarin and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeviceId issue

akysn opened this issue · comments

commented

I am getting deviceId on windows (8.1 or 10) and android (min android version 4.4.2) devices and registering to database this Id for device validation. my app is installed on about 2000 real devices. I have some weird issues.
First issue is: same device could send me different deviceID
Second issue is: 2 or more device could send me same deviceId. Is this an issue or what is wrong ?

My plugin version 2.1.2. VS version is 2015 enterprise
Xamarin forms version: 2.3.3.180
Geolocator version: 4.0.0
Connectivity version: 2.3.0
Plugin.Permission version: 1.1.7
Prism version: 6.3.0-pre1

Do you see this issue with only Android, and Windows devices?

commented

Yes only android and windows devices. I have any user who using ios. Did you get same issue ?

@akysn I am going through the code, I don't see any reasons for you hit Second issue

First issue is: same device could send me different deviceID

We use ANDROID_ID on Android device, when user reset their device you will get a different ID

I haven't heard anyone report this issue on Windows

Could you share more information about the devices sending duplicate/multiple ids? Steps to reproduce

commented

I know, if user reset device Android_id will change but my users did not reset devices.
second issue is generally on android and first issue is generally on windows.
I am not provisioning UWP project. I am provisioning Windows 8.1 project.

What do you want to know about that?

Could you share more information about the devices sending duplicate/multiple ids? Steps to reproduce

commented

We have domain system for our devices. Users have own account and they can login every windows device.
They must sideload my application when first login for any device. For example two users want to use my app but they have one tablet. They must login with their account and both user sideload my app.
In some case same user could register in one session. In another case both user could register app in same device.
Today i reset my windows pc and register again. At first registration Device Id changed and this is an expected case. After 15 minutes in same session my device generated another deviceID and in my database one device had two deviceID at the same time.
first device Id is: BwC+kwMAjkgFAJbSBgABAAQAojQEAEVuBACQ4wEAVrsCAFahCQCOTg==
second device Id is: BwC+kwMAjkgFAJbSBgABAAQAThIEAKI0BABFbgQAkOMBAFa7AgBWoQkAjk4=
I expect your suggestions.
Thank you