Workaround for Whatsapp Business API-based Application to Get Customer’s Current Location in One-Time-Only Manner
Note: Meta now provides built in mechanism for user's location request (likely since Q1 2023) in this API documention Whatsapp Business API is usually used by business organizations or companies to communicate with their customers. In some cases, the company’s application server, e.g. CRM application, might need to know customer’s current location. However, Whatsapp API doesn’t provide such information, except if customer shares his/her live location which most customers will not going to do. Meanwhile, most CRM applications actually only needs customer’s location in one-time-only manner. We know that Internet browser can capture user’s location with user consent. So, the workaround is basically asking customer to open webpage which its Javascript will capture customer’s current location and send it to company’s application server. This is the flow of the basic functionality: SVG File whatsapplocator.svg The demo of explained method can be accessed IN THIS LIN...