GithubHelp home page GithubHelp logo

raistlinzx / cordova-plugin-sharesdk Goto Github PK

View Code? Open in Web Editor NEW
44.0 7.0 23.0 62.24 MB

Cordova插件,集成ShareSDK,实现分享功能(微信,QQ,QQ空间,新浪微博)

JavaScript 0.12% Java 15.78% Objective-C 83.48% C 0.14% HTML 0.47%

cordova-plugin-sharesdk's Introduction

安装

ionic platform add ios
ionic platform add android

ionic plugin add https://github.com/raistlinzx/cordova-plugin-sharesdk.git \
	--variable SHARESDK_IOS_APPKEY=<ShareSDK iOS App Key> \
    --variable SHARESDK_ANDROID_APPKEY=<ShareSDK Android App Key> \
	--variable QQAPPID=<QQ App Id> \
	--variable QQAPPKEY=<QQ App Key> \
	--variable WECHATAPPID=<WeChat App Id> \
	--variable WECHATAPPSECRET=<WeChat App Secret> \
	--variable QQURLSCHEME=<QQ Url Scheme For iOS Only> \
	--variable WBAPPKEY=<SinaWeibo App Key> \
	--variable WBAPPSECRET=<SinaWeibo App Secret> \
	--variable WBREDIRECTURL=<SinaWeibo Redirect Url>
参数 说明
SHARESDK_IOS_APPKEY ShareSDK注册(IOS)
SHARESDK_ANDROID_APPKEY ShareSDK注册(ANDROID)
QQAPPID QQ开放平台注册
QQAPPKEY QQ开放平台注册
QQURLSCHEME QQ回调Scheme。例如:QQ41DF25B4
WECHATAPPID 微信开放平台注册
WECHATAPPSECRET 微信开放平台注册
WBAPPKEY 新浪微博
WBAPPSECRET 新浪微博
WBREDIRECTURL 新浪微博回调地址。必须与注册时一致

卸载重新安装

ionic plugin remove com.ryanzx.cordova.plugin.sharesdk

JS调用

function test() {
	cordova.exec(function(result) {
		alert('分享成功');
    }, function(error) {
		alert('分享失败');
		console.debug(error)
    }, "ShareSDK", "share", ['测试分享标题','你们好啊这里是测试分享','http://cdn.qiyestore.com/openapi/upload/2015/12/25/EYZZ17L785.png','http://www.qiyestore.com']);
}
参数 说明
参数1 标题
参数2 文字内容
参数3 图片URL
参数4 分享查看URL

cordova-plugin-sharesdk's People

Contributors

raistlinzx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-sharesdk's Issues

不同的手机/系统显示分享渠道个数不同???

目前测试几种手机出来的分享渠道各不相同:
iPhone4,Android,iPhone5s 出来分享的渠道个数都不一样。
有的是插件点开就只能看到一个微博的图标分享。有的手机没有微信收藏图标。。
这个是有规律吗?还是可配置的。能统一吗?
比如所有手机固定图标个数。

请教插件安装问题

1.因为我没用ionic框架,可以直接用phonegap plugin add 命令安装吗?
2. --varialbe 参数,所有平台的参数必须设置吗?因为我们现在只打算用微信的appid,没有其他平台的开发账号。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.