我正在实施远程通知,并且我在向用户显示通知之前尝试更新应用。
问题是在我完成数据更新之前会显示通知,我缺少什么?
public override void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
{
//Some code to update the data - the notification is shown before this executed.
completionHandler (UIBackgroundFetchResult.NewData);
}