用户工具

站点工具


差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
en:razor:plugins:iospush [2015/03/19 14:10]
cobub [2.Obtain an authorization code and get authorization in authorization module of Cobub Razor.]
en:razor:plugins:iospush [2017/07/14 11:18] (当前版本)
行 1: 行 1:
 +~~Title:​Cobub Razor iOS Push 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. IOS Push Plugin is a push plugin developed by Cobub Razor which is based on IOS.}}
 +{{keywords>​Cobub Razor,open source mobile analytics,​mobile analytics,​mobile app analytics, ios, push, plugin}}
 +
 ====== iOS Push Plugin ====== ====== iOS Push Plugin ======
  
行 14: 行 18:
 Before integrating the IOS Push Plugin,​please make sure that the related table has been created in your database.Go here to download the related SQL file and import it into your database(Note:​Please modify the table prefix ‘razor_’ to the prefix which is the same with your tables prefix in your database before importing ). Before integrating the IOS Push Plugin,​please make sure that the related table has been created in your database.Go here to download the related SQL file and import it into your database(Note:​Please modify the table prefix ‘razor_’ to the prefix which is the same with your tables prefix in your database before importing ).
  
-  * [[#​1.Register an account ​ in Cobub User Center.|1.Register an account ​ in Cobub User Center.]] 
-  * [[#2.Obtain an authorization code and get authorization ​ in authorization module of Cobub Razor.|2.Obtain an authorization code and get authorization ​ in authorization module of Cobub Razor.]] 
-  * [[#​3.Register ​ the IOS app and get a RegisterId.|3.Register ​ the IOS app and get a RegisterId.]] 
-  * [[#4.Upload the push certificate of  IOS.|4.Upload the push certificate of  IOS.]] 
-  * [[#5.Use the push service of IOS.|5.Use the push service of IOS.]] 
-  * [[#6.Guide of SDK.|6.Guide of SDK.]] 
  
 ==== FAQs ==== ==== FAQs ====
  
-[[www.cobub.com/​users/​index.php?/​help/​userkey|How authorize ​ a Cobub account?]]+[[http://www.cobub.com/​users/en/​index.php?/​help/​userkey#n1|How authorize ​ a Cobub account?]]
  
  
行 33: 行 31:
 Users can not use the IOS push service unless they register as a formal user in Cobub User Center . Users can not use the IOS push service unless they register as a formal user in Cobub User Center .
  
-If you have not registered yet, [[http://​www.cobub.com/​docs/​razor:​plugins:​www.cobub.com_users_index.php?/​help/​userkey|please go to Cobub User Center and register now]].+If you have not registered yet, [[http://​www.cobub.com/​users|please go to Cobub User Center and register now]].
 ==== 2.Obtain an authorization code and get authorization ​ in authorization module of Cobub Razor. ==== ==== 2.Obtain an authorization code and get authorization ​ in authorization module of Cobub Razor. ====
  
行 41: 行 39:
 Only an authorized account can use the rich extended function and value-added services of Cobub Razor provided by Cobub User Center. Only an authorized account can use the rich extended function and value-added services of Cobub Razor provided by Cobub User Center.
  
-[[http://​www.cobub.com/​docs/razor:​plugins:​www.cobub.com_users_index.php?/​help/​userkey|Obtain the authorization code and get authorization in authorization module of Cobub Razor.]]+[[http://​www.cobub.com/​users/en/index.php?/​help/​userkey|Obtain the authorization code and get authorization in authorization module of Cobub Razor.]]
 ==== 3.Register the IOS app and get an RegisterId. ==== ==== 3.Register the IOS app and get an RegisterId. ====
  
行 69: 行 67:
  
 Get the ‘deviceToken’ in ‘didRegisterForRemoteNotificationsWithDeviceToken‘ method, then execute the following code: Get the ‘deviceToken’ in ‘didRegisterForRemoteNotificationsWithDeviceToken‘ method, then execute the following code:
 +<​code>​NSString *udid = [UMSAgent getUMSUDID];​
 +[razor_apn_plugin resisterDevice:​udid token:​tokenKey appId:​@"​60c55f3ea1a5c288edecdbe06cdff9e5"​];</​code>​
  
-NSString *udid = [UMSAgent getUMSUDID];​ 
-[razor_apn_plugin resisterDevice:​udid token:​tokenKey appId:​@"​60c55f3ea1a5c288edecdbe06cdff9e5"​];​ 
 Note: The appId is the ID which is obtained after when user registered the app success in IOS Push Plugin in Cobub Razor. Note: The appId is the ID which is obtained after when user registered the app success in IOS Push Plugin in Cobub Razor.
  
 Download sample of SDK integration Download sample of SDK integration
  
-Download Plugin +  * Download Plugin 
-Download SDK +  ​* ​Download SDK 
-Download sample of SDK integration+  ​* ​Download sample of SDK integration
en/razor/plugins/iospush.1426745433.txt.gz · 最后更改: 2017/07/14 11:12 (外部编辑)