lol - i am with you. I really hate text messaging and get mad when someone sends me a message. But, such is the world we live in today. Here is the ironic part: We want everything right now - but yet get stuck waiting on a response from a text message. Wouldnt it be logical to just dial the number, say what you have to say, and get an instant response.
Unfortunately - since it is the way of society - if we want to survive, we gotta give our users what they want. They want Push notifications, so I want to give it to them. These are the things that can set you apart from everyone else.
Sorry my explanation of sending Push messages was complicated - but it is how I got mine to work. So, for the sake of working on my communication skills, I will try to explain again.
First - you must get a Google Cloud Messaging API from https://cloud.google.com/console
After you have gotten your API and Project, go to the Administration section of the Chat+ (Rocket.Chat).
In the Administration section, go to the Push Section - 5th from the bottom
Expand the Certificates and Keys Section.
GCM API key is your Google Cloud Messaging API key
GCM Project Number is your project number for your API
GO to the bottom and click save
In the top section, I have Enable = True
Enable Gateway = True
Gateway = https://rocket.chat
Production = True
Save if needed
Go to The General Section - on the left and click Restart the Server
Open SSH shell and restart the chat server
clear browser cache
Looking at it - it really isnt that bad. It took me a few days to figure it out, though. I had no clue how Push notifications worked so had to research and ask questions. But eventually, I figured it out. I just hope this information helps others who also want to enable push notifications. Now I am trying to see how to set it up for push notifications from the website.
I have brainstormed with a friend of mine and really thought it over, and the simplest thing would be to make use of the Rocket.Chat server - since push notifications are working there. So, with that - create a channel called subscriptions, or whatever you want. Then, piggyback onto the existing subscription functions within dolphin and - using webhook or restful api (not sure which yet because still have to figure out how they work) - send a message to the subscription room in the chat server. When a subscription notification is sent to a person - it is also sent to the subscription room with an @ (EX: @cfowler) of your username.