這里會顯示出您選擇的修訂版和當前版本之間的差別。
兩側同時換到之前的修訂記錄 前一修訂版 后一修訂版 | 前一修訂版 | ||
en:razor:plugins:huaweipush [2015/03/19 13:57] cobub [3.2.修改華為推送SDK項目包名與您創建應用的包名相一致] |
en:razor:plugins:huaweipush [2017/07/14 11:18] (當前版本) |
||
---|---|---|---|
行 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]]. | ||
行 29: | 行 34: | ||
- | ==== 3.3.配置AndroidManifest.xml文件。 ==== | + | ==== 3.3 Configuration AndroidManifest.xml file. ==== |
- | * 添加授權 | + | * 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> | ||
- | * 加入服務聲明 | + | * Add Service Statement |
<code> | <code> | ||
meta-data | meta-data | ||
行 42: | 行 47: | ||
meta-data | meta-data | ||
</code> | </code> | ||
- | 注意:PACKAGENAME替換為項目包名.? | + | Note: PACKAGENAME replace the package name for the project.? |
- | 其中的APPKEY是通過Cobub razor創建應用時獲取到的 | + | APPKEY which is created by Cobub razor to get to the application of |
- | ==== 3.4 添加SendMapping.java映射文件:將SendMapping.java文件放在’..\src\項目名’目錄下 ==== | + | ==== 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 ==== |
- | 在您應用程序主Activity里導入 UmsAgent; | + | Import UmsAgent in your application’s main Activity Lane; |
<code> | <code> | ||
import com.wbtech.ums.UmsAgent;</code> | import com.wbtech.ums.UmsAgent;</code> | ||
- | 然后在您應用程序啟動初始化階段,初始化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類內調用。一般情況下,可以在Activity的onCreate()方法中調用? | + | This method must be called within the Activity or Service category. Under normal circumstances, you can call the Activity’s onCreate () method? |
- | 為保證意外情況導致初始化失敗,建議應用程序每次啟動時都調用一次該初始化接口。 | + | 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.使用華為推送服務 ===== | + | ===== 5 View a pushing and send reports ===== |
- | 進入Cobub Razor插件華為推送首頁,插件會讀取所有當前系統中的Android應用列表。? | + | 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.? |
- | 在每個應用后都有推送操作,用戶可以根據自身需要進行選擇消息類型。? | + | Push the report shows all active push APP report, click the report to push a single APP view a single application. |
- | 進入推送詳細界面,根據要求選擇標簽或者整個APP推送,填寫相關內容并進行推送 | + | |
- | ===== 5.查看個推推送報告 ===== | + | ===== 6 Account and balance sheet ===== |
- | 進入插件中的推送報告模塊,用戶可以查看用戶推送的報告。注:系統只支持30日內推送報告查詢服務。用戶可通過右上角選擇時間段。? | + | 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.? |
- | 推送報告顯示了所有激活的APP的推送報告,點擊單個APP查看單個應用的推送報告。 | + | 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.賬戶與結算 ===== | + | ===== 7 FAQ ===== |
- | 華為推送插件按月結算,系統會每個月根據用戶上個月的用戶所有APP在線用戶總數來進行結算。? | + | How to Get Package Name? ? |
- | 華為推送插件的收費是按照當月在線人數結算,與推送次數無關。? | + | Application identification (Package Name), often beginning com? |
- | 為保證推送服務正常進行,請到個人中心賬戶充值模塊預先充值。 | + | 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.常見問題 ===== | ||
- | 如何獲取Package Name? | ||
- | 應用標識(Package Name),常以com開頭 | ||
- | 方法: | ||
- | * 手機上打開你的應用 | ||
- | * 點擊設置 ->; 應用程序 ->; 管理應用程序 ->; 正在運行,在列表中找到你的程序 | ||
- | * 在進程中可以看到應用的應用標識(Package Name) |