adjust / flutter_sdk

This is the Flutter SDK of
MIT License
59 stars 49 forks source link

Unhandled Exception: MissingPluginException(No implementation found for method requestTrackingAuthorizationWithCompletionHandler on channel com.adjust.sdk/api #79

Closed kenguyenduc closed 2 years ago

kenguyenduc commented 2 years ago

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method requestTrackingAuthorizationWithCompletionHandler on channel com.adjust.sdk/api) E/flutter ( 5174): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7) E/flutter ( 5174): E/flutter ( 5174): #1 Adjust.requestTrackingAuthorizationWithCompletionHandler (package:adjust_sdk/adjust.dart:101:24) E/flutter ( 5174):

JakeGi commented 2 years ago

How to solve it?

uerceg commented 2 years ago

Hi @kenguyenduc

This error is nothing really important - it is just saying that implementation of the method you're invoking (Adjust.requestTrackingAuthorizationWithCompletionHandler) does not exist on Android platform. You can dodge this simply by making a call to that method only on iOS platform. Or give our latest SDK version a shot where we tried to make these errors not to be reported anymore and let us know if that worked as expected for you.

kenguyenduc commented 2 years ago

@uerceg Thanks for the support.