yamankatby / firebase-extensions

A collection of Firebase Extensions designed to help you build better apps faster.
Apache License 2.0
33 stars 1 forks source link

Planning `analytics-slack-notifier`? extension #27

Closed yamankatby closed 1 year ago

yamankatby commented 1 year ago

Basically, whenever an event (specified by the user) is logged in Firebase Analytics (Google Analytics for Firebase) the extension will be triggered to send a message (notification) to the slack channel (specified by the user).

The trigger function:

functions.analytics.event('in_app_purchase').onLog((event) => {
  // Send the notification message to the user-specified channel in Slack. 
});

Note The example from https://firebase.google.com/docs/analytics/extend-with-functions

Here's an example of using slack API in cloud functions, which might be helpful 👉 https://github.com/firebase/functions-samples/tree/main/github-to-slack

What next?

yamankatby commented 1 year ago

Closing for now, as I lost interest in it. It can be reopened later!