New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement WhatsApp Share #11
Comments
Sounds possible, probably like the following https://github.com/720kb/angular-socialshare/blob/1bdd03a2ac96727427e243228c53f4a2778df35f/lib/angular-socialshare.js#L789 That would work only on mobile, then there is the question if it's the work of the web component to handle this or if it's the work of the consumer to provide the info only when mobile... |
I'm using ngx-sharebuttons for trynearme.app in desktop mode and I think they added a routine to check the platform: See attached image just for reference |
To detect mobile I've got that too: https://github.com/deckgo/deckdeckgo/blob/916768e96625bdda76922cf39efbb5b4573a41a0/src/components/utils/deckdeckgo-utils.tsx#L80 We could combine that with the link you provided Ok on it after dinner ;) |
Sweet, let me know if you need help |
Actually it seems that nowadays it works find on computer (Mac) and Android devices too with https://api.whatsapp.com/send Don't have an iPhone with WhatsApp installed, do you have that open @fmendoza ? could you give a try to https://websocialshare.com ? P.S.: Implemented but not released but deployed |
@peterpeterparker I can confirm that it works on Mac and Android, but I don't have an iPhone with whatsapp to test it out. |
@fmendoza cool thx for the feedback. I'll test on iPhone today, if it works will then release ;) |
@fmendoza it worked fine on iPhone but I discovered that it didn't worked in Safari fortunately found that medium post https://medium.com/@jeanlivino/how-to-fix-whatsapp-api-in-desktop-browsers-fc661b513dc and I didn't know why I didn't went that way straight from the begin ;) therefore I enhanced the component like the following: if mobile -> https://api.whatsapp.com/send?text=Hello thx again for the idea, I gonna release the v4 of this component right now :) |
Would be cool :)
The text was updated successfully, but these errors were encountered: