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
75
votes
1 answer

Pusher vs Pubnub vs open source Socket.io / SignalR.net / Faye / jWebSocket

I'm evaluating Pusher and PubNub at the moment to enable bi-directional realtime communications between my primarily web clients and my servers. Both look impressive, with Pusher's docs seeming to be better, and PubNub's scalability and reliability…
Matthew O'Riordan
  • 7,981
  • 4
  • 45
  • 59
41
votes
5 answers

Passing variables from Flask to JavaScript

I looked at similar forums but was not able to get any of the solutions to work. I am trying to pass variables from Flask to my JavaScript file. These values then will be used for PubNub from my JavaScript file. Here is part of my Python code:…
pang
  • 443
  • 1
  • 4
  • 6
19
votes
1 answer

Socket.io with PubNub...why?

I see that PubNub say they support Socket.io - http://blog.pubnub.com/node-js-supercharged-by-pubnub/#socket.io-github Can someone explain to me what is going on here because I thought PubNub serves the same purpose as Socket.io in that they are…
sonicboom
  • 4,928
  • 10
  • 42
  • 60
18
votes
1 answer

PubNub publish message between two Private Channels

I'm using Php and MySQL. I have just signup for pubnub push API and successfully made my first push notification using the PHP Push API provided by Pubnub. I'm new into this Realtime technology so I have come up with some questions which I find…
RT Roger
  • 181
  • 1
  • 1
  • 4
16
votes
2 answers

PubNub long polling vs sockets - mobile battery life

I recently began using PubNub in my iOS app, and am very happy with it. However, I have been looking at the other options available, such as Pusher and Realtime.co, which use Websockets. PubNub, on the other hand, uses long polling. I have done my…
user1032657
  • 2,451
  • 6
  • 28
  • 38
15
votes
2 answers

Android Service for PubNub

I have implemented PubNub subscribe and publish code. My code is working fine on activity. But now I want to execute that code in background with the help of service class. I have created my class extending the IntentService. And I am subscribing to…
12
votes
1 answer

Why am I getting an undeclared type 'PubNub' compiler error with Swift Cocoa App and bridging header?

I am starting a new Cocoa Swift Project that is incorporating the PubNub SDK via CocoaPods with the following Podfile: target 'myProject' do source 'https://github.com/CocoaPods/Specs.git' use_frameworks! pod 'PubNub', '~>4.0' pod 'Alamofire', '~>…
Jim Hankins
  • 1,055
  • 1
  • 11
  • 27
10
votes
1 answer

Call platformBrowserDynamic().bootstrapModule(@NgModule) returns ASSERTION ERROR Type passed in is not NgModuleType, it does not have 'ɵmod' property

I have an issue with "platformBrowserDynamic().bootstrapModule(app.app_module)" call, the error message is "Uncaught Error: ASSERTION ERROR: Type passed in is not NgModuleType, it does not have 'ɵmod' property". However I can see this property…
Anatoli
  • 119
  • 1
  • 1
  • 6
10
votes
1 answer

One APNS certificate for multiple iOS apps

we are currently developing iOS applications for different clients. We have one template application and different derived applications (slightly different layout, but the functionality is nearly the same). We've chosen to host our backend on heroku…
pmuens
  • 788
  • 6
  • 16
9
votes
1 answer

What is advantage and disadvantage of using pubnub over Amazon Simple Notification Service (sns)?

For my team project, I need to propose which one should we use PubNub or Amazon Simple Notification Service (SNS). I find PubNub very simple to implement and use but I could not find any thing concrete in Internet which says about there advantages…
8
votes
1 answer

Best practices for pubnub on android

I'm using pubnub as a publish/subscribe channel between an android app and a server. Currently I'm thinking of how I will implement this. I'm using the provided library for android (https://github.com/pubnub/pubnub-api/tree/master/android) but I…
Quentin
  • 671
  • 2
  • 8
  • 20
8
votes
3 answers

How to have per-thread but reusable objects (PubNub) in a Spring app?

I'm connecting to PubNub in a Spring Boot application. From the documentation, it's ok to re-use PubNub objects but it's better to have one per thread. What's the appropriate method to store and retrieve one object per thread in Spring Boot?
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
8
votes
2 answers

pubnub, how to identify the sender?

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…
luc2
  • 547
  • 1
  • 4
  • 11
8
votes
3 answers

How to use PubNub publish callback to find out which message to re-publish in case of an error

The publish callback in PubNub API returns with a message like below - [1,"Sent","13729639808030640"] But this does not give any indication as to for which message this callback is for. In case of publish error, the first value in the return array…
user1935449
  • 307
  • 1
  • 2
  • 10
8
votes
3 answers

Is combining Parse.com API with Pubnub a viable option for large scale Real-Time Messaging and obtaining the combined toolset?

Essentially combining Parse with Pubnub, Pusher or similar, Instead of building a custom backend from scratch. I'll be working on a real-time messaging system with facebook login and file storage/sharing. In theory I could use a combination of Parse…
Andres Canella
  • 3,706
  • 1
  • 35
  • 47
1
2 3
73 74