Skip to content

External Access

Kieron Quinn edited this page May 15, 2023 · 6 revisions

External Access allows other apps, such as Tasker, to interact with Ambient Music Mod.

Available options:

  • Enable Now Playing
  • Disable Now Playing
  • Toggle Now Playing Enabled/Disabled
  • Start an On Device Recognition
  • Start an Online Recognition (if available)

Please note: Enabling External Access allows any app to interact with Ambient Music Mod, not just the one you are intending to use. Unless absolutely necessary, keep the Access Token option enabled to prevent misuse from apps you have not set up yourself.

External Access settings are not included in backups, you must re-set the values yourself after restoring a backup.

On this page, examples will be shown for Tasker with the Access Token option enabled. For other apps, use the same "action" and "extra" key of token, with the value of your access token; without the Access Token option enabled, simply omit the extra. Click an image to expand it.

Enable Now Playing

Enables Now Playing, if it is not already.

Action: com.kieronquinn.app.ambientmusicmod.action.ENABLE

Requires enabled setting: Allow Enabling/Disabling Recognition

Tasker (System > Send Intent):

Replace your-token with your Access Token as required, for example token:sEftxJlHFGncvoQCUwg9hA

Disable Now Playing

Disables Now Playing, if it is not already.

Action: com.kieronquinn.app.ambientmusicmod.action.DISABLE

Requires enabled setting: Allow Enabling/Disabling Recognition

Tasker (System > Send Intent):

Replace your-token with your Access Token as required, for example token:sEftxJlHFGncvoQCUwg9hA

Toggle Now Playing Enabled/Disabled

Enables Now Playing if it is disabled, disables it if it is enabled.

Action: com.kieronquinn.app.ambientmusicmod.action.TOGGLE

Requires enabled setting: Allow Enabling/Disabling Recognition

Tasker (System > Send Intent):

Replace your-token with your Access Token as required, for example token:sEftxJlHFGncvoQCUwg9hA

Start an On Device Recognition

Runs an immediate On Device Recognition, if one is not running already

Note: The requesting app does not receive the result of this recognition

Action: com.kieronquinn.app.ambientmusicmod.action.RUN_RECOGNITION

Requires enabled setting: Allow Starting Recognition

Tasker (System > Send Intent):

Replace your-token with your Access Token as required, for example token:sEftxJlHFGncvoQCUwg9hA

Start an Online Recognition

Runs an immediate Online Recognition, if one is not running already, and if supported & enabled on the device.

Note: The requesting app does not receive the result of this recognition

Action: com.kieronquinn.app.ambientmusicmod.action.RUN_ONLINE_RECOGNITION

Requires enabled setting: Allow Starting Recognition

Tasker (System > Send Intent):

Replace your-token with your Access Token as required, for example token:sEftxJlHFGncvoQCUwg9hA

Clone this wiki locally