Skip to content

await Adapty().activate() taking too long #180

@PetrKubes97

Description

@PetrKubes97

Hi, recently I've had a bug report from one of my users, that my app is slow to start.

I suspect, that the culprit might be:

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // Configure and activate Adapty SDK
  await Adapty().activate(
    configuration: AdaptyConfiguration(apiKey: 'YOUR_PUBLIC_SDK_KEY')
  );
  
  runApp(MyApp());

Sometimes in the debug mode, this can take up to 2 seconds. This is on iOS.

Would it be possible to either not require await or make the method run faster?

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions