HomeX-It / pusher-websocket-flutter

An unofficial Flutter plugin that wraps pusher-websocket-java on Android and pusher-websocket-swift on iOS
MIT License
30 stars 22 forks source link

ios app not subscribed to channel #10

Closed Najeeb8680 closed 4 years ago

Najeeb8680 commented 5 years ago

please respond ASAP

MisterJimson commented 5 years ago

Please provide details, error messages, and if possible a reproducible for us to look at.

Najeeb8680 commented 5 years ago

Please provide details, error messages, and if possible a reproducible for us to look at.

No error messages, public channel works but private channel is not subscribe. i use authentication as well for private channel. For private channel, only pusher connection is successful.

Najeeb8680 commented 5 years ago

any solution???

MisterJimson commented 5 years ago

Please only leave comments that would help solve the problem. I can't give any timeline for when this will be looked it.

HoangKimDuc commented 5 years ago

me too!

joakiwpc commented 4 years ago

I have the same problem!!!

The problem is that I try to subscribe to a presence channel, nothing happens and no error is given. I can subscribe to public channels and on Android works perfectly.

I already tried with the sample code and the result is the same.

EDIT: I compiled the project directly on Xcode and there I could see the error log. I had to add some keys in Info.plist:

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>DOMAIN GOES HERE</key>
            <dict>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
         </dict>
    </dict>
MisterJimson commented 4 years ago

Thanks for the info @joakiwpc.

Do you know what domain you needed to add?

Najeeb8680 commented 4 years ago

Issue is when you use connectivity plugin with pusher_websocket_flutter plugin.

The solution is you must use another internet check connection like data_connection_checker plugin with pusher_websocket_flutter