skysky
August 15, 2021, 2:43pm
1
Hi
with Ionic 5 with Capacitor (Android, IOS, PWA) open a website with inappbroswer, and the website contains whatsapp and payment checkout links.
is there any way to open external whatsapp and payment app from inappbroswer when user click the links in inappbroswer?
really need to find a solution for this.
thanks
I am using the http://wa.me way to open a message in whatsapp
Check out google for the url scheme
Or any of this working?
hyperlink, whatsapp
skysky
August 16, 2021, 5:22am
3
It doesn’t work inside inappbroswer.
Can inappbroswer event listener detect the whatsapp link, then open it with system browser, which will open the whatsapp app?
I have no experience with that
Maybe try?
For any future reader:
const whapURL = `whatsapp://send?phone=+31333334604&text=Hi, I contacted you Through your website`;
Works nicest for me - in a PWA that is. Mostly because the back option brings yo back to the PWA directly, whereas the http://wa.me option brings me back to a blank page I need to close
skysky
September 5, 2021, 6:44am
6
Does it work in non pwa app?
Haven’t tested this in iOS nor Android. Easy to try.