pingping
pingping

Reputation: 37

Native App pass session to webview

I want to make my app's login page native, but after user login they would be redirect to the webview. basically the app is webview except the login page. Is there anyway to pass the login sessino between native app and webview?

PS: xcode ios

thanks

Upvotes: 1

Views: 1250

Answers (1)

Gobi Manickam
Gobi Manickam

Reputation: 3267

I am using the below way to pass details in native and webview html page.

  1. Write detail in file.
  2. It can be directly accessed in native using file concept.
  3. For webview you need to write plugin to access native functionalities like cordova plugins

OR

Javascript call How to invoke Objective C method from Javascript and send back data to Javascript in iOS?

Upvotes: 2

Related Questions