playmez_embed
Put a Playmez game in your Flutter app (iOS and Android). One widget wrapping webview_flutter that relays the game's events. Points are virtual, non-transferable and worth nothing.
flutter pub add playmez_embed
import 'package:playmez_embed/playmez_embed.dart';
// launchUrl comes from YOUR backend, which calls POST /partner/launch with the API key. Never ship the key.
PlaymezGame(
launchUrl: launchUrl,
onEvent: (e) {
if (e.type == 'result') debugPrint('${e.won ? "won" : "lost"} ${e.net} points');
},
onClose: () => Navigator.of(context).pop(),
)
Events: ready (game), result (game, won, net), close, error (code, message), resize (height).
Voice at shared tables (only when Playmez switched it on for you): the widget grants microphone capture to the game page; add RECORD_AUDIO on Android and NSMicrophoneUsageDescription on iOS, or pass allowMicrophone: false.
Full guide: https://playmez.com/developers
MIT © Playmez
Libraries
- playmez_embed
- Put a Playmez game in your Flutter app.