A am trying to create a profile that runs when my HTC DNA phone connects to my car's bluetooth network. When the phone pairs, I want a couple different apps to open up. I first learned that if the phone's display is off, then the apps won't start. So I added the Secure Settings plugin and added a WAKE task to happen first. But even though the screen turns on now, the keygaurd is still active which prevents the apps from running. So the next thing I did was add a task to turn keygaurd OFF after the WAKE task, then run the apps, then turn the keygaurd back ON.
The issue is that the keygaurd ON behavior is wonky. It's not really turning it back on until I exit one of the previously started apps. For example, There are two apps that the task started. When I exit one of them, all of a sudden the keygaurd locks and i have to unlock it again to exit the 2nd app. Ideally, the keygaurd should just be re-enabled in the background for the next time the device goes to sleep as per normal, rather than forcefully activating it immediately after exiting an app directly after the keygaurd was set back to ON.
Here is the Task:
Anys ideas?
The issue is that the keygaurd ON behavior is wonky. It's not really turning it back on until I exit one of the previously started apps. For example, There are two apps that the task started. When I exit one of them, all of a sudden the keygaurd locks and i have to unlock it again to exit the 2nd app. Ideally, the keygaurd should just be re-enabled in the background for the next time the device goes to sleep as per normal, rather than forcefully activating it immediately after exiting an app directly after the keygaurd was set back to ON.
Here is the Task:
- Secure Settings: Screen on
- Secure Settings: Keygaurd OFF
- Load App 1
- Wait 3 seconds
- Load App 2
- Secure Settings: Keygaurd ON
Anys ideas?