這里會(huì)顯示出您選擇的修訂版和當(dāng)前版本之間的差別。
兩側(cè)同時(shí)換到之前的修訂記錄 前一修訂版 后一修訂版 | 前一修訂版 | ||
en:razor:plugins:huaweipush [2015/03/19 13:55] cobub [HuaweiPush Plugin] |
en:razor:plugins:huaweipush [2017/07/14 11:18] (當(dāng)前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ~~Title:Cobub Razor HuaweiPush Plugin - 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. Huawei Push the plug is Cobub Razor official platform based Huawei alliance to push the development of a plug-in. | ||
+ | It integrates features a push function Tag Huawei and Cobub Razor Alliance platform provides more convenient, fast and accurate a push.}} | ||
+ | {{keywords>Cobub Razor,open source mobile analytics,mobile analytics,mobile app analytics, HuaweiPush, Plugin}} | ||
+ | |||
====== HuaweiPush Plugin ====== | ====== HuaweiPush Plugin ====== | ||
行 9: | 行 14: | ||
- | Huawei push the plug before integration, ensure the establishment of a database related tables, can go to[[razor:plugins:start|here]]sql file Download related to import into your database, create a related table (note changes in the prefix table sql razor_, in order to maintain your own database table prefix and consistent). | + | Huawei push the plug before integration, ensure the establishment of a database related tables, can go to[[razor:plugins:start|here]] sql file Download related to import into your database, create a related table (note changes in the prefix table sql razor_, in order to maintain your own database table prefix and consistent). |
** 1.**Ensure Cobub Razor and Cobub authorized users Center has successfully bound.** If not binding, see [[razor:plugins:start|here]]. | ** 1.**Ensure Cobub Razor and Cobub authorized users Center has successfully bound.** If not binding, see [[razor:plugins:start|here]]. | ||
行 21: | 行 26: | ||
Integration steps: | Integration steps: | ||
- | ==== 3.1.集成jar包: ==== | + | ==== 3.1 Integration jar package: ==== |
- | 將獲取到的cobub razor的ums.jar添加到華為推送項(xiàng)目的libs目錄。? | + | Adding acquired cobub razor’s ums.jar Huawei to push the project libs directory.? |
- | 在項(xiàng)目上右鍵選擇Build Path->Configure build path…—>左側(cè)選擇 Java Build Path—>;選擇Libraries選擇卡—>;Add JARs.. —>;選擇當(dāng)前項(xiàng)目的Libs目錄,選中jar包,然后點(diǎn)擊OK. | + | Right on the project and select Build Path-> Configure build path … -> left select Java Build Path->; choose Libraries Select Card ->; Add JARs .. ->; choose the items currently Libs directory, select the jar package, and then click OK. |
- | ==== 3.2.修改華為推送SDK項(xiàng)目包名與您創(chuàng)建應(yīng)用的包名相一致 ==== | + | ==== 3.2.Modify download Huawei push SDK project package name and package name to create an application consistent: ==== |
- | ==== 3.3.配置AndroidManifest.xml文件。 ==== | + | ==== 3.3 Configuration AndroidManifest.xml file. ==== |
- | * 添加授權(quán) | + | * Add authorization |
<code> | <code> | ||
uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" | uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" | ||
uses-permission android:name="com.android.mylauncher.permission.INSTALL_SHORTCUT"</code> | uses-permission android:name="com.android.mylauncher.permission.INSTALL_SHORTCUT"</code> | ||
- | * 加入服務(wù)聲明 | + | * Add Service Statement |
<code> | <code> | ||
meta-data | meta-data | ||
行 42: | 行 47: | ||
meta-data | meta-data | ||
</code> | </code> | ||
- | 注意:PACKAGENAME替換為項(xiàng)目包名.? | + | Note: PACKAGENAME replace the package name for the project.? |
- | 其中的APPKEY是通過(guò)Cobub razor創(chuàng)建應(yīng)用時(shí)獲取到的 | + | APPKEY which is created by Cobub razor to get to the application of |
- | ==== 3.4 添加SendMapping.java映射文件:將SendMapping.java文件放在’..\src\項(xiàng)目名’目錄下 ==== | + | ==== 3.4 Add SendMapping.java mapping file: SendMapping.java document on ‘.. \ src \ project name’ directory ==== |
<code> | <code> | ||
行 173: | 行 178: | ||
} | } | ||
</code> | </code> | ||
- | ==== 3.5. 初始化SDK ==== | + | ==== 3.5 Initialize SDK ==== |
- | 在您應(yīng)用程序主Activity里導(dǎo)入 UmsAgent; | + | Import UmsAgent in your application’s main Activity Lane; |
<code> | <code> | ||
import com.wbtech.ums.UmsAgent;</code> | import com.wbtech.ums.UmsAgent;</code> | ||
- | 然后在您應(yīng)用程序啟動(dòng)初始化階段,初始化SDK: | + | Then start the initialization phase in your application initialization SDK: |
<code> | <code> | ||
UmsAgent.setBaseURL("http://192.168.1.104:80/dev07/razor/web/index.php?"); | UmsAgent.setBaseURL("http://192.168.1.104:80/dev07/razor/web/index.php?"); | ||
行 194: | 行 199: | ||
registerReceiver(receiver, filter); | registerReceiver(receiver, filter); | ||
</code> | </code> | ||
- | 該方法必須在Activity或Service類內(nèi)調(diào)用。一般情況下,可以在Activity的onCreate()方法中調(diào)用? | + | This method must be called within the Activity or Service category. Under normal circumstances, you can call the Activity’s onCreate () method? |
- | 為保證意外情況導(dǎo)致初始化失敗,建議應(yīng)用程序每次啟動(dòng)時(shí)都調(diào)用一次該初始化接口。 | + | To ensure that unforeseen circumstances cause initialization fails, the application is recommended once every start calling the initialization interface.。? |
+ | ? | ||
+ | ===== 4 Use Huawei’s push service =====? | ||
+ | ? | ||
+ | Huawei’s push into Cobub Razor Plug-home, plug-in application reads a list of all current system Android.? | ||
+ | Has a push operation after each application, the user can select the message type according to their needs.? | ||
+ | Push into the detailed interface, select the label as required or the entire APP push, and push relevant content to fill | ||
- | ===== 4.使用華為推送服務(wù) ===== | + | ===== 5 View a pushing and send reports ===== |
- | 進(jìn)入Cobub Razor插件華為推送首頁(yè),插件會(huì)讀取所有當(dāng)前系統(tǒng)中的Android應(yīng)用列表。? | + | Push into the plug-in reporting module, the user can view the user push reports. Note: The system supports only 30 days to push the report query service. The user can select the time period through the upper right corner.? |
- | 在每個(gè)應(yīng)用后都有推送操作,用戶可以根據(jù)自身需要進(jìn)行選擇消息類型。? | + | Push the report shows all active push APP report, click the report to push a single APP view a single application. |
- | 進(jìn)入推送詳細(xì)界面,根據(jù)要求選擇標(biāo)簽或者整個(gè)APP推送,填寫相關(guān)內(nèi)容并進(jìn)行推送 | + | |
- | ===== 5.查看個(gè)推推送報(bào)告 ===== | + | ===== 6 Account and balance sheet ===== |
- | 進(jìn)入插件中的推送報(bào)告模塊,用戶可以查看用戶推送的報(bào)告。注:系統(tǒng)只支持30日內(nèi)推送報(bào)告查詢服務(wù)。用戶可通過(guò)右上角選擇時(shí)間段。? | + | Huawei push the plug on a monthly basis, based on the total number of users the system last month, every month all users APP online users to be settled.? |
- | 推送報(bào)告顯示了所有激活的APP的推送報(bào)告,點(diǎn)擊單個(gè)APP查看單個(gè)應(yīng)用的推送報(bào)告。 | + | Huawei push the plug is charged according to the number of online settlement of the month, regardless of the number of push.? |
+ | In order to ensure the normal push service, please recharge module pre individuals Center account recharge. | ||
- | ===== 6.賬戶與結(jié)算 ===== | + | ===== 7 FAQ ===== |
- | 華為推送插件按月結(jié)算,系統(tǒng)會(huì)每個(gè)月根據(jù)用戶上個(gè)月的用戶所有APP在線用戶總數(shù)來(lái)進(jìn)行結(jié)算。? | + | How to Get Package Name? ? |
- | 華為推送插件的收費(fèi)是按照當(dāng)月在線人數(shù)結(jié)算,與推送次數(shù)無(wú)關(guān)。? | + | Application identification (Package Name), often beginning com? |
- | 為保證推送服務(wù)正常進(jìn)行,請(qǐng)到個(gè)人中心賬戶充值模塊預(yù)先充值。 | + | Method:? |
+ | - Open the application on your phone? | ||
+ | - Click Settings ->; Applications ->; management application ->; running, find your program in the list? | ||
+ | - In the application process can be seen in the application of identity (Package Name) | ||
- | ===== 7.常見(jiàn)問(wèn)題 ===== | ||
- | 如何獲取Package Name? | ||
- | 應(yīng)用標(biāo)識(shí)(Package Name),常以com開(kāi)頭 | ||
- | 方法: | ||
- | * 手機(jī)上打開(kāi)你的應(yīng)用 | ||
- | * 點(diǎn)擊設(shè)置 ->; 應(yīng)用程序 ->; 管理應(yīng)用程序 ->; 正在運(yùn)行,在列表中找到你的程序 | ||
- | * 在進(jìn)程中可以看到應(yīng)用的應(yīng)用標(biāo)識(shí)(Package Name) |