Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mozey opened this issue Jan 18, 2013 · 2 comments

Comments

@mozey
Copy link

mozey commented Jan 18, 2013

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?

@brody4hire
Copy link
Member

I will take a look this weekend,

Chris

On Fri, Jan 18, 2013 at 3:10 PM, mozey [email protected] 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
Copy link
Author

mozey commented Jan 18, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants