AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

Unhandled Exception: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 82 pos 14: 'exp.hasMatch(appID)': is not true. #283

Closed devfunmilayor closed 4 months ago

devfunmilayor commented 11 months ago

:dart_vm_initializer.cc(41)] Unhandled Exception: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 82 pos 14: 'exp.hasMatch(appID)': is not true. package:appsflyer_sdk/src/appsflyer_sdk.dart:82

0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)

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

2 AppsflyerSdk._validateAFOptions

package:appsflyer_sdk/src/appsflyer_sdk.dart:82

3 AppsflyerSdk.initSdk.

package:appsflyer_sdk/src/appsflyer_sdk.dart:160

#4 AppflyerService.init package:Grip/services/appflyer_service.dart:26 [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: 'package:appsflyer_sdk/src/appsflyer_sdk.dart': Failed assertion: line 82 pos 14: 'exp.hasMatch(appID)': is not true. package:appsflyer_sdk/src/appsflyer_sdk.dart:82 #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61) #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5) #2 AppsflyerSdk._validateAFOptions package:appsflyer_sdk/src/appsflyer_sdk.dart:82 #3 AppsflyerSdk.initSdk. package:appsflyer_sdk/src/appsflyer_sdk.dart:160
github-actions[bot] commented 11 months ago

👋 Hi @devfunmilayor and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

devfunmilayor commented 11 months ago

Thank you, I will do that.

On Thu, 3 Aug 2023 at 22:05, github-actions[bot] @.***> wrote:

👋 Hi @devfunmilayor https://github.com/devfunmilayor and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at @.*** When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

— Reply to this email directly, view it on GitHub https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin/issues/283#issuecomment-1664647329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW74WETAP56F7ADS5FPDRRDXTQHA7ANCNFSM6AAAAAA3DKATCA . You are receiving this because you were mentioned.Message ID: @.***>

danbeechbloom commented 10 months ago

Any updates on this issue? I'm also getting this error when trying to integrate iOS.

devfunmilayor commented 10 months ago

Nothing yet

On Tue, 8 Aug 2023 at 13:48, danbeechbloom @.***> wrote:

Any updates on this issue? I'm also getting this error when trying to integrate iOS.

— Reply to this email directly, view it on GitHub https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin/issues/283#issuecomment-1669547404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW74WEQWUEJEOAN2C3VDFZLXUIYQHANCNFSM6AAAAAA3DKATCA . You are receiving this because you were mentioned.Message ID: @.***>

danbeechbloom commented 10 months ago

@devfunmilayor remove id from the beginning of the app ID you get from the dashboard. The error is caused by this regex not finding a match because the appId exceeds the char length:RegExp exp = RegExp(r'^\d{8,11}$');

@pazlavi could just strip id from the beginning of the string and this issue wouldn't crop up again? ☝️

tudosxxx commented 10 months ago

"id12345678" delete "id"? "12345678"?

AkaankshK commented 10 months ago

Removing id in the beginning resolved the issue for me. This should be mentioned or handled in the sdk.

devfunmilayor commented 10 months ago

Thank you all .

On Sat, 26 Aug 2023 at 13:59, AkaankshK @.***> wrote:

Removing id in the beginning resolved the issue for me. This should be mentioned or handled in the sdk.

— Reply to this email directly, view it on GitHub https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin/issues/283#issuecomment-1694335621, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW74WEXFLNDFWTOXMWR5LPLXXHXKTANCNFSM6AAAAAA3DKATCA . You are receiving this because you were mentioned.Message ID: @.***>