initializeSdk method

void initializeSdk({
  1. required String apiKey,
  2. required String siteId,
  3. required String baseUrl,
  4. required bool isSubscribed,
  5. bool pushEnabled = true,
  6. String? appVersion,
})

will only save siteId && apiKey and save them in [SharedPreferences}

Implementation

void initializeSdk({
  required String apiKey,
  required String siteId,
  required String baseUrl,
  required bool isSubscribed,
  bool pushEnabled = true,
  String? appVersion,
}) async {
  await _saveSDKParam(
    apiKey: apiKey,
    siteId: siteId,
    pushEnabled: pushEnabled,
    url: baseUrl,
    version: appVersion,
    isSubscribed: isSubscribed,
  );
}