disableAllBackgroundDelivery(completion:)
Disables all background deliveries of update notifications.
Declaration
func disableAllBackgroundDelivery(completion: @escaping @Sendable (Bool, (any Error)?) -> Void)func disableAllBackgroundDelivery() async throwsParameters
- completion:
A block that this method calls as soon as the background deliveries are disabled. This block is passed the following parameters:
Discussion
Call this method to prevent your app from receiving any additional update notifications while in the background. This method operates asynchronously. As soon as the background deliveries are disabled, this method calls its completion handler on a background queue.