How to disable "Reader View" automatically in SFSafariView Controller in my app? - ios

I am Using SFSafariViewcontroller for loading URLs in my app. I want to load the URL by disabling the "Show Reader View" panel on top. I know it is possible to remove it since other apps are having it, but I was not able to figure out how they did it...
Does anyone know how to remove it?

Related

How to show popup ads on click in webview using sketchware

Can someone help me and tell me how to enable popup ads window on click in webview using sketchware
it's a bit tricky to make the WebView interact with the app in sketchware but...you can improvise to work around that...I'm pretty sure there's tons of ways to do it..try this(i can't send an image cause of rep):
add webview widget
Go to event of webview
Click "onPageStarted"
Put "If" block
in the if block You'll compare the url variable with the url when the button is clicked and if they're equal, then load your ad
and if you don't get it...let me know I'll share a project that can do the same thing

Hide "Open in app" banner while using Universal links

I'm using Universal links and everything is working perfectly but I can't seem to hide the Open in app banner which shows in the safari. Is there any way to do this?
There's nothing you can do about that really, it's a feature of Universal Links and gets injected automatically by Safari.
Usually, they're hidden until you overscroll the content.
What goal you are trying to achieve by using Universal Links?
Usually developers are using Universal Links if they want for all/part of the website to be viewable in the App. From this point of view, screenshot you posted is a failure, because Universal Links failed to engage. Possible reasons can be if navigation to the Universal Links domains happened as redirect.
If there are specific pages on your website that you don't want become viewable in the App, you can use exclusions list in associated domain file. Check out this example http://amazon.com/apple-app-site-association . In this case navigating to the "/ref=nodl_" will not open the Amazon and will not show the banner you are mentioning.
Hey you can hide the smart banner by edit your apple-app-association file in the root directory of your website. You can control the banner on the pages you want to show.
you cannot hide the banner while using the universal links at the same time.
You can only hide the banner where you do not want the universal links to work by restricting the paths in apple-app-association file.
If you want to hide the banner form all the pages just add
"paths":["NOT /*"] in details object in this case universal links will not work.

How to disable popup blocker on webview?

Hi I'm looking for a solution that disable popup blocker on webview (for facebook).
Already checked this solution IOS UIwebview popup blocker issue
but not useful,
How can I make the app allow that message to appear, so the use can hit ‘allow’ which will let the page load as it is supposed to?
please guide me through a proper solution.

Different behaviour in WKWebview and Safari regarding CSS

There seem te be some subtle differences in the Implementation or configuration between WBWebView and Safari (and SFSafariViewController) that renders a part of the Website I want to display unusable.
Here is what I am trying to do:
Basically all that is needed is an "App" that just opens a specific website in fullscreen mode, so no chrome, URLs or additional navigaton buttons are present. The Website works fine on Safari on iOS (and every other (modern) browser on desktop or mobile) but the menu does not when embedded in the App.
All I did was creating a new single view Application in Xcode, drop in a WKWebView and have it load the URL. The part of the page not working is this menu component that is used throughout the site: http://tympanus.net/codrops/2013/04/19/responsive-multi-level-menu/ So basically the user has no way to navigate. While debugging the website it seems like when I push the menu button the menu does not expand like it should because the changed css classes dont get picked up correctly. If I manually toggle the css classes on the menu-element it gets displayed correctly. It makes me wonder if there are some additonal constraints related to WKWebView?
Can anyone tell me if there are any settings or configurations I can alter that allow the website in WKWebView to behave exactly the same as it would under Safari?
As far as I understand SFSafariViewController I always get the browser toolbar and navigational elements which I dont want to have in the app, so that is not an option- or is there a way to get rid of that?
Any help or pointers would be greatly appreciated :)

Navigating to XAML page from WebView Windows Store application

I am developing an application, where I need to open a full-screen WebView over my existing XAML page.
Now I've added a AppBar over this WebView. The requirement is that, appBar button click should navigate me to different application Page.
e.g. WebView is opened on MainPage.xaml and on clicking the AppBar button added on this webView I have to navigate to SeconsPage.XAML
I am not able to do this now and seeing an exception thrown by COntrol_webview,exe
Can I do such navigation? If Yes, pleas help me to find out what I am I missing?
Thanks in advance!!
go for a native app - it saves you a lot of trouble. Filip Skakun already described the first crazy thing about the webview (with the webviewbrush).
if not, you can use the script notification to communicate back and forth between your webapp and your store app. here's a good link: http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx

Resources