pubnub / dart

PubNub Dart SDK
Other
28 stars 15 forks source link

Where to set presenceTimeout in Pubnub configuration ? #53

Open unoravi opened 3 years ago

unoravi commented 3 years ago

I have few issues of NULL_SAFETY so I am using 4.0.0-beta.1 version in my code. I am not able to configure PresenceTimeout value into it. So I am not able to know from server that weather my connection is alive or not..

Please let me know if any else is implemented from your side.

Thanks

are commented 3 years ago

Hi, thanks for opening the issue!

Are you using PubNub SDK in a Flutter application?

unoravi commented 3 years ago

Yes.. I am facing an issue on both below dependency versions.

unoravi commented 3 years ago

@are Ask me if any kind of details you need. Waiting for a quick solution.

Thanks

unoravi commented 3 years ago

@are Please keep me posted if any updates on this..

are commented 3 years ago

Hello, sorry for not answering earlier. In general, because PubNub SDK is not Flutter specific, we are not sending the Presence events by default (because it doesn't make sense in all use-cases). Instead we have opted into letting users manually handle presence or use Flutter specific mechanisms and extensions.

You can use pubnub.announceHeartbeat and pubnub.announceLeave methods to signal presence manually.

Additionally we are working on a set of Flutter specific widgets to help with Presence and other things, but its not currently released yet. You can take a look at the pattern we plan to use for Presence here.

unoravi commented 3 years ago

@are Almost all development platforms has Pubnub Auto Present Fill Feature (with given presence time) and it is one of the feature of it too.

By doing this, you are restricting dart to use pubnub features.

are commented 3 years ago

We are not restricting PubNub features from Dart - Presence is fully available in the Dart SDK. However, because of the way Dart ecosystem functions we want to give customers flexibility in how they want to interact with PubNub network.

If you are using Flutter, please feel free to use the Presence widget I've shown you in the previous message. If you still believe that we need to include automatic Presence sending feature into the base Dart SDK, I will add it as a feature request. Thanks for your patience!

unoravi commented 3 years ago

@are For now, I am handling this manually but Kindly raise request to add automatic presence sending feature into the base Dart SDK.

Thanks

unoravi commented 3 years ago

@are Is there any update on Add automatic presence sending feature into the base Dart SDK?

unoravi commented 3 years ago

@are Any Updates.. ??

unoravi commented 3 years ago

@are Is there any update on Add automatic presence sending feature into the base Dart SDK?

are commented 3 years ago

Sorry, we don't have anything to share yet. If this is something that is preventing you from moving forward, please open a ticket with our Support so we can prioritize this issue.

Thank you for your patience!

unoravi commented 3 years ago

@are Raised ticket on Pubnub Support : https://support.pubnub.com/hc/en-us/requests/39524

Awaiting for a quick solution.

Thanks

unoravi commented 2 years ago

@are No updates from Pubnub Support..

Is there any update from your side on this ?

Because at last, I need to change code which is in dart language.

unoravi commented 1 year ago

ANY UPDATES ?