I'm working on an app which allows users to confirm they attended a google calendar event. I'd like them to make the confirmation immediately after the end time of the event.
Will subscription to Google's event push notifications (https://developers.google.com/google-apps/calendar/v3/reference/events/watch) let me know when the event is over?
If not, what's the best way to solve the above problem?
Push notifications only let you know about changes on the calendar (someone moved the event, someone responded etc.). There are no push notifications at starts and ends of events.
You can still combine storing the events and watching the changes to them with having a cron job (or similar) to run your code when events end.
Related
I am using Mailchimp and Firebase to send automated emails.
I have installed the extension and it using Firebase Console, but for Contact Status option I chose 'Pending'.
The thing is, I dont want every user that creates an account to be subscribed to the audiance, I want it to be 'Subscribed' just if he subscribes to the newsletter (it should happen on a click event on a button). I have also set up an automated email in Mailchimp (that is triggered immediately after subscribed contacts join your audience).
Do you know how can I achieve this? I don't have any written code yet, because I don't know where to begin with this.
I would like to now if the following functionality is supported by google calendar api:
Does the functionality provided by "Push notifications" include new events or just existing ones. Here is a copy paste from the documentation that let me doubt that new event notifications are supported "The Google Calendar API provides push notifications that let you watch for changes to resources.". So does this only apply to already existing resources (events on my case).
Is there a way to limit the availability on the google calendar. By this I mean setting a general limit (i.e working hours for a company for example from 9am to 5pm). And putting the logic further, is there a way to add more constraints. For example after I receive a notification of a new event created (if this functionality is provided), I check the event's data in my web-hook and let google calendar know that this event shouldn't be considered as valid.
If these requirements are not provided already by google calendar API, I am open to any suggestions to accomplish this even if it takes more coding.
Just to make it clear. The context of these questions is when the user creates an event in their google calendar through google calendar web interface not through my application.
I am a React Native developer currently working on a vehicle tracking app.
We want to develop a feature that allows users to exit the app, but continually be updated in the form of notifications when the vehicle moves (on average every 60 seconds).
I have been tasked with coming up the best way of integrating this. Our app already has push notifications set up with Firebase and we do use this to push out generic messages to the app.
My thinking is as follows:
When a user begins tracking a vehicle, the app should subscribe to a Firebase topic identified as the vehicle's registration. On the server side, each time an update comes in for a vehicle, send out a Firebase notification to that vehicle registration's topic, and then any users tracking it will be updated. When a user returns to the app and presses 'Stop tracking', the app unsubscribes from the topic.
In theory I think this would work. The reason I'm posting is I'm not sure it's the most efficient way. Our server received updates for over 1,000 vehicles every minute.
Any help/ideas would be gratefully received!
I want to know when any user is connected to my slack workspace. I know that with presence_change event I can get that info, but passing the user ID.
What I want to achieve is to send an event to my app (right now using ngrok) when any user is connected (eg. it status changes from disconnected to connected)
EDIT:
Finally I discovered that if you listen that event without user_id, it will returns the ID of the user that triggered that event. If this help anyone.
I know you already answered you own question and it's kinda old now, but it could help others.
Here is what could be done:
create a slack app
enable event subscriptions for this app in order to call your application webhook each time the 'presence change' event happens
in you application code, call slack api to get more details about the user that triggered this event
I detailed how to do these steps in this blog post for a very similar use case, but for another slack event (bot events), if needed: https://blog.eleven-labs.com/en/en/replace-erp-by-slack-bot-with-dialogflow-and-symfony/
I've subscribed on google calendar push notifications (PN). Base synchronization processes using PN. I need to know if all events already loaded in calendar scope or not.
Is it possible to have a special marker in my request answer (request events for specified calendar based on subscribed channel information)?
If calendar has too much events, events will be loaded in few push notifications handling. I need marker for UI if calendar is synchronized completely. In my my usual logic I thought that calendar is already synchronized if first PN per calendar already handled. So I need notify my UI client with correct status (calendar_is_synchronnized, calendar_is_not_synchronnized) but I do not have any markers from google if the PN provides me load last events portion in specified calendar scope.
I haven't got elegant solution for my question. But I've solved issue with double call. The is no special API for this purpose, I've used algorithm:
after updating to sync token I try get all events for same calendar just to be able compare new nextSyncToken with current if it is the same.
if token is different if means the calendar sync is not completed yet.
If any better idea(s), you are welcome.