Sending push notifications to your bowser using web sockets & AngularJS - angularjs

I'm looking at implementing a web app push notifications using web sockets while working with AngularJS. I have researched many examples but have not been able to set up the push notification functionality so far. I have always been shown a message that the connection could not be made.
Could anyone point me in the right direction with a few examples I could refer to? That would be just great!
Thanks!
-Jalesh

It's tough to answer your question without more details. Check out the SignalR or Socket.IO libraries. You might also consider the Angular Socket IO Seed Project

Related

Sending USSD codes in React native

I'm trying to create an app with React Native to sending some USSD codes and Manage SMSs.
actually, I need to do two operations in my app:
USSD
SMS
I Googled it but there are not many resources about this topic, so If someone knows how to do it, I'll appreciate a lot your help, Thanks!
Firebase has a PhoneAuth module, which will send a verification code to the device via SMS.
You can find more info here : https://github.com/invertase/react-native-firebase-docs/blob/master/docs/auth/phone-auth.md
Also keep in mind that you have to add the Native Firebase module for React Native and not the web based one as it does not support Phone authentication.
This can be done using react-native-ussd library, for dialing and receiving USSD responses.
But currently only Android is supported.

Gmail API Tutorial only returns Labels

I've recently been trying to implement the Javascript quick-start guide on the official Google Dev page, which can be found here:
https://developers.google.com/gmail/api/quickstart/js
The example is meant to read your Gmail inbox and display the last 10 emails on your html page. I've gone through the example but after I grant permissions in my web browser, I only see a list of the "labels" present in my inbox with no emails/email content. I have created a new custom label in my Gmail inbox and this new label is view-able on my html page, which to me suggests that my connection to the Gmail API is fine.
However, I have not used Python like the example suggests. My html file is currently being hosted on 000WebHost so I figured I don't need to use Python. The reason I came to this conclusion is because the tutorial explains that Python is used to host a web server, as I'm using 000WebHost I think I don't need to host this web server.
This could be my issue if I've misunderstood what Python is really needed for here?
Other than that, I'm wondering if there are any other glaringly obvious issues to someone experienced with the gmail API?
Any advice would be appreciated.

Sending Push Notifications to Firebase Users in AngularJS app (no server code)

I have an AngularJS app with no server code. I created a form in which I'd like to be able to type a message and send as a push notification to all Firebase users using our mobile app. I've looked at Firebase Cloud Messaging and services such as OneSignal, however, both strongly advise against sending push notifications via client for security reasons.
Has anyone been able do something like this? Any suggestions are appreciated. I'm not attached to any method besides the ones that work well and securely.
Thank you.

Lightweight HTTP streaming solution needed?

I'm developing a web based backend to an embedded system to which we have implemented the code for the servers get requests (all built in c). I need a lightweight solution to stream an array of data values to populate a graph built using the canvas tag. Im looking at the comet pattern and potentially the iframe solution.
However Im not sure how to implement this with out a full web server running? Im fairly new to web technologies and any help or pointing me in a direction would be much appreciated!
Thanks
Matt
As #Joe suggested in a comment, have a look at web sockets. Here's a few useful links to get you started.
Websockets 101
socket.io, client and server implementation
libwebsockets – HTML5 Websocket server library in C
Websocket test suite

IM service using Google App Engine

I want to implement a web-based IM service on the lines Meebo. Might sound ambitious but that adds to the fun of it.
My research suggests XMPP would be a good protocol for the IM since it can talk to proprietary protocols as well. Am I right? What else would I need to complete this?
Could Google App Engine(GAE) fit in to this project? Can GAE be used to create and host the whole service? That would simplify matters significantly.Also,GAE does support XMPP.
I know what I want to make, need to know the best way to make it.
Thanks!
Suvir
GAE has an XMPP API that lets your app send and receive XMPP messages. The real sticking point with making a real time chat app using only GAE is that you can't push updates to the client. So your client would have to continually poll the server to see if there were any new messages. One way around this is to operate a comet server outside of GAE to forward the pushes to the client.
wikipedia page on comet techniques
Google App Engine allows you to use stateless HTTP requests and XMPP, but not TCP sockets. Thus you're limited to any IM services which use the former.
For an example of using the XMPP service, see Using the XMPP service:
For our example app, we're going to
write the Amazing Crowd Guru. The
Amazing Crowd Guru is a veritable
oracle, who can answer any question
you might pose it over XMPP. Writing
an omniscient computer program is no
small task, but thanks to a little
behind-the-scenes trickery, we're
going to get our users to do all the
work of answering questions for us.

Resources