DaveVockell
Posts: 0
Joined: Thu Dec 12, 2013 10:26 am

Accessing local storage from xcode

In my appery app I set a local storage variable called "userid".

From xcode, how would I change that local storage value?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Accessing local storage from xcode

Hi Dave,

In a standard way: https://developer.mozilla.org/en/docs...

Or if you use a new model and storage:
http://devcenter.appery.io/documentat...

DaveVockell
Posts: 0
Joined: Thu Dec 12, 2013 10:26 am

Accessing local storage from xcode

That first link is in Russian -- have you got an english version?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Accessing local storage from xcode

Hi Dave,

Sorry, fixed.

DaveVockell
Posts: 0
Joined: Thu Dec 12, 2013 10:26 am

Accessing local storage from xcode

Ahh, thanks. I think I wasn't clear from my question -- is there a way from the Objective C section of Xcode to access local storage variables using Objective C. I'm working on a Healthkit integration.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Accessing local storage from xcode

Hi Dave,

Please try this:

https://getsatisfaction.com/applicati...

Regards.

DaveVockell
Posts: 0
Joined: Thu Dec 12, 2013 10:26 am

Accessing local storage from xcode

Getting closer, thanks.

I think that solution works within the code of open webview.

I am trying to take an action on local storage item "userid" after someone clicks a text message and opens the app through a custom URL scheme, so my code is in the middle of a

  • (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    }

    block. I am trying to figure out how to either...

  • Access a local storage item in the middle of this handleOpenURL or

  • When I one-time-create the local storage item, also store it in a different place that is accessible through handleOpenURL

    Thanks.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Accessing local storage from xcode

Hello Dave!

I am sorry for delay, but xCode and Objective C are outside the scope of our support.

Return to “Issues”