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.
Related
I have created ios and android application and it works fine with push notification.
But in FCM dashboard, I cannot see Open count even though I have already opened lots of push notification messages in foreground and background modes.
Need to track open count so report page should show the Open count
I believe you have to go into Google Analytics (not FCM), find the event (notification_open) and mark it as a conversion.
https://support.google.com/analytics/answer/9234069
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.
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.
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.
In the Facebook Analytics document, it said the Push Notification could deep link to a certain page in the app, but I cannot find how to setup the deep link in the "Push Notification" campaign.
Does anyone how to set it up?
Thanks
Facebook Analytics supports two types of push campaign - standard push notifications and in-app notifications.
For standard push notifications, if you want to deep link you'll need to manually configure the push payload by enabling 'Attach JSON Data' (see here for iOS docs on payload). This existing stackoverflow answer explains how to deep-link in push - Deep Linking iOS Push Notifications. Basically you include some meta data that you handle in your app yourself and take the appropriate actions. See screenshot below with productIdToOpen parameter.
For in-app notifications it's even easier. Assuming you've already setup a scheme for your app to handle deep-links from the web, you can just configure one of the buttons to use that scheme. See the screenshot below.