pubnub

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

空扰寡人 提交于 2019-11-30 02:59:17
问题 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 and disadvantages over Amazon SNS. 回答1: PubNub Real-Time Network and Amazon SNS Original Answer Sourced from Quora: What are the advantages and disadvantages of using PubNub over Amazon SNS? Both PubNub Real-Time Network and Amazon SNS use a Publish

How to get the number of unread messages PubNub

拥有回忆 提交于 2019-11-29 20:19:59
问题 Hey i'm using pubnub Services to add chat functionality to my Titanium App but i'm wondering if there is a way to get the number of unread messages. there is no info about this on api references What i tried to save the numbers of messages in history then reloading new history and calculate the difference but it's so stupid and complex solution any body know how to achieve this ? Thanks 回答1: Track Read/Unread Messages on PubNub Years back we promised we'd make it super easy method for

Convenient way to extract data from the MtGox/PubNub JSON API?

☆樱花仙子☆ 提交于 2019-11-29 17:02:33
I'm using the PubNub API with Java for pulling data from MtGox. When retrieving data, the API delivers it in form of a JSONObject , which represents a tree structure of JSON data. Trying to extract bits of information directly from a JSONObject produces ugly code with lots of calls to getJSONObject(String) , for which again exceptions might need to be handled. Therefor, I'm looking for a convenient way to extract information from the JSONObject responses. So far, I've come across the possibility to convert the JSONObject into a POJO and then access the POJO. For conversion, I found the

Would like to use PubNub to send real-time updates to the user's web browser

若如初见. 提交于 2019-11-29 15:20:15
问题 Looking in to using PubNub to send real-time updates to the user's web browser. I looked over their website and materials. It looks like they have a few different options. We would like to use it for sending real time updates to a web page that a user is looking at. The information is simple stuff like "You just received a message". We are not trying ti implement a chat program or anything like that. Is PubNub a good solution for this? If so, which version of the service should be be using?

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

二次信任 提交于 2019-11-29 09:27:53
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', '~> 1.3' end target 'myProjectTests' do end In my auto-generated bridging header I have the import for PubNub as: #import <PubNub/PubNub.h> And my AppDelegate.swift file: import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { var client:PubNub? func applicationDidFinishLaunching(aNotification: NSNotification) { let config =

PubNub publish message between two Private Channels

我是研究僧i 提交于 2019-11-28 16:15:18
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 confusing to understand myself. I have googled many times and searched all over stackoverflow. I didn't get any relevant suggestions or questions elsewhere, so I'm writing down my question here seeking your advice and expertise help. Pubnub says it's not a good thing to create more than two channels per client. So, in my application, I have a

pubnub presence detection of all the channels together without subscribing to any of them

久未见 提交于 2019-11-28 11:40:45
Using pubnub i know that its possible to find out the presence of another person subscribed on the same channel. My question is that, if I have a web app running, and I use pubnub in my app, is it possible for me on the server to maintain presence information of each user by using pubnub api's and without having to subscribe to any channel. For full details, see the knowledge base article, Can PubNub call my server via Webhooks when presence events occur? 来源: https://stackoverflow.com/questions/33853515/pubnub-presence-detection-of-all-the-channels-together-without-subscribing-to-an

How to use WebRTC + Pubnub Api for video chat client in Native android app

时间秒杀一切 提交于 2019-11-28 11:19:31
i am working on one android application with the functionality of p2p video chat just like Skype. while researching on google, i got some libraries but not getting anything for android native. i decided to go with WebRTC with the use of PubNub api. how can i create a video chat native android client with the use of there libraries? i found one code for native video chat client, https://github.com/pchab/AndroidRTC this demo application require url with IP:PORT so i have one confusion about that how the server will be? can anyone help me? as I understand you need some signaling server which

Android Play PCM byte array from Converted from Base64 String Slow Sounds

こ雲淡風輕ζ 提交于 2019-11-28 10:21:10
问题 As the very long title suggests, I'm having trouble playing the audio from a audio that I send over the network through PubNunb. What I do is I send the audio while recording from AudioRecord using this code: AudioConfig audioConfig = getValidSampleRates(AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT); buffer = new byte[audioConfig.getBufferSize()]; recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, audioConfig.getSampleSize(), AudioFormat.CHANNEL_IN_MONO, AUDIO_FORMAT,

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

白昼怎懂夜的黑 提交于 2019-11-28 02:55:12
问题 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', '~> 1.3' end target 'myProjectTests' do end In my auto-generated bridging header I have the import for PubNub as: #import <PubNub/PubNub.h> And my AppDelegate.swift file: import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate