Skip to content

Awaiting initialize in Zendesk Messaging Flutter Breaks Hot Reload #75

@AtamerSahin

Description

@AtamerSahin

When calling ZendeskMessaging.initialize() with await, the hot reload feature in Flutter stops working. The app enters what seems to be an infinite await state, preventing hot reload from functioning correctly.

Steps to Reproduce:

1. Call await ZendeskMessaging.initialize(yourChannelKey); in the main initialization process.
2. Run the app and try using hot reload.

Expected Behavior:
The app should initialize Zendesk Messaging and allow hot reload to function normally.

Actual Behavior:
The app appears to enter an infinite await state, breaking hot reload functionality.

Platform:
• Android
• iOS

Additional Notes:
This issue does not occur if initialize() is called without await. However, this workaround is not ideal as it prevents proper async handling of initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions