Skip to content

Non-platform thread #68

@senorrelentless

Description

@senorrelentless

Hi we are trying to implement health_kit_reporter and we have done so in our main Widget, called with runApp(...)

Immediately in the main widget we setup the listeners.

Even though everything seems to work it is a bit worry some to get this kind of error message. What is the approach here? Cannot health_kit_reporter work with Riverpod?

[ERROR:flutter/shell/common/shell.cc(1015)] The 'health_kit_reporter_event_channel_observer_query' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.

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