[TIMOB-199] ability to retrieve application startup properties (iphone only)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:52:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 0.7.2 |
Components | iOS |
Labels | ios, iphone, network |
Reporter | Jeff Haynie |
Assignee | Jeff Haynie |
Created | 2011-04-15T02:25:17.000+0000 |
Updated | 2011-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
(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...