SQLite Plugin bug after update

3 posts, 0 answers
  1. Nader
    Nader avatar
    43 posts
    Member since:
    Jun 2013

    Posted 25 Jun 2014 Link to this post

    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. Nader
    Nader avatar
    43 posts
    Member since:
    Jun 2013

    Posted 25 Jun 2014 Link to this post

    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
  3. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jun 2014 Link to this post

    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!

     
Back to Top