Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action Parameter for "Broadcast Intent" not sent? #12

Open
kintrupf opened this issue Dec 21, 2016 · 4 comments
Open

Action Parameter for "Broadcast Intent" not sent? #12

kintrupf opened this issue Dec 21, 2016 · 4 comments

Comments

@kintrupf
Copy link

I'm trying to send a "Broadcast Intent" when finding a specific beacon, using the Action parameter to identify the beacon. However, while the intent is received by the App "Automagic" without problems there seem to be no parameters attached to the intent, so I cannot distinguish the beacons.

You should also specify the complete name of the intent somewhere. Since I'm not an Android programmer it took me a while to guess the correct name com.somebits.beacon.locator.action.NOTIFY_BEACON_ENTERS_REGION ;-)

@vitas
Copy link
Owner

vitas commented Dec 21, 2016

for sending intent you need full name, the app does not support any parameters for that intent.
the idea was to trigger some app what support intent receivers.
NOTIFY_BEACON_ENTERS_REGION should not be used as it is an internal action to notify an app logic on beacon entering region, so you do need it. if you want send some intent + parameters, you may use Tasker action , it is very flexible

@kintrupf
Copy link
Author

Unfortunately the Tasker action only seems to work when Tasker is installed.
I only get the message "Tasker application is not installed" when I try to use it :-(

What would be the "full name" of the intent?
Automagic support receiving a "General Broadcast", an example given is "PowerAMP Track" with the action "com.maxmpz.audioplayer.TRACK_CHANGED". Is that something like what beacanloc would send with the Tasker action?

@vitas
Copy link
Owner

vitas commented Dec 21, 2016

for tasker task you need tasker app installed, that is correct.
the full name is like a package name, so if PowerAmp can change the track only receiving com.maxmpz.audioplayer.TRACK_CHANGED it is enough to use "Broadcast Intent" action, if you need to send additional params, like a track number, only an option is to use the tasker

@kintrupf
Copy link
Author

Automagic can extract additional information from the intent extras. The PowerAMP example lists something called a "bundle" to extract track information. That looks a little bit like something from the TaskerAction.java code. I will try to install Tasker to allow the Tasker intent to be send, maybe I can catch it with automagic ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants