Skip to content
New issue

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

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

Already on GitHub? # to your account

Logging not working in Android Studio Emulator #340

Closed
smhmic opened this issue Jun 14, 2024 · 2 comments
Closed

Logging not working in Android Studio Emulator #340

smhmic opened this issue Jun 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@smhmic
Copy link

smhmic commented Jun 14, 2024

I am expecting to see network requests being made by the Branch SDK every time the app is opened or an event that is tracked in the app is triggered, whether through a Branch link or triggering the events organically within the app. But we only see minimal logs. The light green are print statements in our code placed just before we call FlutterBranchSdk.trackContentWithoutBuo().
image

I followed Branch support instructions to:

  • Run the Integration Validator with no errors.

  • Confirm we are using Branch's Flutter SDK 7.3.0. Branch support said:

    "this points to the Android SDK version being used in the version of Flutter you are using is what is causing these issues with the logs not appearing (logging issue on Android SDK v5.8.0 was fixed in v5.8.1)."

    image

  • Enable logging.
    image
    image
    I tried with useTestKey both on and off, and the output looks the same, except for this log entry:

    BranchSDK: enableTestMode has been changed. It now uses the test key but will not log or randomize the device IDs. If you wish to enable logging, please invoke enableLogging.
    

Test device:

  • Flutter: v3.19.5
  • OS: Android 14.0 (U) - API 34
  • Device: Android Studio Emulator 34.1.20-11610631
  • Model: sdk_gphone64_arm64
@RodrigoSMarques
Copy link
Owner

I have identified the issue. Change in log behavior in the latest versions of the Branch SDK.

I will release a fix in the next few days.

@smhmic smhmic changed the title Logging not working on Android Logging not working in Android Studio Emulator Jun 18, 2024
@RodrigoSMarques RodrigoSMarques added the bug Something isn't working label Jun 21, 2024
RodrigoSMarques added a commit that referenced this issue Jun 27, 2024
## 8.0.3
### ⚠️ BREAKING CHANGE
This is a major release which contains breaking API changes.
#### ⚠️ SDK Initialization Changed
* `useTestKey` parameter is no longer supported at `FlutterBranchSdk.init()`.

Check the instructions in `README.MD` on how to activate the `key_test_`.

### 🐛 Bug Fixes
* Fix issue #340: Logging not working in Android Studio Emulator
@RodrigoSMarques
Copy link
Owner

Fixed Release 8.0.3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants