Skip to content

AppsflyerSdkPlugin$5.lambda$onError$1 #398

@jacobsofteng

Description

@jacobsofteng

Describe the bug
The callbacks onSuccess and onError inside startSDK method cause this error. We cannot remove them as we track errors.

To Reproduce
Steps to reproduce the behavior:
Update to the latest version 6.16.2. Start the sdk manually via startSDK() method and assign the callbacks.

..startSDK(
          onSuccess: () {},
          onError: (int errorCode, String errorMessage) {
            _mobileService.recordError(
              AppsflyerInitException(errorMessage: errorMessage),
              information: 'AppsFlyer SDK initialization failed with error code $errorCode',
              null,
            );
          },
        );

Expected behavior
The callbacks don't cause exceptions

Screenshots

Image

Smartphone (please complete the following information):

  • Device: Redmi Note 8 Pro
  • OS: Android 14

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions