GithubHelp home page GithubHelp logo

cordova-plugin-joinqqgroup's Introduction

安装

cordova plugin add https://github.com/liuxiang/cordova-plugin-joinQQGroup.git

使用

JoinQQGroup.open({key:'y-stNxKaFTfKNeDKRXdk9FXOKEpG22PG'}); -- android
JoinQQGroup.open({uin:'498644453',key:'0160929211e558ce77c3c044c510920d80c91088c1d047e66b27f57b40e8ba66'}); -- ios
  • web调用(过程存在浏览器中转,且依赖插件cordova-plugin-inappbrowser)
window.open('http://shang.qq.com/wpa/qunwpa?idkey=c9fe8f010659e42d1592998108c4f8dbb54ffa265ae537ac729f32710bf6ef4b', "_system");
window.open("http://jq.qq.com/?_wv=1027&k=2GxZBsK", "_system");
  • android调试 使用adt开发工具,导入platform/android工程,使用debug 调试,断点joinQQGroup执行代码即可

  • ios调试 使用xcode开发工具,断点joinQQGroup执行代码即可

示例

if (app.isWeb) {
  window.location.href = "http://jq.qq.com/?_wv=1027&k=2GxZBsK";
} else {
  // window.open("http://jq.qq.com/?_wv=1027&k=2GxZBsK", "_system");// 依赖插件 cordova-plugin-inappbrowser
  if(app.isAndroid){
    JoinQQGroup.open({key:joinQQGroupJson.android.key});
  }else{
    JoinQQGroup.open({uin:joinQQGroupJson.ios.uin,key:joinQQGroupJson.ios.key});
  }
}

cordova-plugin-joinqqgroup's People

Contributors

liuxiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.