简体   繁体   中英

can content-available be used in a non-silent push?

We'd like to send a "regular" push (with an alert in aps ) but with a content-available as well.

This way while the user reads the message, we already do some processing and when he taps, the app is ready.

The documentation at

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

is a bit confusing in that regard. Would it work? I've only used them separately in the past (either only alert / sound / badge or content-available ).

如果谁发现这个任何一个想知道,我已经测试,并与iOS 9.1 - 10.2 :为了做后台处理, alert / sound / badge是不够的, 必须添加content-available

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM