maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[v1.33.0] Unable to launch app for Android TV

Open yusufyildirim opened this issue 1 year ago • 2 comments

Describe the bug Maestro is unable to launch Android applications if they don't have CATEGORY_LAUNCHER for their activity in AndroidManifest. Android TV specific applications typically have CATEGORY_LEANBACK_LAUNCHER instead and Maestro is not looking for that.

CLI throws an error like this when it fails: Unable to launch app com.your.app: UNKNOWN

To Reproduce

  1. Setup an Android TV sample app.
  2. Start an Android TV emulator
  3. Run maestro test your_test_file.yaml
  4. See the error at your terminal

Expected behavior App should launch on the Android TV emulator

Environment information (please complete the following information):

  • Maestro v1.33.0
  • Platform: Any Android TV
  • Framework: React Native
  • Device model and OS version: Any
  • Tested on emulator and physical device
  • Host Mac M1

yusufyildirim avatar Oct 03 '23 11:10 yusufyildirim