Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeps in connecting status in IOS #58

Open
melchorlapinigjr opened this issue Oct 18, 2022 · 4 comments
Open

Keeps in connecting status in IOS #58

melchorlapinigjr opened this issue Oct 18, 2022 · 4 comments
Assignees

Comments

@melchorlapinigjr
Copy link

melchorlapinigjr commented Oct 18, 2022

Flutter doctor:
`Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale en-PH)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.72.2)
[✓] Connected device (5 available)
[✓] HTTP Host Availability
`

Logs:

"D/PusherClientPlugin: Event stream listening..." "D/PusherClientPlugin: Pusher initialized" "D/PusherClientPlugin: [connecting]" "D/PusherClientPlugin: [connecting]" flutter: INFO: --> POST https://api.hours.fi/api/users/560/update_token flutter: INFO: content-type: application/json; charset=utf-8 flutter: INFO: {"token":""} flutter: INFO: --> END POST (175-byte body) flutter: INFO: --> GET https://api.hours.fi/api/notifications?page=1&is_paginate=true&per_page=10 flutter: INFO: --> END GET flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…> flutter: \^[[38;5;12m│ #0 _MainAppState.build.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:hours_flutter/main.dart:169:38)<…> flutter: \^[[38;5;12m│ #1 BlocBuilder.build (package:flutter_bloc/src/bloc_builder.dart:90:57)<…> flutter: \^[[38;5;12m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…> flutter: \^[[38;5;12m│ 💡 AuthenticationState=Authenticated(false)<…> flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…> "D/PusherClientPlugin: Subscribed: user_560" "D/PusherClientPlugin: Event stream cancelled." "D/PusherClientPlugin: Event stream listening..." "D/PusherClientPlugin: [BIND] App\\Events\\WorkUpdate" "D/PusherClientPlugin: Subscribed: private-users_560" "D/PusherClientPlugin: Event stream cancelled." "D/PusherClientPlugin: Event stream listening..." "D/PusherClientPlugin: [BIND] Illuminate\\Notifications\\Events\\BroadcastNotificationCreated" flutter: \^[[38;5;12m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…> flutter: \^[[38;5;12m│ #0 PusherClientHelper.initializePusherClient.<anonymous closure> (package:hours_flutter/src/api/pusher_client.dart:35:14)<…> flutter: \^[[38;5;12m│ #1 PusherClient._eventHandler (package:pusher_client/src/pusher/pusher_client.dart:127:34)<…> flutter: \^[[38;5;12m├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄<…> flutter: \^[[38;5;12m│ 💡 previousState: connecting, currentState: connecting<…> flutter: \^[[38;5;12m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>

I'm using physical device iPhone X iOS 15.6
Been stuck for 2 days. Any help or hind is appreciated. Thank you.

@jasper12112
Copy link

I am having the same issue on android, so if you find a fix for this please let me know :D
Also, what might work for you if you have not tried this yet is this: https://github.com/chinloyal/pusher_client#subscribing-to-private-channels-with-ios

And have you also gone over these steps? https://github.com/chinloyal/pusher_client#for-ios

@adesugbaa
Copy link

I fixed it for my application - forked the code and made some tweaks. Reverted to older PusherSwift (from https://github.com/thijskuilman/pusher_client).

The newer versions of PusherSwift do not work with non-Pusher versions - it only works with the official plugin. Please let me know if you need help.

@jasper12112
Copy link

jasper12112 commented Nov 16, 2022 via email

@ziagit
Copy link

ziagit commented Jan 14, 2023

Hey there,
I'm having this issue too,
could anyone fix this.

this is what I get when I subscribe to a channel.

[  +49 ms] D/PusherClientPlugin(20983): Event stream cancelled.
[        ] D/PusherClientPlugin(20983): Event stream listening...
[  +14 ms] D/PusherClientPlugin(20983): [CONNECTING]
[        ] D/PusherClientPlugin(20983): [CONNECTING]
[   +1 ms] D/PusherClientPlugin(20983): [CONNECTING]
[        ] D/PusherClientPlugin(20983): [CONNECTING]
[   +1 ms] D/PusherClientPlugin(20983): [CONNECTING]
[        ] D/PusherClientPlugin(20983): [CONNECTING]
[        ] D/PusherClientPlugin(20983): [CONNECTING]
[ +737 ms] D/PusherClientPlugin(20983): [RECONNECTING]
[   +1 ms] D/PusherClientPlugin(20983): [RECONNECTING]
[        ] D/PusherClientPlugin(20983): [RECONNECTING]
[        ] D/PusherClientPlugin(20983): [RECONNECTING]

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

No branches or pull requests

5 participants