List channel notifications currently setup on a watched bucket in google cloud storage - google-cloud-storage

Does anyone know how you list the notifications currently setup on a watched bucket in google cloud storage?
There must be some way to get hold of the channel and resource identifier post creation of the channel.

There is currently no way to list the notification channels on a bucket.
If you didn't store the channel and resource identifiers at creation time, you can find them attached to notification messages being delivered to your app, in the request headers.

Related

Firebase Cloud Massaging - Push Notifications Server Keys Handle

I want to add push notification to my app with Firebase Cloud Messaging but I don't know the right way to set this up.
My App Logic is: I have multiple customers (companies) who host their own server's own database and their own users. Some of the employees of the different customers will download the app to receive push notifications from their company's server which implements the firebase admin SDK to send push notifications.
How is it possible to handle all customers from one FCB or is it even possible?
So the customer can just enter the created „server key/topic or project id / UUID“ to his server configuration and can receive the push notification.
They should also not be allowed to see any data from other customers or send messages to them.
At the end of the day, I need to handle all customer
Using the Admin SDK allows one to send messages, it does not allow you to receive messages. So from that perspective it sounds like the approach suits your needs.
The customers using the Admin SDK will also get full administrative access to your entire Firebase project though. So if you use any other Firebase products aside from Cloud Messaging, that would be a security risk.

Make a listener to know when exciting item is being updated in dynamodb

I have a DynamoDb table with about configuration details of my ios app.
In my app I retrieve all data in configuration table only when user launch app and store that data in my app for use it for necessary times.
Admin can changed configuration table manually.
I want to create listener. The listener's purpose is to detect when a table item is being updated and change the data which are my app is stored in user's launching time.
Enable Dynamo streams on your table, then create a Lambda to process the stream.
The Lambda could place a notification on an SNS topic for your application. SNS will use
Amazon Device Messaging (ADM)
Apple Push Notification Service (APNS) for both iOS and Mac OS X
Baidu Cloud Push (Baidu)
Firebase Cloud Messaging (FCM)
Microsoft Push Notification Service for Windows Phone (MPNS)
Windows Push Notification Services (WNS)
To push the notification to your users device.

Google Assistant expose incoming webhook

Is it possible to create a webhook on the google assistant that I can http post data to for it to broadcast?
I want to make a real simple application where I can send tweets from specific users to the assistant to read out loud.
That is a "yes, but" question. The Actions platform allows you to send notifications to users whom you have previously queried for permission and who have consented. When they pull down the notification and tap on it, your Action runs a special intent whose name was specified at the time you ask for permission. Details are here:
https://developers.google.com/actions/assistant/updates/notifications

Grafana Alerts with Graphs

I'm trying out Grafana's alert and notificaiton feature, and it looks really awesome.
Sample slack notification.
However there is a big problem. It needs to be configured with S3, which makes the images publicly accessible to anybody. Is there a way to make this feature secure for companies that does not want their images publicly accessible?
http://docs.grafana.org/guides/whats-new-in-v4/
Notifications
Alerting would not be very useful if there was no way to send notifications when rules trigger and change state.
You can setup notifications of different types. We currently have Slack, PagerDuty, Email and Webhook with more in the pipe that will be added during beta period.
The notifications can then be added to your alert rules.
If you have configured an external image store in the grafana.ini config file (s3 and webdav options available)
you can get very rich notifications with an image of the graph and the metric values all included in the notification.
Depends on what notifications you are using and how much security you want.
Posting the images to a webdav server you can pretty much make all those security decisions yourself.
Email notifications Grafana will fallback to attaching those images in the email message if the external images store is not configured.

Real-time notifications with Firebase & Ionic

NOTE : Don't say it's possible duplicate of this, Read through.
Think of a simple TASK Management application which can have n number of users. Say User A can create a task & assign it to User B. I want to show a notification to User B.
I am using Firebase as BAAS and following code-snippet prints on console only when there is a task assigned to User B. To simplfy, Users collection in Firebase has a node called tasksAssignedToThisUser array and callback function will be watching tasksAssignedToThisUser location. Whenever a new task gets added to that array, callback function gets executed. Here is the code snippet:
var rootRef = firebase.database().ref();
rootRef.child('users').child(loggedInUserID).child('tasksAssignedToThisUser')
.on('child_added', function (newMessageSnapshot) {
console.log('Someone assigned a task to this user.');
console.log(newMessageSnapshot.val);
});
Everything works fine until here.
What I have understood by reading Firebase docs & other post's on SO about Push notifications or Firebase Cloud Messaging is:
Firebase Notifications lets users easily send messages to reengage and
retain users, foster app growth, and support marketing campaigns.
Before you can write client apps that use Firebase Cloud Messaging,
you must have an app server that meets the following criteria:
...
You'll need to decide which FCM connection server protocol(s) you want
to use to enable your app server to interact with FCM connection
servers. Note that if you want to use upstream messaging from your
client applications, you must use XMPP. For a more detailed discussion
of this, see Choosing an FCM Connection Server Protocol.
This is definitely not what I want and maintaining a server for sending push notifications makes sense when bulk messages needs to be pushed to large number of devices. So I didn't name my question as Real Time Push Notifications.
I see a function being executed, which meets my use-case and I just want app to display a notification to the user in his mobile system tray on that callback function execution.
I am using Ionic 1 for developing app, completely new to Firebase and Ionic too. If there is a simple serverless approach that Firebase itself provides which can suffice my requirement, then I would be more than happy to hear about it.