Questions tagged [pubnub]

PubNub offers a publish/subscribe API for realtime data stream messaging for IoT, mobile/web, chat, and games with modern platform supported with an SDK.

www.pubnub.com

PubNub is a secure global Data Stream Network (DSN) and easy to use API that enables our customers to build, scale, and manage real-time functionality for their applications and IoT devices. With over 70 SDKs for every platform, guaranteed 250ms worldwide data transfer times, and scalability for hundreds of millions of devices, PubNub’s unique infrastructure gives you the ability to easily build and operate world-class real-time applications and IoT devices.

PubNub utilizes a Publish/Subscribe model for realtime data streaming and device signaling and supports all of the capabilities of WebSockets, Socket.IO, SignalIR, WebRTC Data Channel and other streaming protocols. With PubNub, developers can dramatically reduce the cost, complexity and time to deliver realtime experiences.

Useful Links

1104 questions
0
votes
1 answer

PubNub EON not rendering History

Unable to figure out why the EON spline chart is not loading history upon load (Yes, the Storage and Playback features are enabled) . The chart will render data properly as data comes in and no errors are visible in the console. Any clues as to…
Derek
  • 33
  • 4
0
votes
0 answers

Swift 2: PubNub receive handler

I have working PubNub Swift 2.0 code for receiving messages as follows. func receive(handler: (message: Message) -> ()) { pubNub.observationCenter.removeMessageReceiveObserver(self) pubNub.observationCenter.addMessageReceiveObserver(self,…
RobertyBob
  • 803
  • 1
  • 8
  • 20
0
votes
0 answers

Return users list from pubnub to an array list

This is my code. ArrayList usr = new ArrayList<>(); mypubnub.hereNow() .channels(Collections.singletonList(channel_name)) .includeUUIDs(true) .async(new PNCallback() { @Override …
giannisj5
  • 119
  • 1
  • 11
0
votes
1 answer

Pubnub: cannot get state object with presence event

I am trying to get data (state) object in the presence event as documented in Pubnub Documentation. Here's my code :- // Subscribe to messages channel Pubnub.subscribe({ channel: $scope.channel, triggerEvents:…
0
votes
1 answer

How to get total travelled distance and route from google map directions api like uber

How to get total travelled distance and route from google map directions API to show user travelled path like Uber.
0
votes
4 answers

ImportError: cannot import name pubnub

i have problem with pubhub module in python 2.7.6. I've installed by sudo pip install pubnub Output: >>> import pubnub Traceback (most recent call last): File "", line 1, in File "pubnub.py", line 3, in from pubnub…
0
votes
1 answer

basic usage of node , pubnub ,socket.io not working

I am trying to use socket.io with pubnub. I am not able to understand how to get data on client(index.html) which I have published on the server.Below is the sample code. my server.js var pubnub = require("pubnub") var p = pubnub.init({ …
jena84
  • 311
  • 1
  • 3
  • 20
0
votes
1 answer

PubNub publish not working

I am trying to integrate PubNub with KaaIoT platform where the publish API is throwing the following error/exception: Following is the code showing a sample message that I am trying to publish: PNConfiguration pnConfiguration = new…
Ajit Kumar
  • 627
  • 5
  • 7
0
votes
1 answer

How to use WebRTC + Pubnub Api for video chat client in Native ios8 app swift 2.0

I am working on a iOS 8 application with the functionality of p2p video chat just like Skype. while researching on google, I got some libraries but not getting anything for iOS 8 native. I decided to go with WebRTC with the use of PubNub API. How…
T.Parsa
  • 55
  • 1
  • 5
0
votes
1 answer

Rendering PubNub / Eon Chart LiveStream using Multiple JSON Data Objects per Every PubNub Message

PubNub's Eon Charts looks for one JSON Object data set per each individual PubNub message. See Eon-Chart pubnub-c3.js on git hub. To get a sense of what sort of data might come in you can see some of PubNub's examples. The PubNub Sensor Network…
Necevil
  • 2,802
  • 5
  • 25
  • 42
0
votes
1 answer

How to delay viewDidLoad() until response from server?

I would like to update my model object before my main view controller loads. Currently, the code for updating the views are running before my model receives the data from the server, so the main view displays the wrong data. I am using PubNub.…
0
votes
0 answers

How to update textview with value from subsequent Notification?

I'm working on Sony Watch now to implement simple notification whenever user clicks a button from my application(I'm doing this using pub nub). So I'm currently facing an issue of not being able to update the textView with the value from a…
0
votes
2 answers

How to send messges via PubNub even if the App is Killed

My App is a Tracking App, I use to implement the tracking functionality PubNub like this tutorial : PubNub Tracking But my problem is, when the user kill the app, the PubNub stop sending messages. So my question: is there anyway to still sending…
Rawan
  • 1,589
  • 4
  • 23
  • 47
0
votes
1 answer

Pubnub does not show the output through subscribe written in php

I have tried executing the PubNub publish/subscribe code from the different browsers. First I have executed pubnub_subscribe.php file, then pubnub_publish.php. pubnub_publish.php code shows the following output. I have already register with PubNub.…
Jaymesh
  • 11
  • 4
0
votes
0 answers

Sending push notification from android to ios via pubnub

I'am trying to send push notification with pubnub from android app to ios app. I'am using folowing json as push notificatio message, it works for android but doesn't work for ios: { "pn_gcm": { "message": "test message", …
user3584307
  • 106
  • 9