For Stencyl 3.4 and above
Stencyl extension for “Webview” on iOS and Android. This extension allows you to easily integrate Webview (in-ap browser) on your Stencyl game / application. (http://www.stencyl.com)
Because of App Transport Security (ATS) in IOS9, HTTP will not loads in IOS9.
This Extension Required the Toolset Extension Manager https://byrobingames.github.io
To install this Engine Extension, go to the toolset (byRobin Extension Mananger) in the Extension menu of your game inside Stencyl.
Select the Extension from the menu and click on “Download”
If you not have byRobin Extension Mananger installed, install this first.
Go to: https://byrobingames.github.io
Just put the block under a button, fill in the block and the webview will open.
You can write your own local html code in this block. Leave the textfield empty if you are ussing the textfield from the toolset manager.
Open webview in a popup or in fullscreen.
Example 1: Without whitelist and blacklist
-url = http://www.google.com
Example 2: With whitelist
-url = https://github.com
-whitelist = [“(http|https)://(.
-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)://(.
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)://(.
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.
This software is opensource.
If you want to contribute you can make a pull request
Need help with a pull request?
Add the issue on GitHub
Need help with creating a issue?
build For OpenFl.
The MIT License (MIT)
Copyright © 2013 SempaiGames (http://www.sempaigames.com)
Author: Federico Bricker
Make it work for Stencyl Game Engine:
Copyright © 2014 byRobinGames (http://www.byrobingames.com)
Author: Robin Schaafsma
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.