• <small id='GyZP1'></small><noframes id='GyZP1'>

    <tfoot id='GyZP1'></tfoot>
  • <i id='GyZP1'><tr id='GyZP1'><dt id='GyZP1'><q id='GyZP1'><span id='GyZP1'><b id='GyZP1'><form id='GyZP1'><ins id='GyZP1'></ins><ul id='GyZP1'></ul><sub id='GyZP1'></sub></form><legend id='GyZP1'></legend><bdo id='GyZP1'><pre id='GyZP1'><center id='GyZP1'></center></pre></bdo></b><th id='GyZP1'></th></span></q></dt></tr></i><div id='GyZP1'><tfoot id='GyZP1'></tfoot><dl id='GyZP1'><fieldset id='GyZP1'></fieldset></dl></div>

      <legend id='GyZP1'><style id='GyZP1'><dir id='GyZP1'><q id='GyZP1'></q></dir></style></legend>
        <bdo id='GyZP1'></bdo><ul id='GyZP1'></ul>

        在 iphone 中解析推送通知

        时间:2024-08-12
          1. <i id='jUrHP'><tr id='jUrHP'><dt id='jUrHP'><q id='jUrHP'><span id='jUrHP'><b id='jUrHP'><form id='jUrHP'><ins id='jUrHP'></ins><ul id='jUrHP'></ul><sub id='jUrHP'></sub></form><legend id='jUrHP'></legend><bdo id='jUrHP'><pre id='jUrHP'><center id='jUrHP'></center></pre></bdo></b><th id='jUrHP'></th></span></q></dt></tr></i><div id='jUrHP'><tfoot id='jUrHP'></tfoot><dl id='jUrHP'><fieldset id='jUrHP'></fieldset></dl></div>
          2. <tfoot id='jUrHP'></tfoot>
            <legend id='jUrHP'><style id='jUrHP'><dir id='jUrHP'><q id='jUrHP'></q></dir></style></legend>
            • <bdo id='jUrHP'></bdo><ul id='jUrHP'></ul>

                <small id='jUrHP'></small><noframes id='jUrHP'>

                  <tbody id='jUrHP'></tbody>

                • 本文介绍了在 iphone 中解析推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Integrated parse push notification in iOS project. Not working.

                  Here is my code:

                  #ifdef ENABLE_PARSE_PUSH
                  #import "Parse/Parse.h"
                  #endif
                  
                  //in appDelegate didFinishLaunchingWithOptions
                  
                  #ifdef ENABLE_PARSE_PUSH
                  
                      // Obtain the installation object for the current device
                  
                      [Parse setApplicationId:PARSE_APP_ID clientKey:PARSE_APP_SIGNATURE];
                  
                      PFInstallation *myInstallation = [PFInstallation currentInstallation];
                  
                      // Save some data
                      [myInstallation setObject:@"YES" forKey:@"scoreUpdates"];
                  
                      // Save or Create installation object
                      [myInstallation saveInBackground];
                  
                      [application registerForRemoteNotificationTypes:
                       UIRemoteNotificationTypeBadge |
                       UIRemoteNotificationTypeAlert |
                       UIRemoteNotificationTypeSound];
                  #endif
                  
                  
                  
                  #ifdef ENABLE_PARSE_PUSH
                  - (void)application:(UIApplication *)application
                  didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken
                  {
                      [PFPush storeDeviceToken:newDeviceToken]; // Send parse the device token
                      // Subscribe this user to the broadcast channel, ""
                      [PFPush subscribeToChannelInBackground:@"" block:^(BOOL succeeded, NSError *error) {
                          if (succeeded)
                          {
                              //#ifdef DEBUG
                              //NSLog(@"Successfully subscribed to the broadcast channel.");
                              //#endif
                          }
                          else
                          {
                              //#ifdef DEBUG
                              //NSLog(@"Failed to subscribe to the broadcast channel.");
                              //#endif
                          }
                      }];
                  }
                  
                  - (void)application:(UIApplication *)application
                  didReceiveRemoteNotification:(NSDictionary *)userInfo {
                      [PFPush handlePush:userInfo];
                  }
                  
                  #endif
                  

                  here is one similar post not helped for me..tried all suggested solutions. What's wrong..already uploaded development push SSL in parse.com. help me to get solution.

                  Now test push message from parse.com is not delivering in device.

                  解决方案

                  Ok Finally resolved this problem.

                  We need to create new provisioning profile after configuring push SLL in app id section. Then we need to use new provisioning profile.

                  This solved my problem and now getting test push message from Parse.

                  这篇关于在 iphone 中解析推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用openGL和cocos2D绘制大量线条的最佳方法是什么? 下一篇:《如何使用 Cocos2D 2.X 制作基于 Tile 的游戏》使用 cocos2d V3 制作本教程

                  相关文章

                    <bdo id='zQSAD'></bdo><ul id='zQSAD'></ul>

                • <legend id='zQSAD'><style id='zQSAD'><dir id='zQSAD'><q id='zQSAD'></q></dir></style></legend>

                  1. <tfoot id='zQSAD'></tfoot>

                    <small id='zQSAD'></small><noframes id='zQSAD'>

                      <i id='zQSAD'><tr id='zQSAD'><dt id='zQSAD'><q id='zQSAD'><span id='zQSAD'><b id='zQSAD'><form id='zQSAD'><ins id='zQSAD'></ins><ul id='zQSAD'></ul><sub id='zQSAD'></sub></form><legend id='zQSAD'></legend><bdo id='zQSAD'><pre id='zQSAD'><center id='zQSAD'></center></pre></bdo></b><th id='zQSAD'></th></span></q></dt></tr></i><div id='zQSAD'><tfoot id='zQSAD'></tfoot><dl id='zQSAD'><fieldset id='zQSAD'></fieldset></dl></div>