ios - Push notification & UIApplicationDidBecomeActiveNotification -


i'm working push notifications, send push flag content-available set "true", know if when receive kind of push, uiapplicationdidbecomeactivenotification fired wake app, because there methods called when uiapplicationdidbecomeactivenotification fired system

if app enabled , configured receive background pushes when background push arrives app's didreceiveremotenotification: may called if app in background.

if app terminated os app may relaunched os when push arrives , push payload forwarded it.

if app terminated user app not relaunched os when push arrives.

i may because ios 8 apple have drastically changed when background push delivered app. there several factors involved, major major major factor if iphone being charged (via either direct power supply or via usb cable connected computer). if iphone being charged background push delivered (unless user terminated app), if iphone not being charged @ moment push arrives, majority of time push not delivered app.

in addition this, behavior when using apple sandbox environment not consistent when using apple production environment. can develop , test app using sandbox environment (as does) , may working fine. when switch production environment not - because background pushes sent on sandbox environment tend in experience delivered more background app if sent on production environment.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -