PlaySuper LogoPlaySuper
WebView Integration

WebView Integration Overview

Embed the PlaySuper store in native Android, iOS, React Native, and Flutter apps — no Unity SDK required

If your app is not built with Unity — a native Android Studio project, an iOS app, React Native, or Flutter — you can still offer the full PlaySuper store experience by loading it in a WebView. Your app handles authentication via the REST API, then opens the store URL with the player's credentials attached.

Prerequisites: Complete the Console Setup Guide first so you have your API key and coin ID ready. Coin distribution and other server-side operations use the REST API directly.

How it works

  1. Your app registers and logs in the player through the REST API to obtain an access token.
  2. Your app opens the store URL in a WebView with the API key and token as query parameters — the store picks them up automatically on first render.
  3. Your app wraps the WebView in its own screen with its own close/back control (e.g. a toolbar button), so the player can return to the game at any time.
  4. Your backend distributes coins and receives transaction notifications via the REST API and webhooks — no SDK involved.

What you can do with this integration

  • Manage players — create and authenticate players using your app's internal IDs
  • Open the store — launch the full PlaySuper rewards store inside your app, with optional deep-linking
  • Distribute coins — award coins from your backend when players complete actions
  • Check balances and orders — fetch coin balances and purchase history via REST
  • React to purchases — receive server-side webhook notifications when players spend or are refunded coins
  • Handle multiple players — cleanly switch accounts on the same device with session clearing

Integration steps

Follow these guides in order:

StepGuideWhat you will do
1AuthenticationCreate the player and obtain an access token via the REST API
2Store URLBuild the store URL with credentials, deep links, and analytics tags
3WebView SetupConfigure the WebView, orientation, and close/back controls
4Platform ExamplesComplete screens for Kotlin, Java, Swift, React Native, and Flutter
5Session ManagementHandle token expiry, logout, and switching players
6Coins & TransactionsDistribute coins, check balances, and react to store purchases
7Complete ExampleFull backend + client flow, plus troubleshooting

If your game is built with Unity, use the Unity SDK instead — it wraps this entire flow and adds offline queuing and transaction sync.

Support