Class PushKit


  • public final class PushKit
    extends java.lang.Object
    • Method Detail

      • PKPushTypeVoIP

        @NotNull
        public static @NotNull java.lang.String PKPushTypeVoIP()
        A push type for Voice-over-IP (VoIP) call invitations. Use this type of notification to initiate live voice calls over the network. Apps receiving VoIP push notifications must report the call quickly to CallKit, so it can alert the user to the presence of the incoming call. For apps linked against the iOS 13 SDK or later, the system terminates your app if you fail to report these notifications to CallKit. If your app repeatedly fails to report VoIP notifications to CallKit, the system stops launching your app for VoIP push notifications. Don't use this type of notification for anything other than initiating VoIP calls. If you don't want to post the CallKit call interface, handle notifications with the framework instead of ``PushKit``. When sending encrypted content, use a Notification Service Extension to decrypt that content before displaying it to the user. You can also use a Notification Content Extension to display a custom interface for your app's notifications. For more information, see and . API-Since: 9.0
      • PKPushTypeComplication

        @NotNull
        @Deprecated
        public static @NotNull java.lang.String PKPushTypeComplication()
        Deprecated.
        A push type for watchOS complications. Use this type of notification to deliver updated data related for your watchOS app’s complication. The watchOS app’s complication must be active on the user’s current clock face. If it is not, the system does not deliver pushes of this type. For watchOS 6 and later, send the push notification directly to Apple Watch. For watchOS 5 and earlier, you must send it to the iOS companion instead. The time your watchOS app spends processing these push notifications counts against the budget allotted to your complication for updating itself. Don't start any long-running tasks when processing the notification payload. In fact, it is recommended that you include all needed data in the payload so that your app can process that data quickly. The system limits you to 50 push notifications per day. If you exceed the limit, subsequent pushes are not delivered. API-Since: 9.0 Deprecated-Since: 13.0 Deprecated-Message: Complication pushes are supported directly on watchOS now, so this should no longer be used on iOS.
      • PKPushTypeFileProvider

        @NotNull
        public static @NotNull java.lang.String PKPushTypeFileProvider()
        A push type for file provider updates. Use file provider notifications to update your File Provider extension's content from your server. For more information, see . API-Since: 11.0