91嫩草国内在线,韩国理论电影免费看,6969精品视频在线观看,1024在线视频精品免费,色中色污,饭冈佳奈子在线

用戶工具

站點工具


差別

這里會顯示出您選擇的修訂版和當前版本之間的差別。

到此差別頁面的鏈接

兩側同時換到之前的修訂記錄 前一修訂版
后一修訂版
前一修訂版
en:razor:plugins:getui [2015/03/19 10:51]
cobub [Steps of integration:]
en:razor:plugins:getui [2017/07/14 11:18] (當前版本)
行 1: 行 1:
 +~~Title:​Cobub Razor Getui Plugins - Mobile Apps Marketing Platform of Open Source - Mobile Analytics & Mobile Push Notification Solutions - Cobub Mobile Developer Center~~
 +{{description>​Cobub Razor is an Open Source Mobile Analytics. It integrates the function of Getui and the tag function of Cobub Razor, and makes you push messages more conveniently,​quickly and accurately.}}
 +{{keywords>​Cobub Razor,open source mobile analytics,​mobile analytics,​mobile app analytics, getui, plugin}}
 +
 ====== Getui Plugins ====== ====== Getui Plugins ======
 +
 ===== Getui plugin is a push plugin developed by Cobub Razor which is based on Getui. ===== ===== Getui plugin is a push plugin developed by Cobub Razor which is based on Getui. =====
 It integrates the function of Getui and the tag function of Cobub Razor, and makes you push messages more conveniently,​quickly and accurately. It integrates the function of Getui and the tag function of Cobub Razor, and makes you push messages more conveniently,​quickly and accurately.
行 17: 行 22:
  
 3.1 Download SDK. 3.1 Download SDK.
-Please click here to download the SDK.+Please click {{:​razor:​plugins:​getui_sdk_v0.1.zip|here}} to download the SDK.
  
 3.2.Add the SDK.jar of Cobub Razor and GexinSdk.jar to the libs directory of your project. 3.2.Add the SDK.jar of Cobub Razor and GexinSdk.jar to the libs directory of your project.
行 24: 行 29:
  
 3.4.Configure AndroidManifest.xml. 3.4.Configure AndroidManifest.xml.
 +  * Add permissions
 +  * Add declarations
 +Note:​PACKAGENAME should be replace by the package name of your project.
 +UMS_APPKEY,​appid,​appkey and appsecret are obtained from Cobub razor.
 +  * Add following content(red part) in the entrance Activity of the App.
 +3.5. Initialization of SDK
 +Import MessageManager in Main Activity of your application,​ as following:
 +
 +<​code>​import com.igexin.slavesdk.MessageManager;</​code>​
 +
 +Then initialize the SDK in the initialization phase of your application:​
 +
 +<​code>​MessageManager.getInstance().initialize(this.getApplicationContext());</​code>​
 +
 +This method can be called only in Activity or Service. Generally,​you can call it in the OnCreate() method of Activity.
 +To prevent accidents from causing ​ initialization failed, ​ it is suggested that the application calls this interface one time when starting for every time.
 +
 +3.6. Copy app_download_notification.xml and notification.xml to res/layout/ of your project,or it will not support the function of download and the custom notification icon.
 +
 +MsgReceiver.java is used to get the content,as following:
 +
 +<​code>​package com.test;
 +import android.content.BroadcastReceiver;​
 +import android.content.Context;​
 +import android.content.Intent;​
 +import android.os.Bundle;​
 +import android.util.Log;​
 +import com.igexin.sdk.Consts;​
 +public class MsgReceiver extends BroadcastReceiver {
 +@Override
 +    public void onReceive(Context context, Intent intent) {
 +        Bundle bundle = intent.getExtras();​
 +        switch (bundle.getInt(Consts.CMD_ACTION)) {
 +            case Consts.GET_MSG_DATA:​
 +                // get the data of Touchuan(payload)
 +                byte[] payload = bundle.getByteArray("​payload"​);​
 +                if (payload != null) {
 +                    String data = new String(payload);​
 +                    Log.d("​GexinSdkDemo",​ "Got Payload:"​ + data);
 +                    // TODO:​receive and deal with the data of Touchuan(payload)
 +                }
 +                break;
 +            default:
 +                break;
 +        }
 +    }
 +}</​code>​
 +
 +**4.Use the push sevice of Getui**
 +Open the home page of Getui in Cobub Razor,all apps of Android of current system will be displayed in here.
 +There are two operations after each application named ‘push’ and ‘Touchuan push’,​which you can choose according to your own message type.
 +After entering the detail page of push,you can choose some tags or none(push to all) according to your requirements.
 +
 +**5.View Getui reports**
 +Open the home page of Getui Reports,you can view the details of push report.
 +Note:The system only supports 30 days query. You can choose the time period at the top right-hand corner.
 +The home page of report displays all activated apps, click on “View Report” can view the detailed push report of the app.
 +
 +**6.Account and Statistics**
 +Getui Plug-in counts once a month,​system will count the number of online users of last month of all apps.
 +Push Plug-in charge is according to the number of online during the month,have nothing to do with the number of push.
 +Ensure that the push service operates successfully,​please go to your personal account in Cobub User Center and pre recharge your account.
 +
 +**7.FAQs**
 +
 +What’s the Touchuan Push?
 +Touchuan message is pushed to client by the push server through SDK,how to deal with this message is handled by the users themselves.(Note:​The message content does not support the escape character)
 +How the client receive the Touchuan message, please see [[http://​bbs.igetui.com/​forum.php?​mod=viewthread&​tid=6&​extra=page%3D1|《Integration Guide Of Getui》]]
 +Ensure that the push service operates successfully,​please go to your personal account in Cobub User Center and pre recharge your account.
 +
 +How to get the Package Name?
 +Application ID(Package Name),which often begin with “com”.
 +Method one:
 +Install and open {{http://​www.igetui.com/​download/​android/​PackageTool.apk|Detection tools}} of package name
  
 +Method two:
 +  * 1.Open your phone application.
 +  * 2.Click on “Setting” -> “Applications” -> “Manage Applications” -> “Running”,​find your application.
 +  * 3.You can see the application ID in “Process”.(Package Name)
en/razor/plugins/getui.1426733495.txt.gz · 最后更改: 2017/07/14 11:12 (外部編輯)