Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3596] Android, UA - tapping notification when app is inactive does not launch app

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-16T10:45:37.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-15
ComponentsAndroid
Labelsairship, android, notifications, push, urban
ReporterThomas Huelbert
AssigneeBill Dawson
Created2011-04-15T03:47:03.000+0000
Updated2011-05-16T10:45:37.000+0000

Description

1.7.0 (not new though).

1.Use uatest app, fire off a notification to the device (use urban airship)
2.with the app inactive, tap the notification

results: nothing

expected: should the app not be launched at this point?

Comments

  1. Bill Dawson 2011-04-15

    The Urban Airship module now supports an option showAppOnClick which should be set on the urbanAirship object that you send as a parameter to registerForPushNotifications. The default is false since the feature has not been available until now. So set showAppOnClick to true in order to test this, as I show in the example below. For QA testing: I know the QA team has a standard Urban Airship test app, so I'm assuming it is going to be used. Here are the steps to take: * Get the latest source for the UA module and re-build it so you can get a new module zip with these changes, OR ask me to e-mail the zip to you. * Put the new zip into your test project's root folder. * Change your app's code so that you add a showAppOnClick: true to the urbanAirship object you pass to registerForPushNotifications. Example:
       
       Ti.UrbanAirship.registerForPushNotifications({
       	urbanAirship: { appKey: APPKEY ,showAppOnClick:true  },
       	success: function(e) {
       		log('Successfully registered.  APID: ' + e.deviceToken);
       	},
       	error: function(e) {
       		log('Error: ' + e.error);
       	},
       	callback: function(e) {
       		if (e.clicked) {
       			log('User clicked notification: ' + e.message + ", " + e.payload);
       		}
       		else {
       			log('Push message received: ' + e.message + ", " + e.payload);
       		}
       	}
       });
       
    * Run the app and register for messages. Then put the app in the background by hitting the Home button. * Go the UA web site and send yourself a message. * When the notification appears on your device, tap it. The app should come forward.
  2. Thomas Huelbert 2011-05-05

    tested on nexus s (2.3.4) and galaxy tab (2.2.1).

JSON Source