Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-199] ability to retrieve application startup properties (iphone only)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.7.2
ComponentsiOS
Labelsios, iphone, network
ReporterJeff Haynie
AssigneeJeff Haynie
Created2011-04-15T02:25:17.000+0000
Updated2011-04-17T01:52:19.000+0000

Description

On iphone, when an application is started from another application (such as with using it's registered URL protocol) or from a remote push notification, you need to be able to retrieve the source bundle id and the application url passed (if launched via URL) or the notification object.

This should be available as a dictionary to Titanium.App.getArguments. It should return nil if the app is not started with any properties or a notitication.

The following are special keys in the returned dictionary:

  • url - url passed as argument to start app
  • *source* - source bundle id of app that launched this app
  • *notification* - the notification object that triggered the application to start from a remote push notification

Comments

  1. Jeff Haynie 2011-04-15

    (from [6aacb9a143ca74066ff76117da3f4b6f66c166ff]) [#24 state:resolved] more fixes for push notifications and testing on device [#199 state:resolved] implementation of application properties added Settings.bundle to Kitchen Sink and related tests
    http://github.com/appcelerator/titanium_mobile/commit/6aacb9a143ca74066ff76117da3f4b6f66c166ff"> http://github.com/appcelerator/titanium_mobile/commit/6aacb9a143ca7...

JSON Source