简体   繁体   中英

Wake up app from background when wifi conectivity

I need my app to wake up when the phone has wifi conection so it can upload pictures to a server. I've checked the background modes and the closest mode I could choose is voip, but that wouldnt be right. I know that Google Analytics sends the info about the usage of the app while it has wifi connection, even if it's in the background, so there must be a way to do that. Do you have any ideas?

Thanks.

From what I have read, it is not possible to do so. If you read through the Apple developer's guide, it indicates that only certain functions are available as background tasks, and this isn't one of them. Check out the section "Declaring Your App's Supported Background Tasks" in the following document: http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

The following was a similar post: iOS app background upload trigger for wifi connection

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