ios - Processing (sending/receiving) UDP data in background -
i'm developing app in xamarin ios/android send , receive data using udp.
would possible while app running in background or when screen has gone sleep?
much when facebook messenger app in active call.
short answer (for ios): no. background fetch opportunistic, can't force it. remote notifications can triggered remotely processing time limited.
voip apps use libraries provided apple perform tasks (e.g: pushkit, callkit), , make use of voip background mode. have @ background execution. can't download content in background whenever want though, there limits (in notifications, data processing, etc.)
on android, can use services, that can perform long-running operations in background, , not provide user interface.
the closest android services remote notifications or background fetch. allowed background execution modes (excerpt):
- apps play audible content user while in background, such music player app
- apps record audio content while in background
- apps keep users informed of location @ times, such navigation app
- apps support voice on internet protocol (voip)
- apps need download , process new content regularly
- apps receive regular updates external accessories
declaring services lets system know services use, in cases system frameworks prevent application being suspended.
background fetch caveat:
enabling mode not guarantee system give app time perform background fetches
Comments
Post a Comment