We have one application where we receive C2DM message and after tapping on the message we are opening the app.
Currently we are facing two issues as given below.
+Test Code+:
Sample attached.
+Issue 1+
+Test Case+:
1. Launch app.
2. Press back button to close the app.
3. Fire c2dm message
4. Get the following log in log cat
07-31 14:19:04.437: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [11742,13736] Message received
07-31 14:19:04.453: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [14,13750] Message key: sel value: 98
07-31 14:19:04.457: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [5,13755] Message key: title value: Google
07-31 14:19:04.460: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [6,13761] Message key: from value: android123developer@gmail.com
07-31 14:19:04.492: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [20,13781] Message key: collapse_key value: Hi
07-31 14:19:04.492: DEBUG/C2DMReceiver(3596): (IntentService[C2DMBaseReceiver]) [11,13792] Start to show the message from Titanium
07-31 14:19:04.503: WARN/V8Function(3596): Runtime disposed, cannot call function.
5. Here app is not closing as in adb shell if we write ps to know the process status then it shows this process as active.
app_101 3596 83 167696 31776 ffffffff 00000000 S com.c2dm
When we close the app by using advanced task killer then only the app is closing properly and we are able to show the notification from the module
+Sample Curl To Fire C2DM message+.
curl --header "Authorization: GoogleLogin auth=DQAAAM0AAADgG68LGrrctYJyZG9DTu06PWUWCJIh4du0VK4KfpS5Gyyofh0cHrpsD3rW_sD6xtP59t2K60Rc7ve6fickxqg61n6wH2UVKIgDDLvMHFJ9ijE4YxycTP_CRqw8ygdyEBUzACgnT54vp3xi4Unyn_TsXSkOXBk5rHORXKQdYpVbzatgL6tTGPtAR13g4P5uaLCcxqjj4m-WWhOTqCtbpe4_q42MfMcFQ0L7mY1BasyDN2JrrBljlcNoOmoCUWn7sISMEObk0OHZ7B5Gfs0fRO7R" "
https://android.apis.google.com/c2dm/send" -d registration_id=put your registration here -d "data.sel=98" -d "data.title=Google" -d collapse_key=Hi
+Issue 2+
We are not able to customize the notification from within the module as we don't have any resource folder where we can give our custom layout.xml file (Same way we customize in android)
So is there any way to customize the notification from within the module. If yes please let me know how or share any sample code.
Please open a ticket in our helpdesk. http://support.appcelerator.com/ Jira is the bug reporting system for Titanium as a platform. We will be able to help you better through the HD. Thanks
Closing on the assumption that a helpdesk ticket was opened. If otherwise, please respond.