Exemple #1
0
        public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
        {
            string token = deviceToken.Description;

            token = token.Replace(" ", "");
            token = token.Replace(">", "");
            token = token.Replace("<", "");
            System.Console.WriteLine(token);
            JPUSHService.RegisterDeviceToken(token);
        }
Exemple #2
0
        /// <summary>
        /// 给极光deviceToken
        /// </summary>
        /// <param name="application">Application.</param>
        /// <param name="deviceToken">Device token.</param>
        public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
        {
            JPUSHService.RegisterDeviceToken(deviceToken);
            string tokenstr = deviceToken.Description;

            tokenstr = tokenstr.Replace("<", "");
            tokenstr = tokenstr.Replace(">", "");
            tokenstr = tokenstr.Replace(" ", "");

            Console.WriteLine("deviceToken===" + tokenstr);
            App.deviceToken = tokenstr;
            App.pushDeviceTokenToServie();
        }
 /// <summary>
 /// 给极光deviceToken
 /// </summary>
 /// <param name="application">Application.</param>
 /// <param name="deviceToken">Device token.</param>
 public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
 {
     Console.WriteLine("给极光token");
     JPUSHService.RegisterDeviceToken(deviceToken);
 }
 public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
 {
     System.Diagnostics.Debug.WriteLine("Device Token: " + deviceToken.Description);
     JPUSHService.RegisterDeviceToken(deviceToken);
 }