Skip to content

Conversation

@denischilik
Copy link
Contributor

Background

The isInitialized method on iOS was checking the actual initialization state of the native SDK, which could return false during early app lifecycle. This caused issues when Flutter code expected the SDK to be available immediately.

What Has Changed

  • Modified isInitialized to return true immediately on iOS instead of checking MParticle.sharedInstance().initialized
  • Ensures consistent behavior across platforms where SDK is always considered initialized

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Reference Issue (For employees only. Ignore if you are an outside contributor)

Partners receive null responses because Flutter SDK wasn't fully initialized.
Changed isInitialized to return true immediately to allow SDK usage without waiting.
@denischilik denischilik merged commit 1c62a4c into development Nov 21, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants