Embedding the PWA in your Unity application
Although the PWA can be opened in a new browser tab (with Application.OpenURL for example), we recommend finding a way to embed it directly in your app for UX reasons. As an example, we will demonstrate using the plugin "3D WebView for Android and iOS (Web Browser)" (available on Unity Asset Store).
Opening the PWA
Once installed, you can follow these steps to integrate it and open the Kinetix PWA:
Grab the prefab "CanvasWebViewPrefab" from the demo scenes of the plugin
Use the following code to get the PWA url and open it
Detecting end of the flow
Using the close ("X") buttons in the PWA
If you choose to use this method, please be aware that the "next" and "previous" standard actions of the browser won't work to navigate the pages of the PWA
Via polling
Detecting the end of the flow in the PWA can be done in a variety of ways, but the simplest is to poll the user's processes to detect if a new emote is being processed
To detect a new valid Process, you can check the length of the processes after filtering them thanks to the property CanBeValidatedOrRejected
Last updated