Type CoronaProvider Revision Release 2024.3703 Keywords native, showPopup, safari, safariView, webView Platforms iOS
The Safari View plugin lets you display a web page popup using the SFSafariViewController
, introduced in
This plugin is only supported on
The Safari View is not intended as a comprehensive replacement for native.newWebView(). Its general purpose is to provide the user with a simple
In contrast to native.newWebView(), the Safari View shares cookies, sessions, and other browser data with the native iOS Safari app.
The Safari View can not open local HTML files — all URLs must start with http://
or https://
.
To use this plugin, add an entry into the plugins
table of build.settings
. When added, the build server will integrate the plugin during the build phase.
settings = { plugins = { ["CoronaProvider.native.popup.safariView"] = { publisherId = "com.coronalabs" }, }, }