Page 1 of 1

Accessing local storage from xcode

Posted: Mon Oct 20, 2014 5:14 pm
by DaveVockell

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

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


Accessing local storage from xcode

Posted: Mon Oct 20, 2014 7:36 pm
by Kateryna Grynko

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


Accessing local storage from xcode

Posted: Mon Oct 20, 2014 8:58 pm
by DaveVockell

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


Accessing local storage from xcode

Posted: Mon Oct 20, 2014 9:03 pm
by Kateryna Grynko

Hi Dave,

Sorry, fixed.


Accessing local storage from xcode

Posted: Mon Oct 20, 2014 9:24 pm
by DaveVockell

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.


Accessing local storage from xcode

Posted: Tue Oct 21, 2014 2:44 am
by Yurii Orishchuk

Hi Dave,

Please try this:

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

Regards.


Accessing local storage from xcode

Posted: Sat Oct 25, 2014 9:44 am
by DaveVockell

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.


Accessing local storage from xcode

Posted: Tue Oct 28, 2014 12:37 pm
by Maryna Brodina

Hello Dave!

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