Custom Web View Presentation
Step 1: Set the Push Delegate
Netmera.setPushDelegate(self as! NetmeraPushDelegate)Step 2: Implement the handleWebViewPresentation Method
handleWebViewPresentation Methodfunc handleWebViewPresentation(for object: NetmeraPushObject!) {
let vc = TableViewController()
let rootVC: UIViewController? = UIApplication.shared.keyWindow?.rootViewController
rootVC?.present(vc, animated: true, completion: nil)
// Load web view content inside the presented webView
Netmera.loadWebViewContent(in: vc.webView)
}Step 3: Presentation Flow
Last updated
Was this helpful?