Saturday, 24 August 2019

Xcode - reassign Webviewjavascriptbridge to window object on Page reload

How to reassign window.webviewjavascriptbridge in xcode after a page reload happens in my app because of window.location.href navigation?

Kindly cut me some slack if the question sounds too basic. I am a UI developer trying to fix an ios development issue.

In my application, I need the window.webviewjavascriptbridge to launch pdfs. window.webviewjavascriptbridge is being set in xcode whenever the app launches and is available in browser to be used.

But at one point, our application switches from canjs to angular. Thus application reloads and window object is reset. Thus window.webviewjavascriptbridge is no more available.

What code do I need to add in xcode to set up webviewjavascriptbridge again whenever angular is loaded.

Negative votes are welcome but kindly help me modify the question to get a proper answer.

Thanks



from Xcode - reassign Webviewjavascriptbridge to window object on Page reload

No comments:

Post a Comment