Is it possible to share to whatsapp?

Hi team

Is it possible to share contents or links to whatsapp?

Thx
Abdul

Yes it is, I’ve just discovered it today!

This will allow you to share to Whatsapp (and a whole bunch of other stuff)

https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/

Watch out though, it’s iOS only and Whatsapp will only appear if you have added it to that bar that pops up in your settings.

Great man :) 

that was very useful to me… what about android  ? how can I do that

thx

Abdulaziz

Not sure on android if it’s possible as I’m only developing on iOS currently.  Have to leave that question open for someone else. Good luck!

Hi all,

Just to clarify, the Activity Plugin is iOS-only… it’s not meant for Android since it correlates to the “UIActivityViewController” in iOS, just as the documentation states:

https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/index.html

Brent

Hi Brent,

thanks for the clarification, what about android ? is there a way to share to WhatsApp?

regards

Abdul

Hi Abdul,

Please read the following tutorial, and test the “Social” plugin with the “share” parameter. I have not personally tried to share to WhatsApp on Android, but you should test it yourself.

https://coronalabs.com/blog/2015/04/21/tutorial-social-sharing-on-android/

Brent

Thanks Brent,

 I built the code for android device but every time I got this message 

 " Please setup your  share account or check your network connection (on android this means that the package/app (ie Twitter) is not installed on the device)", { “OK” } ) ""

even my android share is working with other apps … not sure why this is happening … is there a way in android to enable share Popup  … i thought it should be enabled by default in all phones…

please advice,

Abdul

I assume that you properly included the plugin and that your app has the “INTERNET” permission enabled?

Brent

I think so . because if you want to share then you should use internet… like twitter , facebook, whatsup… I did add internet permission in the build file but i got the same results. 

Not to ask the obvious. Twitter’s native app is installed and logged in? Not twitter through a webbrowser or some other twitter client?

Yes it is, I’ve just discovered it today!

This will allow you to share to Whatsapp (and a whole bunch of other stuff)

https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/

Watch out though, it’s iOS only and Whatsapp will only appear if you have added it to that bar that pops up in your settings.

Great man :) 

that was very useful to me… what about android  ? how can I do that

thx

Abdulaziz

Not sure on android if it’s possible as I’m only developing on iOS currently.  Have to leave that question open for someone else. Good luck!

Hi all,

Just to clarify, the Activity Plugin is iOS-only… it’s not meant for Android since it correlates to the “UIActivityViewController” in iOS, just as the documentation states:

https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/index.html

Brent

Hi Brent,

thanks for the clarification, what about android ? is there a way to share to WhatsApp?

regards

Abdul

Hi Abdul,

Please read the following tutorial, and test the “Social” plugin with the “share” parameter. I have not personally tried to share to WhatsApp on Android, but you should test it yourself.

https://coronalabs.com/blog/2015/04/21/tutorial-social-sharing-on-android/

Brent

Thanks Brent,

 I built the code for android device but every time I got this message 

 " Please setup your  share account or check your network connection (on android this means that the package/app (ie Twitter) is not installed on the device)", { “OK” } ) ""

even my android share is working with other apps … not sure why this is happening … is there a way in android to enable share Popup  … i thought it should be enabled by default in all phones…

please advice,

Abdul

I assume that you properly included the plugin and that your app has the “INTERNET” permission enabled?

Brent

I think so . because if you want to share then you should use internet… like twitter , facebook, whatsup… I did add internet permission in the build file but i got the same results.