pubnub

Pubnub Push Notification not working for cross platform mobile app

大兔子大兔子 提交于 2019-12-06 07:01:25
问题 We are developing a cordova based android application which has chat capability. We are sending test chat messages from a server and we received the messages just fine when the app is in foreground. We would like to get a notification about chat message when app is in background. However we are not getting any Push Notification about chat message. The steps we followed are mentioned below. Kindly let us know the mistake we're making. We have referred this link to get notification on device

How to include 3rd party JavaScript libraries in a reusable gwt library/widget?

梦想与她 提交于 2019-12-06 06:23:09
问题 I'm trying to get my feet wet with GWT to see if migrating will work out. I usually try the more difficult parts first to make sure I can finish the project. The most difficult part of my project(s) is referencing 3rd party JS libs. In this example I'm trying to use PubNub as much of our platform uses it. What I'd like to do is create a reusable object that can be used in other GWT projects in need of PubNub. I've got a simple little test running successfully (ie, I've got the basics of JNSI

How to use Xirsys Hosting in Pubnub Android Example?

社会主义新天地 提交于 2019-12-05 22:46:19
https://github.com/GleasonK/android-webrtc-api I am a student in Korea. I am working on my school project. I am using example from website above. I'm curious about how to connect my Xirsys hosting server and above example project. I read all about descriptions about Pubnub and Xirsys. When I make a call between my phones on this example. I can make a call and receive call, but they don't get connected. This is how it looks like. 来源: https://stackoverflow.com/questions/37835110/how-to-use-xirsys-hosting-in-pubnub-android-example

React-native pubnub WebRTC Video Chat [closed]

梦想与她 提交于 2019-12-05 19:05:11
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 8 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? Craig Conover Bundling PubNub SDK in Your React-Native Apps Not the answer you might be looking for but here are some links that should show you how to bundle PubNub JS SDK in your react-native

pubnub and head.js

ぃ、小莉子 提交于 2019-12-05 18:54:16
Has anyone managed to integrate pubnub and head.js properly? Pubnub expect me to put their script at the bottom of the page with a <div> tag just before it. This ensures that the ` tag is completely loaded by the time the javascript is called last. The thing is, the rest of my application and pubnub are loaded through head.js so it keeps happening that the JS files are loaded before the pubnub subscribe/publish key and its subscribing/publishing to 'demo' rather than my own area of pubnub... Is there any example anywhere or way for me to just screw off this <div> element and pass in the

pubnub, how to identify the sender?

回眸只為那壹抹淺笑 提交于 2019-12-05 06:13:36
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> <script> var pubnub = PUBNUB.init({ publish_key: 'demo', subscribe_key: 'demo' }); pubnub.subscribe({ channel

Handling Messages from PubNub History as a “Global Variable”

眉间皱痕 提交于 2019-12-04 19:47:47
I'm trying to figure out the smartest, most reliable way to make my retrieved PubNub history accessible for several view controllers. As i see there are multiple ways to do that, but after a bunch of questions and articles i've read i can't decide which solution would be the best. Actually i think dependency injection would be the right idea in my case, but i'm not sure because i saw different solutions in the sample PubNub apps and overall i never heard about that so i would avoid it, if it's possible. The possible ways: 1. Using AppDelegate It could be the easiest way, but a lot of

How to create single jar file from github tree?

谁都会走 提交于 2019-12-04 14:56:47
For example, the Java API for pubnub is at https://github.com/pubnub/pubnub-api/tree/master/java I want to create a single jar file from all the java files in the subfolders. What is the most straight-forward way to do that? Since Pubnub provided no build file, you need to create a new java project in your favourite IDE and then import the downloaded java code. Next, you can compile and package the project into jar file using the IDE. Note: it is also possible to create a build script yourself but it is more complicated. Since you want a single jar file, then the easiest way to do this is to

How to Implement Pubnub Presence feature in Ruby

折月煮酒 提交于 2019-12-04 14:43:52
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. Stephen Blum 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 coding aspect we can talk about what PubNub Presence actually is. PubNub Presence Introduction

PubNub best practice: How to manage private rooms?

淺唱寂寞╮ 提交于 2019-12-04 14:31:00
问题 I'm learning pubnub and I read their documentation but I just can't find how to manage a multi room chat box. By default, a channel can be listened by anyone. Subscribing to it and publishing on it is easy. What I want is to have a main public room (so far so good) but anyone should also be able to talk privately to anyone else without the risk of being read by other users. These dynamic rooms would be tabbed and the user should be able to go from one to another. Another requirement would be