Closed tegarnugroho closed 3 years ago
Hey @skripsimu,
It seems an exception is being thrown because of the app ID in the AppsFlyerOptions object. Did you make sure to provide the app ID for the iOS app (located in the dashboard) in a string format?
Example:
final AppsFlyerOptions options = AppsFlyerOptions(
afDevKey: devKey,
appId: "1234567890",
showDebug: true,
);
_appsflyerSdk = AppsflyerSdk(options);
Hi @GM-appsflyer
i can make sure the appid i input is in string format.
@GM-appsflyer , I'm also facing the same issue, when "appsflyerSdk.initSdk" is called. AppFlyer version: ^6.12.2 Pls help resolve this issue.
Here are all the logs:-
` [AppFlyer bug] 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 83 pos 14: 'exp.hasMatch(appID)': is not true. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 83 pos 14: 'exp.hasMatch(appID)': is not true.
im deleting the AppsFlyerSDK a lot of errors like this, very dump flow, AppsflyerSdk , initsdk, pass options, etc... very tired of weird unsolved issues like this thread
Just remove the "id" part and you are good to go.
I get this error when run on ios Device on InitSDK. I am using appsflyer_sdk version: ^6.3.2-nullsafety.0
flutter: ----------------FIREBASE CRASHLYTICS---------------- flutter: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 85 pos 14: 'exp.hasMatch(appID)': is not true. flutter:
0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
2 AppsflyerSdk._validateAFOptions (package:appsflyer_sdk/src/appsflyer_sdk.dart:85:14)
3 AppsflyerSdk.initSdk. (package:appsflyer_sdk/src/appsflyer_sdk.dart:252:28)
4 _rootRunUnary (dart:async/zone.dart:1362:47)
5 _CustomZone.runUnary (dart:async/zone.dart:1265:19)