I have started developing a Phonegap app for android. I have some doubts implementing some features.
I have a text box and four buttons. The buttons are:
When I click the sms button I want to open android native sms app. When I click the email button I want to open android native email app. When I click the twitter button I want to share the text present in the textbox. When I click the facebook button I want to share the text present in the textbox.
Can any one help me on this? I know in native apps it's very easy, But I don't know how to do this on Phonegap apps.
You will need to use plugins for PhoneGap to do these things.
<a href="mailto:EMAIL@email.com>Email me</a>
In your html code will invoke the native email in android
<a href="sms:212-111-4444>SMS me</a>
Will also do the native bit
fb://messaging
does stuff and
twitter://messages
Check out http://wiki.akosma.com/IPhone_URL_Schemes#Facebook
This plugin allows you to use the native sharing window of all mobile device. Give a try
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.