Trouble Using socialSahre

1
1

I'm trying to use your socialShare plugin for iPhone with Phonegap(cordova) 2.7.

I followed your instructions, but the step for setting up the plist info seems to have changed in Phonegap to now be about editing the config.xml file, so I did that instead.

But, it's not working.

When I call your plugin, I get the following error logged to the Console

2013-06-03 21:17:25.141 MrNasty[22151:907] CDVPlugin class socialShare (pluginName: social) does not exist. 2013-06-03 21:17:25.142 MrNasty[22151:907] ERROR: Plugin 'social' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2013-06-03 21:17:25.143 MrNasty[22151:907] -[CDVCommandQueue executePending] [Line 116] FAILED pluginJSON = [ "social830413212", "social", "showSMSComposer", [ "Technology and Digital Media http:\/\/tech.sarathdr.com" ] ]

1
1

Thanks Sarathdr. In Phonegap 2.7, the cordova.plist is gone and there's a config.xml that takes its place. (at least when working with XCode for iOS) I did have them there, but it still didn't work. But, in case anyone else is getting the same error, I finally found the problem.

Turns out that simply placing the .h and .m files in the plug-ins folder using the Finder, doesn't really place them in the project. (Thanks Apple for that bug) You need to actually drag them into the Plugins "folder" using the Project Navigator view in XCode. Once you do that, XCode actually knows they are there.

Hopefully this info will help someone else struggling with Phonegap 2.7 and XCode. Cheers Bob

  • Sarath DR
    Thanks Bob mentioning this here
0
0

No i am not getting any error.

0
0

Have you added the below code in your cordova.plist file.

<key>social</key>
<string>socialShare</string>

You can check the step 3 in the below post

http://tech.sarathdr.com/featured/phonegap-share-plugin-for-iphone-share-facebook-twitter-email-and-sms/

0
0

I am using Cordova 2.7 and also updated the cordova.plist file with the followiing:

<key>social</key> <string>socialShare</string>

But no ouput.. Can you please help me on this?

Thanks & Regards Suresh

  • Sarath DR
    Have you received any error
Your Answer
About
View Sarath D R's profile on LinkedIn

I am a technology consultant and an entrepreneur focused on the following technologies Java,Spring, Android, Angular, Asterisk, Symfony, Cake , Code-Igniter, Jquery , XAMPP, XHTML, AJAX, MySql, Seo, Web Design, Wordpress, iPhone development.

Today’s Tips
  • Generate Codova.jar file from Phonegap project using ant
  • Google map javascript client  to find the geographic co-ordinates  from  Address or post code
  • Update Android main UI from Webview – Phonegap Plugin
  • Jplayer is not working  with HTC One Android 4.3 version browser
  • Regular expression to validate mobile phone numbers starting with + ( plus ) – php
  • Simple pagination script for PHP
  • Useful adb ( Android Debug Bridge ) commands
  • Change the javascript files url to absolute url – Symfony 1.4
  • Set Http authentication header from Client – PHP / CURL

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.This site also uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.

Close