用户工具

站点工具


差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
后一修订版 两侧同时换到之后的修订记录
en:razor:plugins:gcm [2015/03/19 11:41]
cobub [5. View reports of GCM.]
en:razor:plugins:gcm [2015/03/25 16:10]
cobub
行 1: 行 1:
 +~~Title:​Cobub Razor GCM 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. It integrates the push function of GCM and the Tag function of Cobub Razor , and make you push messages more conveniently,​ fastly and accurately.}}
 +{{keywords>​Cobub Razor,open source mobile analytics,​mobile analytics,​mobile app analytics, gcm, plugin}}
 +
 ====== GCM Plugin ====== ====== GCM Plugin ======
 ===== GCM  plug-in is a push plug-in that Cobub Razor developed which based on GCM . ===== ===== GCM  plug-in is a push plug-in that Cobub Razor developed which based on GCM . =====
行 15: 行 19:
 [[#Register a Google Account, get a Project Number and API Key.|How register a Google Account to get a Project Number and Api Key]]? [[#Register a Google Account, get a Project Number and API Key.|How register a Google Account to get a Project Number and Api Key]]?
  
-[[http://dev.cobub.com/​users/​index.php?/​help/​userkey#​n1|How authorize ​ a Cobub account]]?+[[http://www.cobub.com/​users/en/​index.php?/​help/​userkey#​n1|How authorize ​ a Cobub account]]?
  
 ==== 1. Register an account ​ in Cobub User Center. ==== ==== 1. Register an account ​ in Cobub User Center. ====
行 53: 行 57:
  
  
-  - Add permissions and declarations ​ for services. +    *  ​Add permissions and declarations ​ for services. 
-  - Add the following content under the application tag+ 
 +<code xml> 
 + 
 +<​permission 
 +android:​name="​PACKAGENAME.permission.C2D_MESSAGE"​ 
 +android:​protectionLevel="​signature"​ />  
 +<uses-permission android:​name="​PACKAGENAME.permission.C2D_MESSAGE"​ />  
 +<​uses-permission android:​name="​com.google.android.c2dm.permission.RECEIVE"​ />  
 +<​uses-permission android:​name="​android.permission.INTERNET"​ />  
 +<​uses-permission android:​name="​android.permission.GET_ACCOUNTS"​ />  
 +<!-- Keeps the processor from sleeping when a message is received. -->  
 +<​uses-permission android:​name="​android.permission.WAKE_LOCK"​ />  
 +<​uses-permission android:​name="​android.permission.READ_PHONE_STATE"/>​  
 +<​uses-permission android:​name="​android.permission.ACCESS_NETWORK_STATE"/>​  
 + 
 +</​code>​ 
 +  * Add the following content under the application tag 
 + 
 +<code xml> 
 +<​receiver 
 +android:​name="​com.google.android.gcm.GCMBroadcastReceiver"​ 
 +android:​permission="​com.google.android.c2dm.permission.SEND"​ >  
 +<​intent-filter>​  
 +<action android:​name="​com.google.android.c2dm.intent.RECEIVE"​ />  
 +<action android:​name="​com.google.android.c2dm.intent.REGISTRATION"​ />  
 +<​category android:​name="​PACKAGENAME"​ />  
 +</​intent-filter>​  
 +</​receiver>​  
 +<​receiver  
 +android:​name="​com.cobub.gcm.CobubBroadcastReceiver"​ >  
 +<​intent-filter >  
 +<action android:​name="​cobub.razor.message"/>​ 
 +</​intent-filter>​  
 +</​receiver>​  
 +<service android:​name="​com.cobub.gcm.GCMIntentService"​ />  
 +<​meta-data android:​name="​UMS_APPKEY"​ android:​value="​从cobub获取到的UMS_APPKEY"/>​ 
 +</​code>​
  
 === Step three: ​ Initialization for cobubGCM.jar. Generally,​you can call it in the OnCreate() method of Activity. === === Step three: ​ Initialization for cobubGCM.jar. Generally,​you can call it in the OnCreate() method of Activity. ===
行 70: 行 110:
 ==== 5. View reports of GCM. ==== ==== 5. View reports of GCM. ====
 Push reports contains all of the Apps’ reports, click on a specific APP to view the push reports of this application. Push reports contains all of the Apps’ reports, click on a specific APP to view the push reports of this application.
-==== 1.Register an account ​ in Cobub User Center ==== 
- 
-==== 2.Obtain an authorization code and get authorization ​ in authorization module of Cobub Razor ==== 
- 
-==== 3.Register a Google Account, get a Project Number and Api Key ==== 
  
-==== 4 SDK  Integration ==== 
  
-==== 5.View reports of GCM ==== 
  
en/razor/plugins/gcm.txt · 最后更改: 2017/07/14 11:18 (外部编辑)