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.
Related
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 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.
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.
I have developed an android application with the Parse push notification service and I can send notification from the Parse website.
How can I send push notifications through my own website using ASP.net? Is there any way?
I checked the Parse documentation but i get confused, I would really appreciate it if someone would help me.
Thanks
I ran into similar confusion. I wasn't even sure how to properly setup the user so that I could send a push notification directly to them. Then I found the following post:
Channels and Targeted Push Notifications
Note the last item under the Channels heading:
Most apps might find it useful to have a channel for each user so that
they can send messages to a user across all their devices and have
users follow others in the app.
So, now I know that I should subscribe each user to a channel that uniquely identifies the user (e.g., the 'bobsmith#foo.org' channel).
After I have subscribed the user to their channel, I can call Parse's REST API via my ASP.NET application. See Sending Pushes in the Parse REST API Developers Guide.
For an ASP.NET/C# example of how to submit a push notification check out this answer.
I am integrating Google calendar data with an external app and need to do some operations when an event starts. Is it possible to get Google calendar to send a http call when an event starts?
You can try Google Apps Script. That should be able to let you send a server call or email.