Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Open App not working #1815

Closed
balajiks-dev opened this issue Oct 18, 2023 · 6 comments
Closed

Android Open App not working #1815

balajiks-dev opened this issue Oct 18, 2023 · 6 comments

Comments

@balajiks-dev
Copy link

balajiks-dev commented Oct 18, 2023

Steps to reproduce

Run the example application and run this command

await $.native.pressHome();
await $.native.openApp();

Actual results

I'm trying to test press home and open the app in the android where as am getting this below issue.
await $.native.pressHome();
await $.native.openApp();

Logs

Logs
When the exception was thrown, this was the stack:
#0      NativeAutomator._wrapRequest (package:patrol/src/native/native_automator.dart:231:7)
<asynchronous suspension>
#1      NativeAutomator.openApp (package:patrol/src/native/native_automator.dart:314:5)
<asynchronous suspension>
#2      main.<anonymous closure> (file:///Users/eample/integration_test/example_test.dart:35:5)
<asynchronous suspension>
#3      patrolTest.<anonymous closure> (package:patrol/src/common.dart:140:7)
<asynchronous suspension>
#4      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:165:15)
<asynchronous suspension>
#5      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:982:5)
<asynchronous suspension>

Patrol version

patrol: ^2.3.1

Patrol Doctor output

Patrol Doctor output

Program adb found in /Users/user/Library/Android/sdk/platform-tools/adb
Env var $ANDROID_HOME set to /Users/user/Library/Android/sdk
Program xcodebuild found in /usr/bin/xcodebuild
Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale
en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

@balajiks-dev balajiks-dev changed the title Native Android Open App not working Android Open App not working Oct 18, 2023
@bartekpacia
Copy link
Contributor

Hi @balajiks-dev,

Do you have package_name defined in pubspec.yaml? For example:

patrol:
  app_name: Patrol example
  android:
    package_name: pl.leancode.patrol.example
  ios:
    bundle_id: pl.leancode.patrol.Example

@balajiks-dev
Copy link
Author

@bartekpacia Yes I have defined the package name in pubspec.yaml

@bartekpacia
Copy link
Contributor

Please post logcat.

Might be related to #1390.

@balajiks-dev
Copy link
Author

@bartekpacia Same issue but doesn't know the solution

@bartekpacia
Copy link
Contributor

Please provide a minimal, reproducible sample.

Otherwise we cannot help you and the issue will be closed.

@bartekpacia
Copy link
Contributor

Closing because of inactivity.

Feel free to open a new issue with all the required information provided, including a minimal, reproducible sample.

@bartekpacia bartekpacia closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
@leancodepl leancodepl locked and limited conversation to collaborators Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants