pubnub

React-native pubnub WebRTC Video Chat [closed]

最后都变了- 提交于 2019-12-07 16:44:48
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . I work on a mobile application (react-native+pubnub) to make a WebRTC Video Chat . my problem is that pubnub doesn't have a specific SDK for react-native , how I can resolve this problem? 回答1: Bundling PubNub SDK in Your React-Native Apps Not the answer you might be looking for

Pubnub Presence feature in Python (GAE)

旧时模样 提交于 2019-12-07 03:43:25
PubNub, its really awesome for real-time communication. as per as documention given by pubnub team, am done with subscribe and publish instance, its working fine. Now am wondering how get a particular user already/presence with PubNub channels in Python(GAE) apps, but I didn't find a complete guide to how to implement this feature in both server and client side. NOTE: am using here Python Google App Engine & Javascript. PubNub presence is a way to follow up on joins/leaves in a channel, what you need is the here_now feature if I understand correctly, Taken from the Pyton lib is ( https:/

PubNub: What is the right way to log all published message to my db

前提是你 提交于 2019-12-07 01:47:06
问题 What is the right way to log every published message and save it to my server db. There are two options which I can think of: Use PubNub function After Publish event and forward the message to a dedicated logger channel. the server will subscribe to the channel and save the arrived messages to db. Here rise another question: when I forward the message to another channel in the PubNub function will it also trigger the PubNub function? use PubNub XHR request/response function and call to a rest

pubnub, how to identify the sender?

早过忘川 提交于 2019-12-07 00:50:02
问题 when receiving a message from pubnub, there is no information on the sender. how to know if it's a message from visitorA or visitorB ? there are examples on the web where the sender sends his name with the message, but how to know he isn't spoofing someone else's identity ? here is an example of a chat interface : <html> <body> <form id="message_form"> <input id="message_input" type="text"/> </form> <div id="chat"></div> <script src="http://cdn.pubnub.com/pubnub-3.7.1.min.js"></script>

How to receive missed messages on resuming connection lost in pubnub?

一笑奈何 提交于 2019-12-06 16:14:56
I tried https://github.com/pubnub/java/tree/master/android#connection-durability-reconnecting--resuming-when-a-connection-is-lost-or-changed but still I'm not able to figure out how to use setResumeOnReconnect() . I'm running android-service and added following code snippet inside onCreate() of the service. pubnubBroadcastReceiver =new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { ConnectivityManager connectivityManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); int networkType = intent.getExtras().getInt

How can I list all pubnub channels with active subscribers?

笑着哭i 提交于 2019-12-06 15:24:17
I'd like to list all channels associated with a subscribe key that have active subscribers. Is there a way to do that with pubnub? I am using the JavaScript API if that makes any difference. PubNub Where Now API Return a list of channels, associated with a subscribe key, where subscribers exist. PUBNUB.where_now( { uuid : 'optional-uuid' }, function(data) { console.log(data); } ); Note at the time of this posting, where_now() is only available in +3.6 SDK versions. 来源: https://stackoverflow.com/questions/21914908/how-can-i-list-all-pubnub-channels-with-active-subscribers

Android - Create a background service to receive PubNub messages

青春壹個敷衍的年華 提交于 2019-12-06 08:53:38
I am using PubNub API to get real time messages. I have implemented code to subscribe to my channel and receive ongoing messages. I just want these messages to receive in background even if my application is not open. I have learned about services and broadcast receiver in android but I am not understanding the how to use this with PubNub. Is there any proper way to achieve this? PubNub Subscribe Code public static final String GLOBAL_CHANNEL = "NAME_OF_MY_CHANNEL"; public void subscribe() { Callback callback = new Callback() { @Override public void connectCallback(String channel, Object

How to Implement Pubnub Presence feature in Ruby

我只是一个虾纸丫 提交于 2019-12-06 08:12:56
问题 I was wondering how to implement user presence with PubNub in Rails apps, but I didn't find a complete guide to how to implement this feature in both server and client side. 回答1: PubNub Presence with Ruby and JavaScript Get started easily with PubNub Presence in Ruby and JavaScript by following this short guide which connects the state between the two PubNub SDKs. First you'll want to make sure you have the latest PubNub Ruby GEM client SDK install on your server. But before we get into the

Android client to client messaging without my own server for GCM

萝らか妹 提交于 2019-12-06 07:41:49
I am doing a prototype that involves messaging between clients. What I want to do - from MyApp on device1, able to send message to MyApp on device2. Device2 should receive this and show a notification. I don't have my own application server to push notifications from GCM to GCM clients.Is this possible ? How to do it ? What I investigated - PubNub, which has a trial license that seems to answer my need to send messages on a channel without needing a server. This discussion at SO didn't help much. sending client to client messages without server interaction Can anyone suggest better ways ? You

Unsubscribed from channel, still on channel

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 07:20:10
I am using PubNub for an IOS app (IOS SDK 8.0). When I am trying to unsubscribe from a channel on "applicationDidEnterBackground" event, I get the following console output. It says the channel is unsubscribed, but when I check from admin console I am still on the channel. Can you give some advice on this ? Here is the line I am using in "applicationDidEnterBackground": PubNub.unsubscribeFromChannel(channelToReceive,{(list, err:PNError!)-> Void in if(err != nil){ println(err.localizedFailureReason) } else { println("Unsubscribed...") } }) Here is the PubNub console output after