Hi!
I wonder how I can get permission to iOS (device) to let me create my database to the decision:
[lua]
–Open data.db. If the file doesn’t exist it will be created
local path = system.pathForFile(“dataa2.db”, system.DocumentsDirectory)
db = sqlite3.open( path )
–Handle the applicationExit event to close the db
local function onSystemEvent( event )
if( event.type == “applicationExit” ) then
db:close()
end
end
local tablesetup = [[CREATE TABLE IF NOT EXISTS nivel2 (id INTEGER PRIMARY KEY, valorN2);]]
print(tablesetup)
db:exec( tablesetup )
[/lua]
In the simulator works perfectly but my iphone does not generate any database.
permissions problem may be?
Thanks! [import]uid: 192093 topic_id: 36229 reply_id: 336229[/import]