I’m having an issue where my main activity launches and moves to the next activity so quickly, that appium thinks it never launches.
[debug] [ADB] Found package: ‘com.XXXX.XXXXX.internal’ and fully qualified activity name : ‘com.XXX.XXXX.ui.onboarding.OnboardingActivity’
[debug] [ADB] Incorrect package and activity. Retrying.
[ADB] Error: Error occured while starting App. Original error: ‘com.XXX.XXXXXX.ui.launch.LaunchActivity’ never started
What is happening is that the LaunchActivity is launching, but it’s going so fast Appium never recognizes this. I can verify this by adding a wait in LaunchActivity. Unfortunately this is not a long term solution. I tried fixing by setting the app and package capability to OnboardingActivity, however, that doesn’t work because I get a permission denial error. I talked to the developer to get this fixed but they don’t want this activity launch-able in the production build of the app.
Does Appium have any other capabilities to help me out here?
The problem I’m running into is it is not recognizing the launch-able activity, it goes too fast. Instead it just complains that the launch-able activity never started. If I delay the activity moving onto the next activity, everything is fine.