Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:22:55+00:00 2026-06-02T11:22:55+00:00

I am writing some key/values on my phonegap app with javascript on the html5

  • 0

I am writing some key/values on my phonegap app with javascript on the html5 localstorage, but I want to access them when my app is starting, specifically from my objective-c +(NSString*) startPage method.
I know I can do it from -(void) webViewDidFinishedLoad, but I need to read the the values from the startPage method, so that I can retrieve the page names that I will store and use like start page. Is there any way to do that? If not, Is there any way to set the start page with a string that was saved on the localstorage? Any suggestion will be very appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:22:57+00:00Added an answer on June 2, 2026 at 11:22 am

    You’d have to write native code to access the local storage. I believe that HTML local storage data is stored as an SQLLite database in your application’s library folder, so you should be able to access it using the native SQLLite interfaces, although that sounds like kinda hard work for what you are trying to do.

    A simpler solution might be to use PhoneGap to write your data to the NSUserDefaults using a plugin instead of storing it in local storage. It’s pretty easy to pass that data to and from the webview once it’s loaded using the plugin interface, and it’s a lot simpler to access NSUserDefaults from native code than the local storage database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing some tests for a C++ command line Linux app. I'd like to
I was using javascript to detect for specific key strokes and while writing the
I would like to create one class which holds some key values of the
I am writing some javascript to be executed by the Windows Scripting Host, and
I am writing some specs for helpers that check for values in the params
Simple question - I'm trying to assign random values to some of my app's
I am writing a simple foreach loop to read key values from appconfig file.
While writing some C code, I decided to compile it to assembly and read
Im writing some helper functions for a project im working on. I've always wanted
While writing some views to respond to ajax requests i find it somewhat strange

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.