Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2890] Can't customize notification from within the module and after pressing the back button app is not closing properly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-11-26T21:41:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, module
ReporterSurajit Biswas
AssigneePedro Enrique
Created2012-07-31T02:21:19.000+0000
Updated2016-03-08T07:47:51.000+0000

Description

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.

Attachments

FileDateSize
SampleC2DMModule.zip2012-07-31T02:21:19.000+00001196206
SampleC2DMTitaniumCode.zip2012-07-31T02:21:19.000+0000791587

Comments

  1. Pedro Enrique 2012-07-31

    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
  2. Daniel Sefton 2012-11-26

    Closing on the assumption that a helpdesk ticket was opened. If otherwise, please respond.

JSON Source