A demonstration of a Flutter Android TV app , showing how the "d-pad" (Android remote) can be accessed.
flutter run
- Build an app that has the “d-pad” support (here is one I prepared earlier: https://github.com/cocreations/android_tv_dpad_basic)
- Use
serve
in the folder with the .apk so it’s available via port 80 - Use
ngrok
to get the location available on the internet
flutter build apk
cd build/app/outputs/flutter-apk/
serve
ngrok http 5000 # this in another tab
- Go into Apps, open the Google Play Store, and
- Install an app that will allow browsing to a URL (I found and recommend Downloader by AFTVnews)
- Go home, open Settings (cog icon) > Apps > Security & restrictions
- Untick Verify apps, choose Unknown sources, and allow the new Downloader by AFTVnews app to do this
- Go home, and run the Downloader by AFTVnews app, and type in the ngrok URL (eg. https://b3cdd4f102eb.ngrok.io/app-release.apk)
- Install and Open the app !
CoCreations is a software house that works closely with you to develop unique and beautiful mobile apps and systems.