incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: Plugin Initializations
Date Mon, 05 Mar 2012 23:27:42 GMT
FYI I added issue 299 to track this

On 3/5/12 1:15 PM, "Johnny Ray" <> wrote:

>You should be able to (via the js project) create a custom callback i.e.
>(onStorageReady) in channel.js, register that with bootstrap.js and
>deviceready will wait until it hears from you before it fires. I had to
>do the same thing just earlier today. Take a look:
>Johnny Ray
>On Monday, March 5, 2012 at 3:40 PM, Bryce Curtis wrote:
>> I noticed that support for plugins delaying deviceready until they have
>> initialized themselves is no longer in cordova-js. Does anyone remember
>> there a specific reason why this wasn't carried forward, or if there's
>> another solution?
>> This is to support LocalStorage (cupcakeStorage) for some Android
>> that were missing it (not a large set of devices, if I recall). However,
>> without it, there will be an error if cupcakeStorage if called too soon
>> like in the deviceready callback. It also seems like a feature that may
>> needed for other types of plugins.
>> Regards,
>> Bryce

View raw message