I'm developing an application where the user can add a reminder in their local calendar from our app.
The user selects the date and time, and books a service. After the booking, I want to provide them with a button that takes them to the calendar app and creates an event filled with given date, time and title.
I've tried to use the device_calendar plugin for this but the documentation is not clear to me.
Image - This is a screenshot of a demo app with the time, date and service name. When user clicks on the calendar button, it opens their device's calendar with a new event on this date and time with the service name as title.
Code/Resources I've tried till now:
Example on device_calendar github. (Not easy to understand) Link
This article. (Lots of errors and outdated dependencies) Link
I think that for your purpose you should use this plugin: add_2_calendar.
It basically triggers an intent towards calendar apps.
device_calendar provides methods to interact with calendars without exiting from app.
I hope this helped you! 😁
Related
I am currently working on an app where I want to add an event to the outlook calendar when making a booking. I have searched around and I was not able to find any proper guide to help me.
My question is: how can I integrate the outlook calendar into my flutter app.
You can use MS Graph for getting this implemented, see Create event for more information. Use this API to create a new event in a calendar. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. You may find the sample code in the Create calendar event using Microsoft Graph Client thread.
I have created an agent in DialogFlow that interacts with the user giving her the ability to check for details like demographic from a back-end database. I have achieved this using Fulfillment/Webhook calls and have successfully parsed/returned different types of Responses to the user to play with. I have tested this on both an Android device and the Google Actions Simulator.
Now, what I want to achieve is to give user the ability to "Set a Reminder" on a platform like Google Calendar or similar through my App. By default, Google Assistant does this by simply telling it to "remind me..." and Google creates a reminder in the calendar. But as soon as I invoke my app, the Assistant is out of scope so using the "remind me" command won't work. I want to use the Google Calendar for example to create a reminder through my agent so that the user is notified at the due time.
I understand that when the user invokes an App in Google Assistant, she is using her Google credentials so I guess if I want to use the App to create a reminder, I should have the option. I have had a look at the Calendar API but I am not sure if I should proceed that way. Is there a better way of achieving this?
Please note, I want to use a reminder service that is available to the user without subscribing to a third-party service.
The Calendar API is the way to go. Details here.
In those docs you'll see reference to the access token, which you can get by using the helper intent askForSignIn (example of use here in one of Google's example projects).
Hope this helps!
So for all those who are facing the same issue, here is what I did:
First created an account on https://auth0.com
Followed this guide to configure the necessary settings to link to Google Assistant (ignored the Jovo part)
Used Auth0 guide to configure and link to my Google project credentials (ignored the Admins SDK Service part)
Now when I run my Google Actions App on the device, a button "Link [App Name] to Google" showed up. Clicking on that "signed me in".
Parsed the response in my webhook to grab originalRequest.data.user.accessToken
This is the token mentioned in #lukedavis answer. The next step was to use the token to execute a call to the Calendar API. Upon trying that, I am facing a different problem which I am trying to find the solution for. But the above should assist those who wish get the accessToken.
I am attempting to build a simple prototype in GWT using the google calendar where users can see the calendar entries of all the other users in their department and make new entries onto the calendar. I am looking for some good resources to help get me started.
Check out
1)http://code.google.com/p/gwt-cal/
2)http://code.google.com/p/ftr-gwt-library/
I want to show an alert in my app so that user can either make comments or give stars to the app on iTunes.
Is it possible. ?
You should try the Appirater plugin for you application. This gives you the possibility to:
Show a popup to rate your app after a predetermined number of sessions
Create a button or link to send the user to the App Store page to rate the app.
Integrating the plugin is really easy, and fully documented on the GitHub website.
Let me know if this helps!
P.S. I made a localized version of the plugin through this pull request
Many calendaring programs (Outlook, iCal) support vCal for downloading event information and adding it to your calendar. Others can use the vCalendar microformat to extract data. Neither of these, however, seems to be supported on the iPhone.
Is there any functional equivalent that will allow me to list event information on a page and have a website visitor add the event to her calendar with a single click? Since Mobile Safari makes it super-easy to extract emails and phone numbers from web pages, it seems odd that there's no similar functionality for events.
As of iOS 5, if you create a http link to an .ics file, Mobile Safari will offer to open it up in Calendar.
Update:
Note that this is a very old answer. Since iOS 5 you can use EKEventStore to access calendar events and Mobile Safari will open .ics files in Calendar.
Original Answer
It's not possible, there is no API for the calendar on the iPhone, sadly. You can build an app that registers for the ical URL scheme, but you still won't be able to save the calendar entries to the calendar backend since there is no API (like e.g. for the AddressBook).
One resolution could be (from iPhone OS 3.0):
estabilish a calendar server (webdav or caldav protocol), create accounts, events...
subscribe your iPhone Calendar to one of the accounts (eg. Settings->Mail, Contacts, Calendars->Add Account…->Other, Add CalDAV Account -> server, account details)
your web based app posts calendar entries into the adequate calendar server account
Alternatively use Google Calendar to post entries from your website, which can be easily synched to iPhone Calendar using CalDAV.
Another usefull link: http://blog.fosketts.net/2009/06/17/subscribe-internet-calendars-iphone-30/
You can create your own ics file and host it on a public url or use free/paid services such https://calex.link or others.