How do you handle a push differently in Titanium depending on whether the app was open at the time the push arrived?
When a push notification comes in and my app is running, I would like to pop up a message offering to take the user to the item the notification refers to. If the app is closed, and the user taps on the push notice and causes the app to open, I would like to take the user directly to the item without a popup.
Titanium's registerForPushNotifications seems to only have one callback, "callback", which is called regardless of the app's state when the push arrives. According to How do I tell if my iPhone app is running when a Push Notification is received? you can use didReceiveRemoteNotification and didFinishLaunchingWithOptions in Objective C, but Titanium doesn't seem to provide separate access to those.