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

How can I send a picture about 100KB in size to a PubNub channel in iOS SDK?

What I was doing, converting the whole image to base64 string and sending it as a message. But message sending failed each time. I got maximum payload size is 32 KB for a single PubNub message here. If I compress the image and so that my message…
Sauvik Dolui
  • 5,520
  • 3
  • 34
  • 44
0
votes
1 answer

PubNub Chat: Which sorting channels based on which is most recently updated

I am using PubNub to create a Chat. Each chatroom is a PubNub channel. The challenge now is: how do I sort my channels such that channels with most recent posts should be on top. I can think on 2 possibilities: Server will listen to all channels,…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
0
votes
1 answer

Making android application using pubnub to send GPS information but app crashes and shows no errors

I am making an application that sends realtime messages through a pubnub server to users that are subscribed to the same channel. I have it working so that I can send strings from device to device, but now I want to send GPS information. The user…
KP123
  • 71
  • 9
0
votes
1 answer

How to publish special Char(",\) message to PubNub?

I 'm developing an android app. Integrating PubNub with our app for Push Notifications. I'm getting error while Publishing an message to PubNub using PubNub Api method called Publish. I'm getting error especially while publishing the below two…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
0
votes
0 answers

Pubnub PHP subscribe/publish

I have successfully uploaded sensor data from CC3200 to pubnub. Now I want to subscribe to that channel's data using PHP and store it in my local database. Where can I get the code for subscribing and publishing to the datastream using PHP? I tried…
Kani
  • 43
  • 8
0
votes
1 answer

Sending message with special chars to pubnub server throw php sdk

The problem: When I send message from php to pubnub: $msg = array("author"=>"MisterX","text"=>"Who's here?"); $pubnub = new Pubnub(PubNubPublishKey,PubNubSubscribeKey,PubNubSecretKey); $publish_result = $pubnub->publish('chat1',$msg); Clients…
Max Liashuk
  • 1,043
  • 7
  • 18
0
votes
1 answer

Need Help starting activity using broadcast reciever

I am working on a senior project in pubnub android api. The example application works with toasting when a message is received. However,I want to start another activity when a message is received. Basically, It is a home alarm system where the…
0
votes
0 answers

No push notifications on Android via PubNub/Parse

I am stumped here. A Phonegap/Mobile Dev newbie here. Looking for some advice. I have a phonegap app(with push plugin) developed for both Android and iOS. I was trying to test push notifications on Android. I have the following flow Device…
0
votes
1 answer

Getting error with PubNub PNLog

Hi I'm using PubNub api in my project. I'm getting Implicit declaration of function 'PNLog' is invalid in c99. I googled about this error, But I can't find solution. Here is my code: - (void)pubnubClient:(PubNub *)client error:(PNError *)error { …
Goutham
  • 181
  • 9
0
votes
1 answer

PubNub iOS - presenceHeartbeatInterval is not working as it should

I'm trying to detect network loss or non-graceful disconnects of a participant and then fire the timeout event after 30s from disconnectivity. I tried the following in viewDidLoad using two devices: PNConfiguration *config = [PNConfiguration…
mbrmj
  • 119
  • 10
0
votes
1 answer

pubnub realtime notification

I am working on a trading site which allows copy trading feature (that is, a trader copying me will get a trade copied into his account when I do a trade). Now when I do a trade, the trader who is copying me needs to get a realtime notification…
karthi
  • 889
  • 12
  • 24
0
votes
1 answer

Using pubnub in android

Has anyone succeeded in using pubnub examples for android? I am working a senior project that uses it for interacting with raspberry pi remotely. The demo project works find but replacing the pub/sub key with my own causes unknownhostExecption. I…
user3422517
  • 93
  • 2
  • 9
0
votes
1 answer

Trouble with Sending HTTP 1.1 GET request

I am trying to use PubNub to publish a message to a channel but I always get "Connection Failed!". I know the structure of a publish URL is the following: http://pubsub.pubnub.com/publish///0//0/%22%22 I…
lucidgold
  • 4,432
  • 5
  • 31
  • 51
0
votes
0 answers

Is there any way to limit the number of connected JS clients in PubNub conditionally to prevent bill shocks or attacks?

This is how the PubNub JS API is initialised: var PUBNUB_demo = PUBNUB.init({ subscribe_key: 'Your Subscribe Key Here' }); Obviously, I have to expose the subscribe key to the user since this is Javascript. PubNub bills on the number of connected…
jitin
  • 732
  • 8
  • 17
0
votes
0 answers

To implement GCM requires the Google Play APK needs to be installed will restrict the number of user to use our android app?

GCM features is added with the Google Services. While developing android application to use the GCM the device require to have Google APK installed. And I heard that some of the devices not having the Play Store APK or there is no support for GCM.…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55