We are trying to send push notifications to user based on user's location, for eg when user reaches near a location he/she will get a notification from the application, we are currently using Mobilefirst 8.0.
1
votes
How do you make the server aware of the client's location? Will you be calling an adapter ? Trying to see if you are looking for local notifications or server dispatched notifications
- Vivin K
We are looking for server dispatched push notifications by Mobilefirst server
- Shruti
Yes, we are using Java adapters
- Shruti
1 Answers
0
votes
I would adopt a solution like this:
- When the location plugin has detected that the user is in a specific location or zone, it fires.
- Within the action ( success callback), call a MFP adapter with all the relevant information.
- This adapter can either call the MFP Push service REST endpoints directly. The invocation looks this.
OR
- The adapter calls a backend, that will invoke the Push service REST endpoints. This will give more flexibility in terms of pushing customized payload , that can change according to business cases ( eg: festivals,discounts).
The complete list of Push service REST endpoints are here.