Magnet Max offers user trigger capability. Users can define customized rules with actions (e.g., send a message to a specific user) that can be triggered if the time AND/OR location condition is satisfied.
By using User Trigger function, it's easy to achieve the following use cases.
Case 1. A user wants to send a message to anyone in a target group:
Case 2. A user wants to get push notifications from anyone in a target group:
The Magnet Max SDK provides the following APIs to handle the user trigger function.
The following creates a new user rule
The following updates an existing user rule.
The following deletes an existing user rule
You can retrieve user rules by user or by rule ID.
The following will fetch all existing user rules, which are created by the current user.
The following will fetch a user rule with a specific ID.
The following notifies the server that rule actions should be triggered (e.g., user location condition in the rule is satisfied).