AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
144 stars 114 forks source link

init sdk error #68

Closed LiamLong11 closed 3 years ago

LiamLong11 commented 3 years ago

init sdk on ios,I get this: [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 132 pos 14: 'exp.hasMatch(appID)': is not true.

0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)

1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)

2 AppsflyerSdk._validateMapOptions (package:appsflyer_sdk/src/appsflyer_sdk.dart:132:14)

3 AppsflyerSdk.initSdk. (package:appsflyer_sdk/src/appsflyer_sdk.dart:205:28)

4 _rootRunUnary (dart:async/zone.dart:1198:47)

5 _CustomZone.runUnary (dart:async/zone.dart:1100:19)

6 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)

7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)

8 Future._propagateToListeners (dart:async/future_impl.dart:725:32)

9 Future._complete (dart:async/future_impl.dart:519:7)

LiamLong11 commented 3 years ago

RegExp exp = RegExp(r'^\d{8,11}$'); assert(exp.hasMatch(appID)); appID that i get was not match this

maxsalo17 commented 3 years ago

@LiamLong11 Just remove "id" prefix from your appID.

GM-appsflyer commented 3 years ago

Please reach out to us or support@appsflyer.com if you still encounter this issue!

devinyonas commented 3 years ago

@LiamLong11 Just remove "id" prefix from your appID.

Hello @maxsalo17, can you elaborate your solution? did you mean remove the teamID? because Apple's AppID consist of teamID.bundleID

@GM-appsflyer hi, currently I still encounter this issue using appsflyer_sdk: ^6.2.4 when running on iOS