Skip to content

When using the pusher_channels_flutter plugin on iOS, the app crashes or logs an error during runtime due to a platform channel message being sent from a non-platform thread. #197

@MansurSarkhanov

Description

@MansurSarkhanov

[ERROR:flutter/shell/common/shell.cc(1053)] The 'pusher_channels_flutter' 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.

1)Use pusher_channels_flutter to connect and authorize via onAuthorizer on iOS

2)Subscribe to a private channel

3)When an event is received, the app logs the above error or crashes

Flutter: 3.24
iOS Deployment Target: 15.5
Device: iPhone X / Simulator
Plugin version: pusher_channels_flutter: ^2.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions