How to to share context between Safari and Native App?

Viewed 5628

I have a need to set some context via Safari (a context token), and then read that context from a native iOS app. What are the best practices for doing this?

A couple thoughts so far:

  1. Set the context in an HTML 5 database, but I'm not sure this will work because the database might be only accessible from Safari. Would using a WebUIView in the native app allow me to access the same HTML5 database / local storage as Safari?
  2. Set the context in device storage, but I'm not sure this will work because I don't know if Safari can actually write to device storage.
3 Answers
Related