How I can get google calendar events and notifications on my watch widget? Couldn't find any resource on this subject.
How I can get google calendar events and notifications on my watch widget? Couldn't find any resource on this subject.
You can get notifications and calendar events from a paired Android or iOS phone via built-in notifications and calendar widgets/glances, if that's what you mean:
https://support.garmin.com/en-CA/?faq…
Understand this is a different environment where the Garmin doesn't interact directly with google, but the phone is in the middle as a proxy. If I recall, the change back in 2016 was for security reasons…
You can get notifications and calendar events from a paired Android or iOS phone via built-in notifications and calendar widgets/glances, if that's what you mean:
https://support.garmin.com/en-CA/?faq=TLeDN92ZU0AgN4df6HakwA
If you mean that you want to write your own calendar/notifications widget in Connect IQ, I guess you'd have to talk to the Google Calendar API using the CIQ Communications module.
I managed to write some code, but still it doesnt working.
Could something like this be related?
You didn't indicate if you were getting an error, etc.
I think it is no longer a case since, there is a quide on google calendar api for python, java, js and other languates with given code examples.
I got en error: extraneous input 'Communications' expecting {<EOF>, 'class', 'module', 'using', 'import', 'alias',
Understand this is a different environment where the Garmin doesn't interact directly with google, but the phone is in the middle as a proxy. If I recall, the change back in 2016 was for security reasons and proxies. I know of a google calendar widget that was removed at the time for this reason.
Search the bug reports and discussion forum for things like google keep/notes, gmail, calendar etc.
I got en error: extraneous input 'Communications' expecting {<EOF>, 'class', 'module', 'using', 'import', 'alias',
It refers to this line of code:Communications.registerForOAuthMessages(method(:onOAuthMessage));
That’s because you can’t write code outside of functions in Monkey C (other than declarations). It’s not like python or javascript in that sense.
Even if you put that code in a function, it’s not going to run on a device unless it’s part of a proper project. I don’t know what the rest of the code looks like, but in your case, you may want to create a new project using the command palette: “Monkey C: New Project” > Watch App or Widget. I assume you must have some project structure for the compiler to even get that far, but it’s not clear to me what it is, based on your post.
You can also look at some of the SDK samples (“Monkey C: Open Samples Folder”), such as the Comm sample.