Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-25-2011, 03:23 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 3
Super Terry Airlines is on a distinguished road
Default Javascript Database Not Working in Native App but working in Safari

Hi folks,

I am currently working on creating a Sports/Fitness Training iPhone app. I am coding my app in HTML, Javascript and CSS using Phone Gap in Xcode to change my app from a web app to a native application.

I have stumbled upon a problem just when I thought I was nearly finished. The problem is that I have a database where user's can enter in details of previous training sessions. This databse appears to be working correctly in Safari when I test it out as a web app. However when I have the application loaded onto my native device (iPhone) the database does not look like it is being created and no entries are going into it as a result. I am using Session Storage for the database.

Any advice or ideas on what could be going wrong here would be greatly appreciated?
Super Terry Airlines is offline   Reply With Quote
Old 05-25-2011, 11:29 PM   #2 (permalink)
Mad Dog
 
Join Date: Nov 2009
Location: Melbourne, AUS
Posts: 39
maddogsoftware is on a distinguished road
Default

there was a bit of stink kicked up recently about webcips and apps using uiwebviews not getting the new Nitro js engine (Apple handcuffs 'open' web apps on iPhone home screen ? The Register).

I wonder if perhaps you might be seeing a similar failing where the uiwebview in your app isn't able to use local storage.

Unfortunately I don't have an answer for you.. only speculation, perhaps someone else can confirm or deny?
maddogsoftware is offline   Reply With Quote
Reply

Bookmarks

Tags
app, database, database data, javascript, phonegap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 348
6 members and 342 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:11 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0