用户工具

站点工具


差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
en:razor:plugins:huaweipush [2015/03/19 11:52]
cobub created
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 ======
  
行 6: 行 11:
 Huawei Union open platform for messaging applications to help companies push through low-cost Internet access, provide a sound, efficient and stable service system solves the Internet cloud to the phone side of the message interoperability problems. Huawei Union open platform for messaging applications to help companies push through low-cost Internet access, provide a sound, efficient and stable service system solves the Internet cloud to the phone side of the message interoperability problems.
  
-===== Integration steps: =====I+===== Integration steps: =====
  
  
-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]].
  
 **2.Activate Huawei Cobub Razor in push applications ** **2.Activate Huawei Cobub Razor in push applications **
-若要使用华为推送插件中的推送,系统需要为每个App(当前只支持Android平台)分配相应的授权Key。+To use the plug-in Huawei push push, the system needs to be allocated for each of the corresponding authorization Key App (currently only supports ​Android ​platform).
  
-**3.华为推送SDK集成** +**3. Huawei push SDK integration ​** 
-在华为联盟下载下来的华为推送SDK.rar文件,在本地解压后,进入微内核SDK\Doc”目录,参考Doc目录下的《华为PushSDK集成说明.pdf》文档集成华为推送SDK+Huawei Huawei Push Coalition downloaded ​SDK for theRar file, after local decompression,​ go to micro-kernel ​SDK \ Doc” ​directory, “Huawei ​PushSDK ​integration instructionsPdf” Reference Doc directory integration Huawei push SDK documentation
  
-集成步骤:+Integration steps:
  
-==== 3.1.集成jar: ====+==== 3.1 Integration ​jar package: ====
  
-将获取到的cobub razorums.jar添加到华为推送项目的libs目录。 +Adding acquired ​cobub razor’s ums.jar ​Huawei to push the project ​libs directory. 
-在项目上右键选择Build Path->​Configure build path…>左侧选择 ​Java Build Path>;选择Libraries选择卡—>;Add JARs.. ​>;选择当前项目的Libs目录,选中jar包,然后点击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项目包名与您创建应用的包名相一致 ​====+==== 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. ====
  
-添加授权+ 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>​
-该方法必须在ActivityService类内调用。一般情况下,可以在ActivityonCreate()方法中调用 +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) 
en/razor/plugins/huaweipush.1426737126.txt.gz · 最后更改: 2017/07/14 11:12 (外部编辑)