UIApplication.RegisterForRemoteNotificationTypes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins the registration of the application to receive the specified types of notification from Apple Push Service.
[Foundation.Export("registerForRemoteNotificationTypes:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'RegisterUserNotifications', 'RegisterForNotifications' or 'UNUserNotificationCenter.RequestAuthorization' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RegisterForRemoteNotificationTypes (UIKit.UIRemoteNotificationType types);
abstract member RegisterForRemoteNotificationTypes : UIKit.UIRemoteNotificationType -> unit
override this.RegisterForRemoteNotificationTypes : UIKit.UIRemoteNotificationType -> unit
Parameters
- types
- UIRemoteNotificationType
The types of notifications that the app wants to employ.
- Attributes
Remarks
Only notifications of the types registered by this method will display, even if different types (e.g., an alert) is specified in the notification's payload.
Applies to
See also
- <xref:UIKit.UIApplicationDelegate.RegisteredForRemoteNotifications>
- <xref:UIKit.UIApplicationDelegate.FailedToRegisterForRemoteNotifications>
- EnabledRemoteNotificationTypes