pubnub

Can we receive pubnub notifications by email?

巧了我就是萌 提交于 2019-12-10 17:32:41
问题 We are using NodeJS to publish messages. Is it possible for subscribers to receive the messages by email? 回答1: PubNub Notifications by Email in Python Geremy's response also is your solution for Ruby and I'm attaching a Python solution too. The best way to achieve sending an email today is to pair PubNub with a mail service provider such as SendGrid and you would do it like this in Python. You can do this with Node.JS too npm install sendgrid . Here follows Python example: Here is a usage

Android - Create a background service to receive PubNub messages

。_饼干妹妹 提交于 2019-12-10 11:06:48
问题 I am using PubNub API to get real time messages. I have implemented code to subscribe to my channel and receive ongoing messages. I just want these messages to receive in background even if my application is not open. I have learned about services and broadcast receiver in android but I am not understanding the how to use this with PubNub. Is there any proper way to achieve this? PubNub Subscribe Code public static final String GLOBAL_CHANNEL = "NAME_OF_MY_CHANNEL"; public void subscribe() {

Android client to client messaging without my own server for GCM

家住魔仙堡 提交于 2019-12-10 10:37:03
问题 I am doing a prototype that involves messaging between clients. What I want to do - from MyApp on device1, able to send message to MyApp on device2. Device2 should receive this and show a notification. I don't have my own application server to push notifications from GCM to GCM clients.Is this possible ? How to do it ? What I investigated - PubNub, which has a trial license that seems to answer my need to send messages on a channel without needing a server. This discussion at SO didn't help

Add pubnub to angular2 cli project

≡放荡痞女 提交于 2019-12-10 10:31:40
问题 I want to add PubNub to an angular2-cli project. The problem is with the linking; however, I followed the instructions of the pubnub-angular2 package on npmjs.com. When I try to load it in the browser, the error message is this: EXCEPTION: PubNub is not in global scope. Ensure that pubnub.js v4 library is included before the angular adapter In the app.module.ts , I have the following: import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import

Handling Messages from PubNub History as a “Global Variable”

我的未来我决定 提交于 2019-12-09 23:18:16
问题 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

Android chat application guidance using Parse and PubNub

為{幸葍}努か 提交于 2019-12-09 12:53:55
问题 I am trying to create a simple Android chat app where a user can sign up and have a friends list to start conversations. I am planning on using Parse for the database backend and PubNub for the actual chat channels. I do not have much experience with this kind of an App. I have an idea of what needs to be done but just wanted an opinion from someone who has some experience. Here is the model that I am planning to implement: The User profile info collected on sign up page will be stored in a

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

微笑、不失礼 提交于 2019-12-08 13:11:46
问题 How to get total travelled distance and route from google map directions API to show user travelled path like Uber. 回答1: You can use the Google Maps Distance Matrix API that provides travel distance and time for a matrix of origins and destinations. It returns information based on the recommended route between start and end points, as calculated by the Google Maps API, and consists of rows containing duration and distance values for each pair. A Google Maps Distance Matrix API request takes

How to receive missed messages on resuming connection lost in pubnub?

蹲街弑〆低调 提交于 2019-12-08 06:58:34
问题 I tried https://github.com/pubnub/java/tree/master/android#connection-durability-reconnecting--resuming-when-a-connection-is-lost-or-changed but still I'm not able to figure out how to use setResumeOnReconnect() . I'm running android-service and added following code snippet inside onCreate() of the service. pubnubBroadcastReceiver =new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { ConnectivityManager connectivityManager = (ConnectivityManager)context

Pubnub Presence feature in Python (GAE)

╄→гoц情女王★ 提交于 2019-12-08 06:35:55
问题 PubNub, its really awesome for real-time communication. as per as documention given by pubnub team, am done with subscribe and publish instance, its working fine. Now am wondering how get a particular user already/presence with PubNub channels in Python(GAE) apps, but I didn't find a complete guide to how to implement this feature in both server and client side. NOTE: am using here Python Google App Engine & Javascript. 回答1: PubNub presence is a way to follow up on joins/leaves in a channel,

Ruby on Rails PubNub subscribe as separate process

社会主义新天地 提交于 2019-12-08 01:35:56
问题 I was consider using PubNub on my website. In turn, I can subscribe to channels with PubNub. However, I need to find a way to run a script that subscribes to channels with PubNub. For example, according to their documentation http://www.pubnub.com/blog/ruby-push-api , it states "To listen for published messages, call the subscribe function. It is important to note: the subscribe function is blocking. You will want to run this function in a separate process." Then PubNub provides the following