[ 
https://issues.apache.org/jira/browse/CB-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257175#comment-13257175
 ] 

Gabi Schaffzin commented on CB-414:
-----------------------------------

I've upgraded to 1.6.0 and am still seeing this issue. Here's what I'm doing:

1. Install version of app onto iPhone from the iTunes Store which was built 
with 1.4
2. Archive app from Xcode. This version has been stripped down—it's a new 
Cordova 1.6.0 project with my app's identifier. No plugins. It also has a 
button that calls window.openDatabase().
3. Distribute archive vía TestFlight and install.
4. Open app. See the following in the Device Console:

Apr 18 22:34:26 unknown [AppName][13537] <Warning>: Multi-tasking -> Device: 
YES, App: YES
> 
Apr 18 22:34:26 unknown kernel[0] <Debug>: launchd[13537] Builtin profile: 
container (sandbox)
Apr 18 22:34:26 unknown kernel[0] <Debug>: launchd[13537] Container: 
/private/var/mobile/Applications/EB4A77B4-697C-43AE-9E61-528256E3D837 [69] 
(sandbox)
Apr 18 22:34:26 unknown [AppName][13537] <Warning>: Fix applied for database 
locations?: YES

5. Click on button that calls window.openDatabase(). See the following in the 
Device Console:

Apr 18 22:34:50 unknown sandboxd[13539] <Notice>: [AppName](13537) deny 
file-write-create 
/private/var/mobile/Applications/042E8575-C034-46B2-A104-4F2E247D58C2

6. Force quit app.
7. Reopen app.
8. Click on button and no error. Database works fine.

I would try to create a work around, but Apple won't approve an app that force 
quits programmatically and I'd rather not ask my users to do it. 

I am completely at a loss here. If no one else seems to be having this issue, I 
understand, but do you think you can recommend a work around?
                
> When upgrading 1.4 app to 1.6.0rc1 on iOS5.1, still getting deny 
> file-write-create error on window.openDatabase()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-414
>                 URL: https://issues.apache.org/jira/browse/CB-414
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: Cordova 1.6.0rc1, iOS5.1, Xcode 4.3
>            Reporter: Gabi Schaffzin
>            Assignee: Shazron Abdullah
>
> When calling window.openDatabase(), I'm still getting the "deny 
> file-write-create /private/var/mobile/Applications/[XXXX]". 
> This *only* happens when upgrading the previous version of my app. It doesn't 
> happen when debugging the app directly on the device from Xcode. Nor does it 
> happen when I delete the app and install the Ad-Hoc version as new.
> I've tried calling window.openDatabase() on a completely new database 
> (different name and identifier), but get the same error.
> Is there a way I can force the app _not_ to seek out that file?

--
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


Reply via email to