getDeviceId: user does not meet the requirements to access device identifiers

See above posts , won’t work on Android 10+. You could use