I am working on a project using Xamarin.Forms as a container app. This app includes several webviews that link to restricted web content. One of these links our Sharepoint site. The Sharepoint site has a link that allows our users to go to a 3rd party site(Cornerstone) to view training videos. When using the stock UIWebView, WKWebView, or SFSafariViewController the popup that displays the video is not shown. The only way that I can get this video to play in my app is to use OpenURL to open the Sharepoint site in Safari. The problem is that this is an Enterprise solution where we don't want to allow the employees free reign with the browser.
Is there a way to create a whitelist or to have some control over the searchbar or read the url that they are linking to and block it or redirect the user?
Can I create a Whitelist for Safari using OpenUrl in Xamarin.Forms?
538 Views Asked by Andy Cottrell At
1
There are 1 best solutions below
Related Questions in SAFARI
- transform-origin doesnt apply in safari
- Evernote Web Clipper and Content Security Policy
- Polymer 1.0 on Firefox, Safari /deep/ selector not working
- Safari Extension not geting session Info
- Why won't this URL work in Safari?
- CSS rotate animation doesn't start properly in Safari
- "Card" rotation and selectable text
- jQuery on('change') logic behaving wierdly in ios 8.2/8.3
- Parallax causing vertical scroll issues in Safari (and iOS Safari)
- Weird icons appearing on Safari in between words
- jQuery animate using a variable doesn't work in OSX Safari
- laravel ajax call in safari and on mobile methodNotFoundHttpException
- Safari turns Simple Cors Request into Preflight after 302 redirect
- iOS9 Safari content blocker extension not invoked
- Angular on a svg - $sce.trustAsHtml inside svg does not work in safari and ie
Related Questions in XAMARIN.IOS
- Xamarin Table View Crash
- Hiding Elements in a Monotouch Dialog Section - Height does not change
- Custom UIRefreshControl animation
- How to use research Kit framework in Xamarin
- Convert Objective C to Monotouch (Rounded Table Grouped)
- UITableViewCell (MTD) rectangle style cell
- Offline authentication best practices in Xamarin
- How to add Checkbox in Xamarin.Forms in Xaml file?
- How do you enable stack smashing protection for an iOS app built with Xamarin?
- CLLocation DistanceFrom performance implications
- storyboard not opening in xamarin ios designer
- Can't upload image from Gallery with request.Addfile on iOS
- Methods that use convertPoint:fromLayer implicitly in Xamarin.iOS/MonoTouch
- Xamarin.iOS Linker removes members in class needed for reflection
- Xamarin for iOS: All Controls null in initial view controller
Related Questions in UIWEBVIEW
- UIWebView Screen Fitting Issue
- How to hide "Now playing url" in control center
- Cannot select individual words with fixed layout .epub documents
- UIWebView not loading URL in simulator
- Optimize HTML5 for UIWebView
- Use local resources in WKWebview
- UIWebView Image Upload reloading webview Objective c
- How to implement delegate for open source browser SVWebViewController?
- getSelection() don't work in UIWebView iframe
- Customizing Mapbox Callout with HTML on iOS
- Getting return value from JavaScript in UIWebView
- calculating UIWebView height with images gives wrong answer
- EXC_BAD_ACCESS when performing a segue to ViewController with a UIWebView?
- How can I show Google Maps into a WebView?
- Image inside html in UIWebview not fit properly
Related Questions in XAMARIN.FORMS
- I need a event for the slider it should fire only if user ends touching the control
- Xamarin Forms - Show Cancel button in toolbar items instead of Back (iOS)
- How can i do a fill animation in Xamarin.Forms
- Visual Studio 2013 crashes when writing opening angle bracket
- How to change Display Alert default focus on a button?
- How to use research Kit framework in Xamarin
- xamarin.forms.labs ImageButton issue
- Can I generate an appx with a windows phone project?
- How Can I Change Height in ViewCell
- Xamarin Android Crash on Start "Got a SIGSEGV"
- When does Xamarin Forms trigger binding?
- Xamarin.forms : How to show the downstate of button which is having background image
- Xamarin.Forms Maps crashing app
- How to hide out a layout in Xamarin.forms C#?
- ListView Header and Footer not appearing
Related Questions in OPENURL
- How to know if FaceTime is already in use
- FB Login Callback crashing for Testflight Users
- iOS Square Register Popover OpenURL Issue
- How change component background color
- Sending message from iOS application to FB messenger app
- VBA to open URL, wait for 5 seconds, then open another URL
- Sending a user to gift an app from inside an app doesn't work anymore?
- -canOpenURL error when checking cydia:// scheme for jailbreak detection
- How do I make a private phone call?
- Prompt when trying to dial a phone number using tel:// scheme on iOS 11
- URL for Settings>Privacy>Location Services in iOS 11+?
- App goes background instead of open an URL
- Can I create a Whitelist for Safari using OpenUrl in Xamarin.Forms?
- Open links in Safari from WKWebView versus webView in iOS10+
- How to get the parameters and pass to the Model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unfortunately as it's farming out the URL Navigation external to your application there's not a lot you can do from within your app to restrict what they do after the fact, 'openURL' only returns a Boolean value as to it's success, and the only parameters that you can send to it are:
You can only access these if you override the 'openURL' method within your 'AppDelegate.cs' class, there is a set of options you can pass through as an override but again none of those allow you to restrict what the user does after the browser has opened.
If the devices are managed using something like 'meraki' or some other software to control the use of managed devices, then you would likely set up a 'group policy' styled set of restrictions however that's not really a Xamarin issue, and should be discussed with the network administrators.
That being said, I don't see any reason why you can't use the WebView1, that way you can handle it all within your application. Or alternative utilize custom renderers and pass in the direct video urls and commit to opening up the devices media player for streaming the content2.
1 Playing videos in WebView
2 Using the media manager plugin.