This is a migrated thread and some comments may be shown as answers.

SQLite Plugin bug after update

2 Answers 35 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nader
Top achievements
Rank 1
Nader asked on 25 Jun 2014, 06:38 AM
Hi,

Since the last AppBuilder update, I have noticed that the SQLite Plugin in all my projects stopped working as it should. When starting the app for the first time after a fresh build, the plugin works perfectly, but when refreshing my app to get the latest updates, the plugin would stop executing my queries.

I noticed that the DB file that the plugin creates gets removed whenever I attempt to refresh my app, and it would not get created again unless I close the app completely and re-open it again. Then when attempting to execute an INSERT/UPDATE/DELETE query, the plugin would throw this error:
"error while trying to commit: cannot commit - no transaction is active", but when executing a SELECT query, the query executes without issues and gets the actual data even when the DB file is not present.

Can someone please help me with this issue?

Regards,
Nader

2 Answers, 1 is accepted

Sort by
0
Nader
Top achievements
Rank 1
answered on 25 Jun 2014, 11:24 AM
Hi,

I have been debugging my apps to try and figure out what is causing the problem. From what I am seeing is that the plugin does not seem to be initializing when the app reloads after getting the updates (three finger refresh).

In the SQLitePlugin.m file, the initWithWebView method is called only when the app is launched after being completely closed, and is not called after a refresh. It seems that somehow, some plugins are not being initialized properly while others are.

Hoping to hear some feedback soon.

Regards,
Nader
0
Tina Stancheva
Telerik team
answered on 27 Jun 2014, 03:55 PM
Hi Nader,

Thank you for this detailed report. This is actually a known issue which is only happening after a live sync operation. We are aware of it and we are currently working on a fix.

Please accept our apology for the inconvenience caused.

Regards,
Tina Stancheva
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Report a bug
Asked by
Nader
Top achievements
Rank 1
Answers by
Nader
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or