Hey Streamlit Community! ![]()
People often say Streamlit is only meant for internal data dashboards or quick prototypes. As a Data Engineer, I wanted to test that limit and see if Streamlit could power a consumer-facing, real-time multiplayer mobile game and fintech simulator.
After months of engineering, I just launched NetWorth Arena on the Google Play Store!
How I Solved the “Streamlit on Android” Architecture:
Since Streamlit doesn’t natively export to Android .aab bundles, I built a custom hybrid architecture in Android Studio (Java) wrapping our hosted Streamlit engine (networtharena.app):
Two-Way JS-to-Java Bridge (@JavascriptInterface): When a player triggers a VIP purchase or watches a reward ad inside the Streamlit UI, custom JavaScript hooks communicate directly with native Android Java classes.
Native Monetization & Play Core APIs: Integrated Google Play Billing Library v8.0.0, Google AdMob SDK v23.0.0 (Rewarded Ads), and the native In-App Review API directly into the Java wrapper.
Real-Time State Synchronization: Once a native Google Play transaction or ad reward finishes on the phone, the Java layer pushes the verification token straight to our Supabase backend, instantly updating the user’s Streamlit session state without losing context.
Live Market Engine & Multiplayer: Uses live Binance WebSockets for zero-risk paper trading alongside real-time 1v1 player battles.
Zero “Web” Feel: Used heavy custom CSS/DOM overrides to strip standard web elements, locked viewport scaling, and built native Android splash screens, offline retry handlers, and forced-update version checks.
Test the Live Build on Google Play:
I would love for the community and the @dataprofessor / Streamlit DevRel team to test the performance and share harsh feedback on how it feels on mobile!
Google Play Store: https://play.google.com/store/apps/details?id=app.networtharena
If anyone here is trying to wrap their Streamlit apps into production mobile builds with native monetization, drop your questions below—happy to share how I handled the WebView bridge and state management!