...
Create two additional picos by signing up for two Kynetx accounts besides the one you used for the Foursquare exercise.
Info Note: if you're using GMail, you can create aliases by appending <text> to the username. So, if you're GMail address is foo@gmail.com, you can send email to foo+hello@gmail.com or foo+45@gmail.com and the mail will get to you. This makes it convenient to create test accounts from a single email address.
- For each of these two picos, create an event channel labeled "location notification"
- Use your Foursquare Ruleset from the Foursquare Exercise:
- Copy the event channel identifiers (ECIs) from each of the channels you created in the preceding step into a subscription map data structure in the global block
- Write a dispatcher rule that uses
foreach
to loop over the subscription map (foreach
) and theevent:send()
action to send alocation:notification
even to each subscriber.
- Create and register a ruleset that does the following:
- Write a
location_catch
rule that listens forlocation:notification
events - Store the latest location data in an entity variable
- Write a
location_show rule
that shows the location in SquareTag (see (Classic) Quickstart for SquareTag).
- Write a
- You'll need to install the ruleset created in the preceding step into each of the picos you created in step 1.
- Test the result by checking in on Foursquare and then viewing the app in either (both) of the subscriber picos.
...