Giter Site home page Giter Site logo

wh6688 / cordova-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baidumobileanalysis/cordova-sample

0.0 2.0 0.0 15.21 MB

百度移动统计Cordova使用

Objective-C 78.67% JavaScript 9.61% Batchfile 1.85% Shell 0.64% CSS 2.46% HTML 2.22% Java 4.55%

cordova-sample's Introduction

百度移动统计Cordova Demo

iOS

  1. clone此代码库
  2. 打开$(home)/platforms/ios/HelloWorld.xcworkspace
  3. 工程中已经集成了MTJ的SDK,以及百度移动统计Cordova插件,可以直接运行调试
  4. JS Api调用示例,请查看$(home)/www/js/index.js 文件。

Android

  1. clone此代码库,并运行

    cordova plugin add cordova-plugin-baidumobstatistics --variable IOSAPPID=[your iOS AppKey] --variable ANDROIDAPPID=[your Android AppKey]
    cordova prepare
    
  2. 运行

    cordova run android
    
  3. 调试

    需要在java代码中打开调试开关:

    StatService.setDebugOn(true);
    

    可以通过 adb logcat -s sdkstat 确认统计日志发送成功到服务器,logcat显示 send log data over. result = true;即发送成功。

cordova-sample's People

Contributors

yeluolei avatar wh6688 avatar

Watchers

James Cloos avatar  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.