Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS13 can't support the background update notification?

iOS13 can't support the background update notification.Is this an OS-level bug? And when app enter background,the Xcode warning shows:

Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

like image 939
YongJie Avatar asked Sep 24 '19 13:09

YongJie


People also ask

Why are my notifications not working iPhone 13?

You can fix an iPhone that's not getting notifications by restarting it or making sure notifications are turned on. You should also make sure your iPhone is connected to the internet so apps can receive notifications. If all else fails, you should try resetting the iPhone — just make sure to back it up first.

How do I turn on notifications on iOS 13?

You can turn app notifications on or off, have notifications play a sound, choose how and where you want app notifications to appear when your device is unlocked, and more. Go to Settings > Notifications. Choose how you want notifications displayed on the Lock Screen: View just the number of notifications: Tap Count.


1 Answers

I have got the answer from the Developer Documentation: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns

apns-push-type

(Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions.) The type of the notification. The value of this header is alert or background. Specify alert when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify background for silent notifications that do not interact with the user.

like image 130
YongJie Avatar answered Nov 13 '22 03:11

YongJie