简体   繁体   中英

send UIAlert from background mode

I'm currently using local notification to indicate incoming call from background mode. That's works fine, but this is what i see, when skype got a call in background mode:

在此输入图像描述

So looks like it possible to show UIAlert from background and anybody can answer me how?

No you can not display an UIAlertView from the background, but you can scheudule a UILocalNotification .

Just set the fireDate property of the UILocalNotification to the current date and it will be displayed directly.

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