简体   繁体   中英

How to wake up ios from my app?

In my game, the sprites blink when iOS goes into idle. To fix this issue, I set idle timer disabled, but the app can still get idle in some scenarios, for instance, the app get sleep and then switch back by users.

Is there any way I can wake up ios proactively with some API?

There is no way of doing it other than:

[UIApplication sharedApplication].idleTimerDisabled = YES;

Only the user can control when your app is sent to background / foreground / sleep.

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