Webviews 2.0 for iOS and Android (in-app browser)
Works on iOS, Android
Because the extension of Abliblablobla is not working with the latest build of Stencyl (3.3) and the project can not be rebuilt because it is not complete.
I find a new WebView extension that i have rebuild so it will work with Stencyl.Source: https://github.com/fbricker/openfl-webview
This extension works on Stencyl 3.3 >
Because its a different extension, i open a new topic, to explain how this extension works.IMPORTANT
Because of App Transport Security (ATS) in IOS9, HTTP will not loads in IOS9.
To get it work on IOS9 you have to Download, Install and Enable “byRobin Extension Manager
- Full-screen and Popup mode.
- Popup mode has a close button on the top-left corner
- Whitelist validation (the webview will close if the user goes to a non-whitelisted URL).
- Blacklist validation (the webview will close if the user goes to a blacklisted URL).
- 64-bit support to iOS
- Tested with iPhone 5 IOS 8, Ipad IOS 8 and Samgsung Note 3 4.4.2 How to download this extension
Go to: http://byrobin.nl/store/product/webview2-0-for-ios-andrid-stencylopenfl
Add the extension to the cart en proceed with checkout. After you successfully placed the order, you will get an e-mail with the download link or go to “My Account” section where you can also find the download link.
Install the zip file: Go to : http://community.stencyl.com/index.php/topic,30432.0.html How to install this extension
Go to: https://github.com/byrobingames/webview2.0/blob/master/README.md#how-to-installDocumentation
Or See: https://github.com/byrobingames/webview2.0/blob/master/README.md#documentation-and-blocks-example
Just put the block under a button, fill in the block and the webview will open.
Open webview in a popup or in fullscreen.Inputs
- website url(as Text) start with http://
- popup or fullscreen(as choise) (no close with fullscreen)
- Whitelist (as Code(array))
- Blacklist (as Code(array))Example 1: Without whitelist and blacklist
-url = http://www.google.com
-blacklist= nullExample 2: With whitelist
-url = https://github.com
-whitelist = [“(http|https)://(.*)github.com(.*)”]
-blacklist = null
This means that the user can browse only on github.com, if they enter another url, the webview will close.Example 3: With blacklist
-url = http://www.google.com
-whitelist = null
-blacklist = [“(http|https)://(.*)github.com(.*)”]
This means the user can browse on every website, exept on github.com, if the user browse to github.com, the webview will close. How to add more website toe whitelist and blacklist.
Because the whitelist and blacklist is a array, you can add more website to these lists.
Just before the close Bracket “]”, you putt ,”http://website.com”
(comma-Quotation mark-url-Quotation mark)
Like this: [“(http|https)://(.*)github.com(.*)”,”http://website.com”] Legend for whitelist and blacklist
[ ] = between open close brackets, you put code.
" " = between the 2 Quotation mark you put the website you wanna add to the list.
, = between more websites you enter a comma.
(http|https) = looks if the website is http or https
(.*) = can be everything, if the website have submaps.
- 2.0 second new release
- 2.2 Update info.txt file.
- 2.3 Add icon on block, download now from GitHub
If you have any suggestions of questions, just let me know.
Enjoy this extension..