You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Samuel Michelot (JIRA)" <ji...@apache.org> on 2012/07/02 19:18:21 UTC

[jira] [Created] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Samuel Michelot created CB-994:
----------------------------------

             Summary: WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
                 Key: CB-994
                 URL: https://issues.apache.org/jira/browse/CB-994
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.8.1
         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
            Reporter: Samuel Michelot
            Assignee: Shazron Abdullah
            Priority: Critical


Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
http://cl.ly/2U2t1C0n0I1D0y3s2C3p
The backup only contains the Databases.db

So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Samuel Michelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424609#comment-13424609 ] 

Samuel Michelot commented on CB-994:
------------------------------------

Ok, I have found the problem. I have created a sample project like you did, and indeed, I didn't got any problem. Then, I remembered that my app use the "Application does not run in background" setting:
http://www.evernote.com/shard/s6/sh/44f66a37-d2ae-4bda-b114-88a10e3b486e/becb3b9f6075fd98dda29363110f8b9d

And indeed, when I add this pref, it's not working anymore. I imagine that you do the backup when the app goes in background. It was working with the CDVLocalStoragePlugin. Do you have a suggestion? (my app doesn't work well when it stay in the background)

Thanks in advance Shazron!
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Samuel Michelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436407#comment-13436407 ] 

Samuel Michelot commented on CB-994:
------------------------------------

Thanks a lot for your help Shazron. Actually, I modified the global framework, because I didn't really want to modify all my phonegap projects (more than 16).
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-994:
--------------------------------

    Attachment: websql_test.png

I just did a quick test and the backup works as expected.
Here's what I did:
1. After deviceready fires, I opened a db and created a new table
2. Locked the device

Attached a screenshot with my results. Note that backup/restore is only initiated when the app goes background/foreground respectively (from a lock/home button backgrounding, relaunch)
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Samuel Michelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434279#comment-13434279 ] 

Samuel Michelot commented on CB-994:
------------------------------------

Thanks Shazron!
Do you know how can I apply your fix to my phonegap install (1.8.1). Before, it was very easy to modify phonegap, because the source was in the XCode project, but now, I don't know how to upgrade the phonegap library (if you have a link or a document explaining how to do it). And I don't have the time to upgrade to phonegap 2, because we already did all our test with phonegap 1.8.1, and I want to release an update soon.
Thanks in advance for your answer,
Best regards,

Samuel
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-994.
---------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/2e06754d

Note if the operation takes more than 5 secs, the iOS watchdog will kill the process regardless.
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435504#comment-13435504 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

You are using a Cordova.framework based project correct? If so, see FAQ item #10: https://github.com/apache/incubator-cordova-ios/blob/master/README.md
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425108#comment-13425108 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

Thanks Samuel, I thought I fixed this in https://issues.apache.org/jira/browse/CB-684 but I will check again with that "Application does not run in background" setting.
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Samuel Michelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423430#comment-13423430 ] 

Samuel Michelot commented on CB-994:
------------------------------------

Hi Shazron!
Sorry for the late answer.
I have some weird behaviors. Some time, after the first run, it backup the db file, some time only on the second run, and sometime it create a 0kb file:
http://cl.ly/image/3A0z1V462f14

I have tested with ioS 6 & Xcode 4.5 DP3 and XCode 4.33 with iOS 5.1. Can you share me your Sample project please, so I can try with my config?

I was previously using your patch with phonegap 1.6 and it was working fine. I wonder if I go back to phonegap 1.6 or if I upgrade to phonegap 2.0 in order to fix the problem?

Thanks

Sam
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405292#comment-13405292 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

Some discussion here: https://devforums.apple.com/thread/156365?tstart=0 
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-994:
--------------------------------

    Fix Version/s: 2.1.0
          Summary: CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES  (was: WebSQL backup only save Databases.db but not the content of the DB (0000000001.db))
    
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405637#comment-13405637 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

I also tested on Xcode 4.5 DP2  (4G108j) on the iOS 6 Simulator, and I got identical results as my previous screenshot and test procedure. Please send exact repro steps.
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405318#comment-13405318 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

I tested on Xcode 4.3.3 w/ iOS 5.1 base sdk - are you testing on iOS 6?
                
> WebSQL backup only save Databases.db but not the content of the DB (0000000001.db)
> ----------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Samuel Michelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435501#comment-13435501 ] 

Samuel Michelot commented on CB-994:
------------------------------------

Yes, I look at the diff, and I see the modifications to do, but I don't know where and how can I modify the phonegap source. Do I need to recompile something after?
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-994) CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435457#comment-13435457 ] 

Shazron Abdullah commented on CB-994:
-------------------------------------

Take a look at the diff from the commit, and apply the appropriate changes: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commitdiff;h=2e06754d;hp=75bcbce991b291eecf5a8a85d3d73f633cebc08e
                
> CDVLocalStorage core plugin does not fully backup when app setting "Application does not run in background" is YES
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-994
>                 URL: https://issues.apache.org/jira/browse/CB-994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5, iOS6, Xcode4.5-DP2 and older
>            Reporter: Samuel Michelot
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: websql_test.png
>
>
> Cordova 1.8.1 (and maybe 1.9) doesn't backup the file 00000000001.db containing the WebSQL data, see this screenshot :
> http://cl.ly/2U2t1C0n0I1D0y3s2C3p
> The backup only contains the Databases.db
> So the SQLite data can be lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira