当iOS12和Swift 4中应用处于后台时,didReceiveRemoteNotification不触发

时间:2018-10-04 08:15:07

标签: ios swift push-notification apple-push-notifications swift4

func application(
    _ application: UIApplication,
    didReceiveRemoteNotification userInfo: [AnyHashable : Any],
    fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {

    //Setting my code here according to requirement

}

0 个答案:

没有答案