sibvisions / flutter_jvx

A generic Flutter app for JVx applications.
Apache License 2.0
3 stars 1 forks source link

deviceId #95

Closed rjahn closed 1 year ago

rjahn commented 1 year ago

If no unique device id is available for a device (mobile only), just create a UUID and save it as long as the app is installed. This is not a deviceId, more or less an appId for the installation.

We can use this to identify the installation.

iOS has a deviceId... should?

Bungeefan commented 1 year ago

iOS uses identifierForVendor. https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor

Android uses ANDROID_ID. https://pub.dev/packages/android_id https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID Example:

"deviceId":"3a20f5cb5fa0a318"