I use InAppBrowser and Whitelist plugins. Application show my content. And after click on the link to the site, show it in application. When user click "Back to application" application back to show my content. Whitelist all is ok. External URLs (back, forward etc) and button "Back to application". I didn’t show in youtube because I wasn’t add domen "youtube" in whitelist. Then I add domen "youtube" to whitelist:
<allow-navigation href="*youtube*" /> <allow-navigation href="*ytimg*" /> And then plugin InAppBrowser not work. URLs show, but not show control buttons and button "Back to application". And it is impossible to return to the application (when it is compile for iOs)
How do you setup Whitelist for work with you and InAppBrowser? Or how to show external sites in my application?
Please do not say about iFrame!
This issue is actually only for iOs!
In Russian:
In the application on the cordo, I use two plugins - whitelist and inappbrowser. The application shows my content, and when you click on external links, the external site is shown directly in the application window. When you click on the button "Back to the application" my content again opens. When I use the default whitelist settings, everything is fine. External sites are displayed in the application with the browser control panel (back, forward, etc.) and the "Back to the application" button. This makes InAppBrowser. But the video from YouTube is not shown. Because youtube domain is not added to the white list. I add it like this:
<allow-navigation href="*youtube*" /> <allow-navigation href="*ytimg*" /> After this video is shown. But the InAppBrowser plugin stops working. Pages of external sites are displayed in the application but without browser controls and without the Back to application button. And after compiling on iPhones there is no possibility to return to the application content. Since the external site on the entire application window, and there is no BACK button.
Is it possible to somehow configure whitelist so that the video is displayed and the plug-in browser is working?
Or maybe there is another option to show external sites in my application?
iFrame not to offer. Drops out of site security policies. Not displayed.
The problem is relevant only for iOs!
My system:
cordova 6.4.0
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-whitelist 1.3.0 "Whitelist"
compile in xcode 7.2.1