You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2016/10/25 11:56:30 UTC

docs commit: CB-11924 Document the activated event might be fired before deviceready

Repository: cordova-docs
Updated Branches:
  refs/heads/master d12ebd74e -> 5f50c7c06


CB-11924 Document the activated event might be fired before deviceready


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/5f50c7c0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/5f50c7c0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/5f50c7c0

Branch: refs/heads/master
Commit: 5f50c7c065a91ecd07e9ee281e0de33c07482dd7
Parents: d12ebd7
Author: daserge <v-...@microsoft.com>
Authored: Mon Oct 17 16:53:01 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Oct 25 14:55:42 2016 +0300

----------------------------------------------------------------------
 www/docs/en/dev/cordova/events/events.md | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/5f50c7c0/www/docs/en/dev/cordova/events/events.md
----------------------------------------------------------------------
diff --git a/www/docs/en/dev/cordova/events/events.md b/www/docs/en/dev/cordova/events/events.md
index 586e223..6af0e17 100644
--- a/www/docs/en/dev/cordova/events/events.md
+++ b/www/docs/en/dev/cordova/events/events.md
@@ -470,6 +470,8 @@ function activated(args) {
 * Original activated event args are also cloned to `args.detail[0]` and can be used as a fallback in case an inner args property has been lost.  
 See https://issues.apache.org/jira/browse/CB-10653 for details.
 
+* `activated` event might be fired before `deviceready` so you should save the activation flag and args to the app context in case you need them - for example in the [Share target case](https://issues.apache.org/jira/browse/CB-11924).
+The subscription to the `activated` event should be done before `deviceready` handler (in `app.bindEvents` in terms of the Cordova template).
 
 [UIApplicationExitsOnSuspend]: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
 [AndroidLifeCycleGuide]: ../../guide/platforms/android/lifecycle.html


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org