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?
516 Views Asked by Andy Cottrell At
1
There are 1 best solutions below
Related Questions in SAFARI
- Shifting within a list when past end range?
- Encrypting a string that contains unicode results in unrecognized characters
- Challenges with caesar-cipher: Encoding and Decoding code
- Function not being called when it should be in node app
- Function That Receives and Rotates a Text
- Caesar cipher in C - encryption and decryption
- ROT 13 Cipher: Creating a Function Python
- How can I make this Python code more efficient
- Caesar Cipher C++ (arrays and pointers)
- Caesar Cipher not rotating letters properly? (Python)
Related Questions in XAMARIN.IOS
- Shifting within a list when past end range?
- Encrypting a string that contains unicode results in unrecognized characters
- Challenges with caesar-cipher: Encoding and Decoding code
- Function not being called when it should be in node app
- Function That Receives and Rotates a Text
- Caesar cipher in C - encryption and decryption
- ROT 13 Cipher: Creating a Function Python
- How can I make this Python code more efficient
- Caesar Cipher C++ (arrays and pointers)
- Caesar Cipher not rotating letters properly? (Python)
Related Questions in UIWEBVIEW
- Shifting within a list when past end range?
- Encrypting a string that contains unicode results in unrecognized characters
- Challenges with caesar-cipher: Encoding and Decoding code
- Function not being called when it should be in node app
- Function That Receives and Rotates a Text
- Caesar cipher in C - encryption and decryption
- ROT 13 Cipher: Creating a Function Python
- How can I make this Python code more efficient
- Caesar Cipher C++ (arrays and pointers)
- Caesar Cipher not rotating letters properly? (Python)
Related Questions in XAMARIN.FORMS
- Shifting within a list when past end range?
- Encrypting a string that contains unicode results in unrecognized characters
- Challenges with caesar-cipher: Encoding and Decoding code
- Function not being called when it should be in node app
- Function That Receives and Rotates a Text
- Caesar cipher in C - encryption and decryption
- ROT 13 Cipher: Creating a Function Python
- How can I make this Python code more efficient
- Caesar Cipher C++ (arrays and pointers)
- Caesar Cipher not rotating letters properly? (Python)
Related Questions in OPENURL
- Shifting within a list when past end range?
- Encrypting a string that contains unicode results in unrecognized characters
- Challenges with caesar-cipher: Encoding and Decoding code
- Function not being called when it should be in node app
- Function That Receives and Rotates a Text
- Caesar cipher in C - encryption and decryption
- ROT 13 Cipher: Creating a Function Python
- How can I make this Python code more efficient
- Caesar Cipher C++ (arrays and pointers)
- Caesar Cipher not rotating letters properly? (Python)
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 # Hahtags
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.