Edit

Share via


CPApplicationDelegate.DidReceiveRemoteNotification Method

Definition

Remote background notification support: Invoked by operating system when your application received a remote notification.

[Foundation.Export("application:didReceiveRemoteNotification:fetchCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidReceiveRemoteNotification (UIKit.UIApplication application, Foundation.NSDictionary userInfo, Action<UIKit.UIBackgroundFetchResult> completionHandler);
abstract member DidReceiveRemoteNotification : UIKit.UIApplication * Foundation.NSDictionary * Action<UIKit.UIBackgroundFetchResult> -> unit
override this.DidReceiveRemoteNotification : UIKit.UIApplication * Foundation.NSDictionary * Action<UIKit.UIBackgroundFetchResult> -> unit

Parameters

application
UIApplication

Handle to the UIApplication.

userInfo
NSDictionary
completionHandler
Action<UIBackgroundFetchResult>

Callback to invoke to notify the operating system of the result of the background fetch operation.

Attributes

Remarks

This method is part of iOS 7.0 new remote notification support. This method is invoked if your Entitlements list the "remote-notification" background operation is set, and you receive a remote notification.

Upon completion, you must notify the operating system of the result of the method by invoking the provided callback.

Important: failure to call the provided callback method with the result code before this method completes will cause your application to be terminated.

Applies to