on 10-14-2019 3:02 PM
Thanks for providing the web bridge. The code ported from v3 to v4 of Android pretty easily. However, In Swift, what are the corollaries to these previous GSWebBridge Objective-C calls?
registerWebView -> attachTo ?
handleRequest -> ??
webViewDidStartLoad -> ??
Thanks for any help,
John
Hi John
To load url do the following:
let url = URL(string: “http://localhost:3333/saml/sp.html“)
let myRequest = URLRequest(url: url!)
webView.load(myRequest)
Here is an example of how to implement webBridge:
let webBridge = Gigya.sharedInstance(UserHost.self).createWebBridge()webBridge.attachTo(webView: webView, viewController: self)
{ [weak self] (event) in
switch event {
case .onLogin(let account):
self?.navigationController?.popViewController(animated: true)
default: break
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.