I want to be able to trigger a system popup via an ADB command that does not count as a user-triggered interaction with the UI
So that I can test if CarPlay starts again the next time I start my car, when it was running the last time I used my car.
With this user story, it should be implemented that I can trigger a popup with an ADB command. The popup should then be opened in the system (see section "Notes" for details to the permission).
It should only be possible to trigger popup once the boot of the system has been completed. Therefore, a BroadcastReceiver with an intent-filter (see details in section "Notes") should be implemented.
Acceptance criteria
A BroadcastReceiver with an intent-filter is implemented.
After the boot of the system is completed, a popup can be opened via an ADB command.
Notes
Permission: android.permission.START_ACTIVITIES_FROM_BACKGROUNDBroadcastReceiver mit einem intent-filter android.intent.action.BOOT_COMPLETED
Background information
When starting your car, it checks whether the last time you used your car, Apple CarPlay was running when you parked your car. If CarPlay was running, it will start again automatically when restarting your car the next time. However, if there was an interaction with the native system of the car after CarPlay stopped running, it will not start automatically next time you start your car. BUT: if the interaction was triggered by the native system, e.g., because you had to confirm a popup that your fuel level is low, this interaction should not affect whether CarPlay starts again the next time you start your car.
User story
With this user story, it should be implemented that I can trigger a popup with an ADB command. The popup should then be opened in the system (see section "Notes" for details to the permission). It should only be possible to trigger popup once the boot of the system has been completed. Therefore, a BroadcastReceiver with an intent-filter (see details in section "Notes") should be implemented.
Acceptance criteria
Notes
Permission:
android.permission.START_ACTIVITIES_FROM_BACKGROUND
BroadcastReceiver
mit einem intent-filterandroid.intent.action.BOOT_COMPLETED
Background information
When starting your car, it checks whether the last time you used your car, Apple CarPlay was running when you parked your car. If CarPlay was running, it will start again automatically when restarting your car the next time. However, if there was an interaction with the native system of the car after CarPlay stopped running, it will not start automatically next time you start your car. BUT: if the interaction was triggered by the native system, e.g., because you had to confirm a popup that your fuel level is low, this interaction should not affect whether CarPlay starts again the next time you start your car.
Definition of done (DoD)
DoD general criteria