How to send geo-based push notification from mobile app (iOS)?

0 votes
Hello, I've tested the geo-based push notification from apphq site, it works well. However, I don't know how to send geo-based push notification from mobile app (iOS). Is this API existed? Kind regards, DuyenHoa
asked Feb 18, 2016 in iOS by haduyenhoa (10 points)

1 Answer

0 votes
Hi DuyenHoa,

There is no API to send geo base push notification from mobile app. You can only send geo based push through AppHQ Dashboard. Let me know if you need any other help from my side.

Regards,

Himanshu Sharma
answered Feb 18, 2016 by hs00105 (2,005 points)
Hi Himanshu Sharma, Yes, I have 2 other questions:

1. I found also that the push sent by mobile app is too slow (taken about 10-15s to arrive to devices). in apphq, it's almost instant. Is it normal?
2. In API, I've seen an API to retrieve geopoint within a radius of a location. Can I use it to send push notification to geopoint. I intend to tag a user to a unique geopoint (for each location update for example), then to send push notification in geo-based like, I will first search for nearby geopoint and send push to those geopoint. In this case, is the sending performance is poor or not?

Thanks,
Hi,

Please find my answer in-line for your query:

1. I found also that the push sent by mobile app is too slow (taken about 10-15s to arrive to devices). in apphq, it's almost instant. Is it normal?
Ans: Yes, it is normal.
2. In API, I've seen an API to retrieve geopoint within a radius of a location. Can I use it to send push notification to geopoint. I intend to tag a user to a unique geopoint (for each location update for example), then to send push notification in geo-based like, I will first search for nearby geopoint and send push to those geopoint. In this case, is the sending performance is poor or not?
Ans: Yes you can do, you need to tag user location in No-SQL database using this(http://api.shephertz.com/app42-docs/nosql-storage-service/#insert-json-with-geotag) function. Once you need to send push to geo location, first you have to fetch the list of users using this(http://api.shephertz.com/app42-docs/nosql-storage-service/#find-documents-by-location) method and then call this(http://api.shephertz.com/app42-docs/push-notification-service/#send-push-message-to-group) API to send push.

Let me know if it helps.

Regards,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...