In the PushKit it is mentioned we can use regular push or VoIP push. But I did not find any documentation for what PKPushType to use for regular push. Did anybody try the regular push using the PushKit? If I don't use VoIP is it possible for a killed app to be launched in the background if it receives push notification? Meaning if app is killed and a notification comes and user does not act on it, can the app be launched by iOS in the background if I use PushKit?
相关问题
- Core Data lightweight migration crashes after App
- Plugin with id 'com.google.gms.google-services
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
I'm not sure what you mean by using "regular push" with PushKit, but you can use it to dispatch a notification regularly, although I think it will always execute your code, like a silent remote notification (maybe that's what you are wondering).
If you use PushKit, it does indeed launches an app when the notification is received, even if it was force-killed by the user. See this answer. I would just add that you probably need the Voice Over IP capability to achieve that effect.
Edit: This answer is not valid anymore.
Yes you can, check Apple Document
Another Important point need to be noted from documentation:
Since iOS 13.0, this is NOT allowed anymore. Apple will kill the app if failing to present CallKit before the
didReceiveIncomingPush(withPayload:)
is finished.An Apple Employee answered a similar question in this thread and said the following:
So sadly not anymore. We will have to use the normal UINotification framework for "standard" push messages.