问题
I am going to create an Android application using HTML5/jQuery and Phonegap In app Browser. I will display web page inside the In app Browser,
I want to implement the functionality that the user only enters his Name when he first time access the application.
I can save value using Phonegap's Local Storage but can't find how to access this value inside In app Browser.
Any help will be much appreciated.
Thanks.
回答1:
Check the following documentation for more information
Is local storage for a Phonegap app on an Android device separate from the built in browser?
回答2:
I just tested it but it seems like the inappbrowser and your phone gap app uses different localStorage as if they are two different browser instances.
来源:https://stackoverflow.com/questions/17807537/phonegap-in-app-browser-and-local-storage