Giter Site home page Giter Site logo

growingio / cordova-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 9.0 0.0 45.98 MB

Cordova GrowingIO 埋点SDK demo

Home Page: https://docs.growingio.com/docs/sdk-integration/cordova-mai-dian-sdk

PureBasic 0.02% Java 46.62% CSS 0.82% HTML 2.91% JavaScript 11.05% Batchfile 3.49% Objective-C 34.76% Ruby 0.05% Shell 0.29%
growingio cordova

cordova-demo's Introduction

Cordova-Demo

主要示例 GrowingIO Cordova 埋点 SDK 的集成方式。

  1. Demo 运行截图
    image

  2. 运行

cordova run android 
  1. 如果您想使用 mobile debugger 查看数据,您需要使用您的 UrlScheme 和 projectId 替换对应文件的内容;
    (1)platforms/android/app/build.gradle
android {

    defaultConfig {
        ...
        
        //GrowingIO 配置, 请切换成您的账号下的 项目id 和 url scheme 哦, 别忘记还要配置 Manifest 中的 URLscheme。
        resValue("string", "growingio_project_id", "您的项目id")
        resValue("string", "growingio_url_scheme", "您的 URL scheme")

(2) platforms/android/app/src/AndroidManifest.xml

   <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:name=".Myapp" android:supportsRtl="true">
        <activity ... />
            
            <intent-filter>
                <data android:scheme="growing.您的 URL scheme" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
            </intent-filter>
        </activity>
  1. 运行 iOS
cordova run ios
  1. 如果您想使用 mobile debugger 查看数据,您需要使用您的 UrlScheme 和 projectId 替换对应文件的内容

cordova-demo's People

Contributors

lizwangying avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-demo's Issues

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.