objective c - Bring terminated iOS app to Foreground state once internet is available -
app works without internet , i'm storing user data in csv file using xcode
. when internet available, want send csv file on net weather app in terminated or suspended state. there way around bring app in foreground/background state terminated/suspended state when internet available?
yes, pretty annoying.
whenever loose server connection app's instance, schedule push notification. when gets handled (e.g. device online , receiving push), may start background task uploads data.
besides abusing push notification service , annoying users (because of decreasing battery life persistent networking , constant push notifications), need massive end hold connections active app installations.
so, yes, please don't.
edit:
since data may change when app 'alive', can't rely on background fetch , background upload tasks, queueing unsuccessful uploads?
Comments
Post a Comment