How could the app send a message to the phone when certain mission fulfilled? - firebase-cloud-messaging

I can use FCM console to send messages to all users or certain users at a certain time.
Now I want the app send a message to specified users when their in-game energy is full. How to realize it with FCM? And can I know the messages' sends, opens, conversions?

Sending a message to a user can only be done from a trusted environment, such as the Firebase console, or a place where you can trust that the code running is yours (such as your development machine, a server that you control, or something like Cloud Functions/Cloud Run).
For examples of how to send a message by calling FCM's API, see the documentation on building send requests, and this sample use-case of notifying the user when something interesting happens using Cloud Functions.

Related

WhatsApp messaging webhook does not work in production mode

I am trying to create a connection between our WhatsApp Business account and our website where we gather all messages sent to our business on different channels (through our own app, text, WhatsApp, ...).
I've followed this tutorial (https://developers.facebook.com/docs/whatsapp/cloud-api/get-started) and have everything set up: our WhatsApp Business is working correctly, I've added a Meta App and I've set up the webhooks with a connection to my node.js backend.
When I click Test next to the "Messaging" webhook, I receive the message on my node.js backend and website. So I know this side is working as it should.
I've then used the Graph API to subscribe my Meta app to the messages with the business id of the WhatsApp with the correct permissions. When checking the subscribed apps with the {business_id}/subscribed_apps endpoint, I can see my Meta app. So I believe everything is set up correctly.
My Meta app is also set to "production".
However, when I try to send a message with my personal WhatsApp to my business WhatsApp, I receive nothing on the webhook.
I checked the logs on my server and nothing is being received, so I know it's not an issue in my node.js backend.
Is there something else I need to do to make this work? Does the Meta app need to be verified to use the webhook in production? If so, how can I do this? The guide for verification says I need a platform and login insctructions, but the Meta app is really only a webhook without an interface.
Thanks in advance.

How can I prevent duplicated output from incoming webhooks in Slack?

We have set up HealthChecks in Cloudflare that use Slack's webhooks for informing our teams in a Slack workspaces about changes of some server's health conditions.
Initially, this went fine, but then, time after time, the different Cloudflare notifications started to create double output in our respective workspaces.
Cloudflare's dev were able to proof that they only call the webhook api once per message, but nevertheless, they appear immediately twice, as if the same message would be duplicated and then sent to the channel.
And so the fact that deleting the notification on the Cloudflare- side and creating a new one did not change the phenomenon came to no surprise.
Deleting the webhook for the Slack workspace and creating a new one and assinging it to the notifications in Cloudflare helps, though. But only for a limited undetermined time.
Does anyone have experience with this phenomenon and can tell me why this is and/or how I can prevent the Cloudflare notifications from appearing twice each in our Slack workspaces?

Problem showing data from incoming webhook | Taiga --> Rocketchat

I'm trying to generate alerts based on notifications from Taiga project management software (when a user creates a project for example). These alerts will arrive to a specific Rocket.chat channel.
For this I am using the incoming Rocketchat webhooks: https://docs.rocket.chat/administrator-guides/integrations/
So I created the incoming webhook and entered the data into Taiga:
Configuring the webhook in Taiga
Once all this is done I check that the message arrives at the destination correctly:
Example of a notification message
Indeed, the message is received but it doesn't show any information. When a user history, an issue or any modification that leads to an alert is created, it is received in rocketchat but it doesn't show any information (empty message).
Payload sended by Taiga to Rocketchat
Does anyone know why he won't show me any information?
Thank you very much in advance
Greetings.
Do you really want to post notifications to a Rocket Chat channel, when a taiga user created a project in taiga? I would not know, how you can do that. But, as far as I can see, your screenshot shows the configuration of a generic webhook in a project after that project has been created. Therefore, I hope it is sufficient to post notifications from that project to your Rocket Chat channel. Here is my answer for this case:
I observed a similar behavior. Using the generic webhook, I could only trigger empty posts in my Rocket Chat channel by clicking on "test" for that webhook.
However, the Rocket Chat API seems to be compatible with the Slack API, cf. https://github.com/RocketChat/Rocket.Chat/issues/1728#issuecomment-166669379.
In contrast to the generic webhook, the Slack plugin for taiga (https://github.com/taigaio/taiga-contrib-slack) worked out of the box (https://tree.taiga.io/support/contrib-plugins/slack-integration/).
Only my browser gave me some hassle, because it cached the taiga webpage and after installing the Slack plugin a simple page reload was not enough to display the "Plugins" entry in the "Admin" menu of the project. "Shift+reload" did the job. But apart from that standard issue, everything worked.

Sending notification from Splunk to external application

Is it possible to send notifications from Splunk to external application?
The user scenario is that Splunk is used and set up already so the business applications are monitored properly. We have an application (let's call it ACME) that needs to receive alerts from Splunk (e.g. if OutOfMemoryException occurs in the log file of the business application then an alert has to be sent to the ACME application).
My question is how Splunk can notify (send the alert to) the ACME application that the error occured? Can Splunk call a REST service? Or via JMX?
Thank for the help!
Regards,
V.
Yes, it is possible. After creating the alert for the OutOfMemoryException, you can create a Webhook alert action that can POST to "ACME" REST API. Triggering scripts are also an option.

Does GCM support notifications over SMS

I'm working on a project that respond to users by sending SMS for their request.
Right now I use telerivet for forwarding the SMS to my back end.
I want to know whether I can use GCM to send SMS notification.
Just to add to what #Nilesh already said, you can actually check if a certain app would provide SMS services. Simply look into the uses-permissions in its manifest.
As you can see in the required components of the GCM manifest, it does not require SEND_SMS or RECEIVE_SMS permissions, which you would have needed to support sending or receiving SMS, respectively.