Parse warning from didReceiveRemoteNotification:fetchCompletionHandler

后端 未结 5 1957
自闭症患者
自闭症患者 2020-12-12 19:23

I am getting an error after adding this code from parse.com:

- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)us         


        
5条回答
  •  囚心锁ツ
    2020-12-12 19:59

    When you use the new didReceive... method you are expected to do two things:

    1. Add the necessary entry in your plist
    2. Add a completion handler that will handle the event for handling the data

    If you do not want to download any data, you can add this to your didReceive... method

    completionHandler(.NoData)
    

提交回复
热议问题