webOS Nation Forums

webOS Nation Forums (/)
-   webOS Patches (http://forums.webosnation.com/webos-patches/)
-   -   Google Calendar Sync Behaviors patch (http://forums.webosnation.com/webos-patches/286029-google-calendar-sync-behaviors-patch.html)

frantid 06/27/2011 08:08 AM

Google Calendar Sync Behaviors patch
 
10 Attachment(s)
[COLOR="Red"]If you already use CalDav synergy, then you don't need these patches. But if you want to use native google, this new set of patches allow the use of Oauth2 for calendar and contacts. It also updates the calendar sync to use the newer v3 api. These patches are large and modify the system framework. No other patches for sync can be installed with it. You must follow the directions or you could end up needing the doctor.[/COLOR]

The patches also add the advanced sync requirements functions. They are now configured in the accounts app and not via Tweaks or calendar preferences. [U][URL="http://forums.webosnation.com/webos-patches/273919-preference-guide-metaviews-ubercalendar-uc-patch.html#post2842113"]You need to update UberCalendar patch to fix an issue with event alarms. This is required for alarms to display correctly.[/URL][/U]

Steps to install.

1.[HL] Turn off the calendar option for google accounts in the accounts app.[/HL] You can leave contacts on, if you want,

2. [HL]After turning off the calendars, go to the calendar app and force a "sync now". [/HL] This helps get rid off old events. [HL] Go through the calendar and remove any left over events. [/HL] On the touchpad with UberCalendar, you can open one of the undefined events and there is a button that will allow you to remove all bad events for that calendar. You can also clean up using Impostah.

3. If you will use Internalz, transfer the patches over to your device.

4. [HL]Plug in or put your device on the touchstone. [/HL] This ensures the device does not go to sleep while patching. If you are using Quick Install, having it connected to the computer is enough to keep it awake.

5. [HL] Put the device in airplane mode. [/HL] This ensures that no syncs are running while patching. It helps you have a good patch install.

6. [COLOR="Red"] Remove all old sync patches for google. [/COLOR] Yes, even google contacts gsync-1.2.patch unknown error on login. The new patch includes the fixes from that one. You will still be able to get your email. If you have the CalDav foundations patch for the Veers or 2.1, you must remove it. Once you install the new patch, CalDav will still work. [COLOR="Red"]RESTART Luna when done.[/COLOR] If you had a bad uninstall, you must fix it before going any further.

7. You did restart Luna, still in airplane mode, good results on removing the patches. If yes to all three, then install the new patch. RESTART Luna again.

8. If everything installed okay, then turn off airplane mode. If you had errors on install, you must fix it. You can turn off airplane mode, but don't turn on the calendars. [HL]If you use a language other than English, you need to install a modified template "com.palm.google.json" file for your language. The files are different for touchpads and phones. After placing the file, you will need to restart Luna again.[/HL] The file goes in:

[CODE]/user/palm/public/accounts/com.palm.google/resources/ + "language abbreviation" + /

i.e. for German "de"

/user/palm/public/accounts/com.palm.google/resources/de/

[/CODE]

9. If everything went well, we need to get the Oauth2 credentials. Go to the accounts app, choose change login for one of your google accounts. You need to get your Oauth2 token AND validate the account by signing in using username and password just like the unpatched method.

[COLOR="Red"]**** If you don't see the Oauth2 views, and you had a good install. Restart your device, before trying anything else. If the files were in use or a sync was taking place while patching, the updated files won't take effect until you restart the device.*****[/COLOR]

10. Once you have gotten the token [HL](AND SAVED IT required on the touchpad only, phones autosave)[/HL] You can go back and enable the calendar for that account. If it does not sync right away or events don't show up, try a "sync now". If that doesn't work try a restart before anything else.

[COLOR="Red"]*** If you are able to get a token, but still get unknown error on login --- your device probably had a service in use while patching. This means the device won't see the newly patched file until the service restarts. This will prevent the sync or login. To fix please restart your device. I don't recommend stopping the service via command line as you may end up with a database errors***[/COLOR]

Notes: *Tokens are good for 1 hour. Then it will be refreshed by the sync services. You can manually refresh, or revoke the token from the accounts app.
*You don't have to belong or join google+ Oauth2 just uses google+ to check authentication.

If you need a template file for another language -- PM me.

Patch files linked below:
[URL="http://forums.webosnation.com/webos-patches/286029-google-calendar-sync-behaviors-patch.html#post3005312"]phone versions[/URL]

[URL="http://forums.webosnation.com/webos-patches/286029-google-calendar-sync-behaviors-patch.html#post3005328"]touchpad version[/URL]

MikeElmendorf 06/27/2011 08:25 AM

Now if I only had 2.1! Thanks for all your efforts.

Dreamcatcher 06/27/2011 10:32 AM

Thanks a lot, hope this will help with some calendar issues I've been having lately (recurring events not appearing etc.).

Dreamcatcher 06/27/2011 10:47 AM

Do I need to install this patch if I already have UC? And does the patch get deleted when I install a newer version of UC?

Thanks again

frantid 06/27/2011 10:50 AM

5 Attachment(s)
[COLOR="Red"]For best results: Put the phone on a touchstone or usb to keep it from going to sleep and turn on airplane mode while updating the patches. You must uninstall, restart Luna, install new, restart Luna to update the patches. If it does not sync correctly, try restarting your device.[/COLOR]

[B]11 Feb 2015 [/B] Updated to handle errors in mixed environments, i.e. using several methods to manage the calendar -- calDav, google api, android. Added logic for sync throttling by google.

phone versions.

frantid 06/27/2011 11:08 AM

1 Attachment(s)
[COLOR="Red"]For best results: Put the phone on a touchstone or usb to keep it from going to sleep and turn on airplane mode while updating the patches. You must uninstall, restart Luna, install new, restart Luna to update the patches. If it does not sync correctly, try restarting your device.
[/COLOR]
11 Feb 2015 Updated to handle errors in mixed environments, i.e. using several methods to manage the calendar -- calDav, google api, android. Added logic for sync throttling by google.


touchpad

Dreamcatcher 06/27/2011 11:48 AM

Thanks! Will do and let you know if problems persist.

[i]-- Sent from my Palm Pre using [url=http://developer.palm.com/appredirect/?packageid=com.newnessdevelopments.forums]Forums[/url][/i]

frantid 07/09/2011 09:18 AM

Updated test versions attached. This fixes some event attendee problems and provides setup for the latest changes in UberCalendar. [URL="http://forums.precentral.net/3024632-post2876.html"]See UC thread for details.[/URL]

The patches also include various fixes as listed in the first post of this thread.
[B]Edit: 20 Aug[/B] - removed version for 201. Updated versions for 2.1

[B]Edit: 6 Aug[/B] - updated version for 201.

[B]Edit: 23 July[/B] - the google_sync_behavior21_2-2 will work for the EU Veer 2.1.1 Added a patch for VEER 2.1.2

[COLOR="Red"]Please remember to uninstall AND restart luna, before upgrading a local patch! Then install it and restart luna again. You can not upgrade a Preware version to a local version without uninstalling first.[/COLOR]

marysm 07/11/2011 11:49 AM

Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help!

frantid 07/11/2011 05:08 PM

[QUOTE=marysm;3026855]Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help![/QUOTE]

Hi, I'll try to help.
What time frame are these appointments, next week, next month?

What calendar patches do you have installed?

Do you also have the UC version that is in Preware installed?

Please install Lumberjack from Preware, set the log retrieval for custom. Then type in "calendar" and push retrieve log. Then post the logs here.

If you comfortable with testing, you can install the version of this patch for 2.1 in the post just above yours in this thread. Also in that post is a link to a test version of the UberCalendar patch, install that as well. I run both of these on My Pre2 so you don't have to worry about stability. I put some logging in that may help. However, to run those you have to uninstall both UC and the sync behavior patch AND restart Luna before installing the test patches.

frantid 07/11/2011 05:30 PM

[QUOTE=marysm;3026855]Hi all. I am desperate to get my work's Google calendar syncing properly. Is this patch supposed to fix the issue where nothing syncs after the initial account setup sync? If so, it is not working for me. I still am not seeing new events created on the Pre2 (2.1) showing on Google nor do new items there show up on the phone. In addition, none of my reminders seem to have transferred. Help![/QUOTE]

If you try the test versions and are going to post your logs, please make sure you look through the logs and remove any email addresses in the log before posting.

marysm 07/13/2011 10:09 AM

Thanks, frantid. I gave up and switched to accessing my Google domains calendar via Exchange. I thought that had fixed it, but after a couple of days, things stopped syncing. I broke down again this AM and turned off the option to use Exchange for my calendar (which would leave me with no access to Google calendar). I waited a bit after the phone said all (calendar) data would be deleted and went back to Calendar expecting an empty view. NO! Again, I have a ton of "undefined" entries. This is the second time this has happened! Now I have to delete all that crap by hand again. How the hell do they call this a business OS?!?

OK, venting done, for now. After I delete all the junk leftover from removing the calendar link, I'll follow your steps and report back.

Thanks.

Edit: Since the Exchange version of my Google account was only there for calendar, I went back and removed the account altogether. That seems to have removed all the "undefined" entries!! So, when the phone says it is deleting all data, it really means, removing the link to the account and leaving the junk there. Ah, now I can go to my next meeting a bit less stressed. Will report back later.

marysm 07/13/2011 01:13 PM

One additional question... Which account type should I try during these tests-- straight Google or Google via Exchange?

BTW, should it matter that under my Exchange (for calendar only) attempt, I also had a straight Google account installed, but it was set to NOT be used for calendar.

frantid 07/13/2011 01:24 PM

I believe it will conflict because the database references will be the same google id.

The patches only affect the imap google(normal) processes.

marysm 07/14/2011 04:55 PM

[QUOTE=frantid;3029796]I believe it will conflict because the database references will be the same google id...[/QUOTE]
Hum... Exchange doesn't do chat so, I was keeping the straight google account for that. I did switch the email to exchange. The chat may not matter if I move to a different chat client.

Haven't done any of the suggested testing yet. Will try this weekend.

Thanks.

frantid 08/20/2011 06:15 AM

Updated and submitted to Preware.

frantid 08/30/2011 11:55 AM

Updated first post with touchpad version. Please read the post on how to install for local patch tweaks support. I will submit to Preware after enough testers report no issues.

Thanks to all those testers out there. ;)

frantid 08/31/2011 10:46 AM

Any issues with the touchpad 3.0.2 version? I noticed a few downloads. Can you please let me know how well it installed and if it works for you?

I'd like to submit to preware.

Thanks again for testing.

zenkinz 08/31/2011 11:49 AM

I dont see this patch in prepare (I am using touchpad 3.02). Is there a new testing fees I should add?

frantid 08/31/2011 01:44 PM

[QUOTE=zenkinz;3120764]I dont see this patch in prepare (I am using touchpad 3.02). Is there a new testing fees I should add?[/QUOTE]

No it's in the first post, I am waiting to hear back from testers before I post it to Preware.


All times are GMT -5. The time now is 09:19 PM.



Content Relevant URLs by vBSEO 3.6.0