Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7536AD118 for ; Fri, 19 Oct 2012 18:59:25 +0000 (UTC) Received: (qmail 24267 invoked by uid 500); 19 Oct 2012 18:59:25 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 24243 invoked by uid 500); 19 Oct 2012 18:59:25 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 24235 invoked by uid 99); 19 Oct 2012 18:59:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 18:59:25 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fil@adobe.com designates 64.18.1.39 as permitted sender) Received: from [64.18.1.39] (HELO exprod6og117.obsmtp.com) (64.18.1.39) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 18:59:20 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob117.postini.com ([64.18.5.12]) with SMTP ID DSNKUIGi85pxVsIrZP16yTsY3bwWjrDxW9e/@postini.com; Fri, 19 Oct 2012 11:58:59 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q9JIwwKd010202 for ; Fri, 19 Oct 2012 11:58:58 -0700 (PDT) Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q9JIwvXL012201 for ; Fri, 19 Oct 2012 11:58:57 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub01.corp.adobe.com ([10.8.189.97]) with mapi; Fri, 19 Oct 2012 11:58:57 -0700 From: Filip Maj To: "callback-dev@incubator.apache.org" Date: Fri, 19 Oct 2012 11:58:54 -0700 Subject: Re: enhancing the plugin lifecycle for ios Thread-Topic: enhancing the plugin lifecycle for ios Thread-Index: Ac2uK8pAVL/MoVPXTxqYnoe8LHe5DA== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.4.120824 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Plugin Manager in java land loads plugins defined with the 'onload' attribute right away, otherwise lazy loads them. https://github.com/apache/incubator-cordova-android/blob/master/framework/s rc/org/apache/cordova/api/PluginManager.java#L189 On 10/19/12 11:54 AM, "Shazron" wrote: >This is possible if somehow we can set which plugins can be "loaded" >at startup (or should all of them be loaded? seems wasteful). Right >now they are lazily loaded (on first use), so sending them a >"onAppLaunch" event (or equivalent) would do nothing since they are >not listening of course. > >Now's a good time to resurrect this old thread :) >http://markmail.org/thread/hq2rd5lobbl4nkav >I like Patrick Mueller's suggestion in that thread - but we are >migrating to config.xml (no ETA) so... > >On Fri, Oct 19, 2012 at 11:24 AM, Brian LeRoux wrote: >> Regarding: >> >>=20 >>https://github.com/alunny/cordova-plugin-spec/issues/5#issuecomment-95827 >>05 >> >> Looks like we do not have a lifecycle event for app launch/create in >>iOS land: >> >>=20 >>https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Cl >>asses/CDVPlugin.h >> >> Any objections/concerns for having something like the Android plugin >> init method? >> >>=20 >>https://github.com/apache/incubator-cordova-android/blob/master/framework >>/src/org/apache/cordova/api/CordovaPlugin.java#L39