Hi,
I am using the registerForPushNotifications in my app. Here I give the callback function. The problem is that when I tap on the app icon the callback function is not being called, it is only called when the app is opened from the notification center. I change some UI in message callback depending on the payload. I am not able to do it when the app icon is tapped.
Titanium.Network.registerForPushNotifications({ types : [Titanium.Network.NOTIFICATION_TYPE_BADGE, Titanium.Network.NOTIFICATION_TYPE_ALERT, Titanium.Network.NOTIFICATION_TYPE_SOUND], success : successCallback, error : errorCallback, callback : messageCallback });
Thanks.
2 Answers
Just tapping the app icon on the Springboard will not trigger the Push Notification callback. Only tapping on the actual iOS notification will trigger it, or if the app is already running.
In native iOS the callback method is called but no information is furnished about the payload, that is the functionality. But in titanium the callback method itself is not called. Please correct me if I am wrong.
I read this here in under Handling Local and Remote Notification
http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/RemoteNotificationsPG/IPhoneOSClientImp/IPhoneOSClientImp.html Thanks...
Your Answer
Think you can help? Login to answer this question!