litehelpers / Cordova-SQLitePlugin-legacy-iOS-broken-bug666

Cordova/PhoneGap SQLitePlugin for iOS as of September 2013, no longer supported - BROKEN due to BUG litehelpers/Cordova-sqlite-storage#666
89 stars 30 forks source link

Opening / closing the database connection, possible bug when user restarts application. #54

Open mozey opened 11 years ago

mozey commented 11 years ago

I have a bug that only occurs when I restart my application by clicking the home button, double clicking and then selecting the minus next to the app icon.

Sometimes my success or error callbacks passed to db.transaction is never called. This only happens intermittently after restart and I don't get any Javascript error therefore I suspect a race condition.

I have looked at the code for dealloc in SQLitePlugin.m but my Objective-C knowledge is not that good. So my question is this. Is it possible that the database connection is closed after I've restarted the application?

brodybits commented 11 years ago

I will take a look this weekend,

Chris

On Fri, Jan 18, 2013 at 3:10 PM, mozey notifications@github.com wrote:

I have a bug that only occurs when I restart my application by clicking the home button, double clicking and then selecting the minus next to the app icon.

Sometimes my success or error callbacks passed to db.transaction is never called. This only happens intermittently after restart and I don't get any Javascript error therefore I suspect a race condition.

I have looked at the code for dealloc in SQLitePlugin.m but my Objective-C knowledge is not that good. So my question is this. Is it possible that the database connection is closed after I've restarted the application?

— Reply to this email directly or view it on GitHubhttps://github.com/brodyspark/PhoneGap-SQLitePlugin-iOS/issues/54.

mozey commented 11 years ago

Should also mention that I have not been able to recreate the issue by loading the test page into an app and restarting it multiple times.