Monetizr Developer Hub

Welcome to the Monetizr developer hub. Here you will find user documentation and our API reference guide to get you started.

Get Started    API Reference

Opening page in iOS and Android

Unity-webview

Monetizr uses an open-source component that provides a web view for Unity applications on mobile platforms. You can consult its documentation if you are having build issues related to web view.

On Android and iOS devices page will open within Unity application for seamless checkout experience. It will not open new web browser tab or lead the player outside of game environment.
The view provides only a close button and a back button to prevent unwanted browsing.

WebGL

Sometimes Game Developers want to open page in a new tab. WebGLOpenLink component allows opening new tabs from a Unity WebGL application.
If you plan on opening custom links make sure that on WebGL the OpenURL(string) method is called from an OnPointerDown event.

Other platforms

All other platforms such as desktop will use Unity's Application.OpenURL(string). Read more about it here. This method will still be available even if Monetizr Web View is disabled.

Open any web page

The web view provided with the Monetizr plugin can be used to open any web page within the Unity application. The OpenURL method follows the behavior described above.

MonetizrClient.Instance.OpenURL("https://docs.themonetizr.com");

Web View


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.