Controlling Focus Mode in Digital Wellbeing using intents

259 views
Skip to first unread message

Dean Rowntree

unread,
Dec 29, 2020, 2:12:23 AM12/29/20
to Tasker
Hi all

I have some experience (not much) of using intents to complete my tasks. It is a very neat solution bit sometimes difficult to implement.

I'd like to start and stop Focus Mode in the built in app Digital Wellbeing using the intents available. Here's a link to a Google Doc with the manifest pasted in it.

So far, the best I have been able to manage is to open the Focus Time settings with the following:

Send Intent
Action:com.google.android.apps.wellbeing.action.FOCUS_MODE
Cat:Default
Mime Type:
Data:
Extra:
Extra:
Package:com.google.android.apps.wellbeing
Class:
Target:Activity

Any help or pointers on using intents at all will be really helpful, thank you.

Dean Rowntree

unread,
Dec 29, 2020, 2:26:47 AM12/29/20
to Tasker
The following from the manifest suggest that it should be possible:

<intent-filter>

     <action name="com.google.android.apps.wellbeing.focusmode.action.TURN_OFF_NOW" />

     <action name="com.google.android.apps.wellbeing.focusmode.action.RESUME" />

     <action name="com.google.android.apps.wellbeing.focusmode.action.PAUSE" />

     <action name="com.google.android.apps.wellbeing.focusmode.action.SNOOZE" />

     <action name="com.google.android.apps.wellbeing.focusmode.action.SCHEDULE_EDUCATION_NOTIFICATION_DISMISSED" />

     <action name="com.google.android.apps.wellbeing.focusmode.action.EXTEND_SINGLE_APP_UNLOCK" />

   </intent-filter>
  

Reply all
Reply to author
Forward
0 new messages