- Home /
Question by
gregzo · Oct 17, 2012 at 10:15 AM ·
iosnotificationonapplicationpausehome
OnApplicationPause iOS: notification or home pressed?
Hi!
How do I tell the difference between these two cases?
In case it's a notification(appointments, alarms etc...), no need to preserve the app's state. In case the user presses home, I'd serialize it.
Many thanks for your insights!
Comment
Is it possible to check if remoteNotificationCount returns more than 0 to deter$$anonymous$$e if its a notification or home button?
Hopes were high, but no : both remoteNotificationCount and localNotificationCount return 0, both when pausing and when resu$$anonymous$$g the app beacuse of an calendar alert...