Do i run functions in c# or google cloud platform?
I'm looking to send a notification to the user when something changes in my firebase realtime database. I've set up FCM in my Xamarin.Android application. I'm pretty new to Firebase though so I'm a bit confused as to how Database Triggers work. (https://firebase.google.com/docs/functions/database-events)
I'm confused as to whether the functionality for this, ie "OnCreate" or "OnWrite" is written on the Google Cloud Platform or my C# code?
To put it another way, do i either:
- Write the code in TypeScript to detect changes in my database then push a notification through FCM, or
- Write the code in C# to detect changes, like this: How to get notification in xamarin forms on firebase data change?