Navigation überspringen

[Gelöst] Web push notification based on user location and map address

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

This support ticket is created vor 4 Jahren, 12 Monaten. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von katjaL vor 4 Jahren, 12 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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.