Open asimwaleed opened 3 years ago
No updates on this?
No updates on this?
No update from google
Hi; There is no update on this issue? How to tell android automotive that the app is safe to be used when driving? I have tried adding the following line to the manifest file, but it does not have any effect.
<meta-data android:name="distractionOptimized" android:value="true" />
It looks like you need to set distractionOptimized in the manifest file and your app must be from a trusted source such as Play Store. See the SO answer : https://stackoverflow.com/questions/65668981/how-to-get-permission-for-driver-distraction-optimized
I believe the Android emulator should have a setting to allow the application based on the manifest file only.
I just create sample project for android automotive OS in which i just display "Hello World" text, but the issue is when i install my apk on emulator (Polestar 2) and increase the speed (from 0 to 3, 4 any number) it shows me this text, "Unavailable, for your safety. This activity is not available while driving." I also create config.xml file in which i make my activity white listed also add meta-data tag in manifest but still got this message. Below is my config.xml and manifest.
--Manifest
I also tried your sample application, but the behaviour is same.