Skip Navigation

[Resolved] Web push notification based on user location and map address

This thread is resolved. Here is a description of the problem and solution.

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by katjaL 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1632717

I'm planning a web app which shows notification based on user's location and map addresses. I plan to do this with Toolset map, if possible. I understand the web notification feature is not available at the moment, but I would love to hear your recommendations how to achieve the goal.

And this is the goal:
- Custom post type, "Location Point" (LP) which has map address
- When visitor is near any LP, she/he gets a web push notification. The proximation (how near/far) would be definable.

So, what would be needed to achieve this? I know Toolset Map already can "sniff" user's location if user allows this, right?

#1632889

Hello,

There isn't such kind of built-in feature within Toolset plugins, it needs custom codes.

For example, you can try these:
1) Create a post view:
- Query "Location Point" posts
- Filter by
Show posts within 5km radius of the viewing user's location.
https://toolset.com/documentation/user-guides/maps/display-on-google-maps/filtering-and-ordering-map-markers-by-distance/
- If there is any result found, display a custom JS codes

2) In this custom JS codes, trigger the notification, and push to your web app

#1632893

Thank you very much Luo! I will try your suggestions.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.