简体   繁体   中英

how to open the google calendar application programatically with flutter

I have tried opening the google calendar application by using the url_launcher plugin in flutter, the script is as below:

if (await canLaunch('https://calendar.google.com/calendar/r/month/2019/1/24')) {
  await launch('https://calendar.google.com/calendar/r/month/2019/1/24');
  } else {
  throw 'Could not launch URL';
}

in the code there was no error, but what happened was that I instead accessed google calendar through a browser not through the application.

why does that happen, is there another alternative?

Thanks.

i know its late to answer this but someone get help from this:-

https://calendar.google.com/calendar/u/0/r/eventedit?dates=20210226T033000/20210226T040000&ctz=Asia/Calcutta&location&text=Blawsome:+A+Crystal+Alchemy+Healing+Meditation&details=Parth+Pitroda

just change this based on your requirement :)

if you want to test this google event then just copy and hit this.

i found this reddit post with google app urls and this is working fine for me com.google.calendar://?action=create&title={{Title}}&description={{Description}}&location={{Location}}&add={{email,anotheremail}}&isallday={{0}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM