Google calendar API notification - google-calendar-api

I'm making a web application which uses the Google calendar API. People can create events and see them in the application. When an user changes an event all the attendees of that event get an email about the change. For sending the email I use:
EventsResource.UpdateRequest updateRequest = new EventsResource.UpdateRequest(service, eventToUpdate, CalendarId, eventToUpdate.Id)
{
SendNotifications = true,
};
Now Google calendar monitors the event and when something changes a notification is send. But I can never find any documentation about when the notification is triggered. For as far as I now an email is send when the user changes the following: Summary and description.
Does anybody know all the elements that trigger the notification?

AFAIK, it is any changes in your resources that you currently under watch. Based from the documentation:
Currently, the Google Calendar API supports notifications for changes to the Acl, CalendarList, Events, and Settings resources.
It is safe to say that any changes from the about will trigger the application to send a notification.
Hope this helps.

Related

how fIrebase automatically tracking event in mobile application? for example screen_view etc

how firebase capture event automatically in mobile application? for example when we open a new screen in mobile app, in firebase screen_view event will get trigger. so i want to know how firebase achieve this. is there any code available for this.
If automatic screen tracking is enabled, Google Analytics for Firebase can use activity lifecycle events to detect when a new activity is displayed. This triggers a screen_view event.

Google calendar API notification for reminder

I'm creating a web app in which every user could have multiple calendars.
What I'm looking for is when the user creates a new Event and set up reminders I want when reminder occurs to get a push notification on the server side.
Google calendar API provides push notification on Event change but I can't find how to achieve my use case.
Thanks in advance for the answers.

Not Seeing "Opened" Firebase Notification Stats

I'm manually handling firebase notifications by overriding the onHandle intent of the FirebaseMessagingService.
And using the intent I generate a notification.
Is there a way to manually report the notification opened to the Firebase at all because I'm not getting opened statistics reported back to the firebase console.
As above, even when letting firebase notifications get handled per normal, these open notifications are not being reported either.
Thanks!
The stats shown in the notifications panel of the Firebase console are only for messages sent from that notification panel. There is currently no way to trigger the stats for messages sent through the Firebase Cloud Messaging API directly.
Update: since late 2018 the Firebase now also reports messages sent through called to the Firebase Cloud Messaging API.
According to https://firebase.google.com/docs/cloud-messaging/understand-delivery only "Sends" work for data-only messages:
Sends — The data message or notification message has been enqueued for delivery or has been successfully passed to a third-party service like APNs for delivery. See lifetime of a message for more information.
Impressions (available only for notification messages on Android devices) — The display notification has been displayed on the device.
Opens — The user opened the notification message.
For those curious to know my workaround at this time.
We run push campaigns.
For each campaign we created a distinct, reusable event.
We register the event "campaign_received" and "campaign_opened"
When a message is received, we trigger the event.
When the notification is opened, we trigger the event.
Then, under each event, we just select the event, and file their stats per day, week, month, etc.
One needs to select the event to get to the event dashboard area, since the event list view shows the total amount of events sent and or received.
For bespoke notifications the 500 event limit might be reached quite quickly, so be sure to bundle your notifications into reusable event categories if possible.

Google Calendar API, Push notifications : Determine the source

I would like to make a bidirectional sync between my google calendar and my website.
I've set up push notifications, everything is working well.
But there is one strange issue:
I can't determine the source of the notification.
When I delete an event in calendar, website will get a notification from google, it can check with synctoken what changed, then i can delete corresponding availability slot on my website too.
But, if i delete an availability slot on my website, PHP will delete the corresponding event in google calendar (with API), then google calendar will send a push notification to my website, and the website will delete the newly added event from the database.
The point is:
The interaction what is fired the push notification where comes from, what is its source.
I hoped i will get different information in push notification, but those are very same.

[OneSignal][Unity] Create ID after login

I am running into a small issue in my unity app after adding the OneSignal plugin. I can receive push notifications if I send them from the web server and everything is fast. However, my concern is that OneSignal assigns one ID to the device not to the user.
My question is: there is any way to create an ID after my login?
The only problem in the actual state is if the user has multiple accounts or if a friend connects from that device. Both users would have the same ID and therefore both would receive the same notifications.
Thanks.
I would recommend using OneSignal.SendTag in your app to tag the user with your userId when they login. Then when they logout call OneSiganl.DeleteTag to remove it.
This will allow you to send a notification with the tags field on the OneSignal create notification REST API POST call.

Resources