Skip to content

[iOS] trigger() not sending events while working on Android #203

@sheraz-tdtrg

Description

@sheraz-tdtrg

Describe the bug
When using pusher_channels_flutter, triggering a client event from iOS does not work.

  • On Android, events are triggered and received correctly.
  • On iOS, the trigger() call succeeds (no error thrown), but the event is never received by any clients (neither iOS nor Android).

To Reproduce

Steps to reproduce the behavior:

  1. Initialize Pusher with private channel + client events
  2. Subscribe successfully (both Android and iOS receive messages if triggered from server/Android)
  3. Call pusher.trigger() from iOS
  4. Event is not received on any client

Expected behavior
Calling trigger() from iOS should send a client-* event to other subscribed clients (same as Android behavior).

Code Sample
await pusher.trigger(
PusherEvent(
channelName: "private-chat-23",
eventName: "client-message",
data: jsonEncode({
"username": "James",
"message": "Hello",
"timestamp": "08:36 PM",
}),
),
);

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