@amo said in Unable to setup a subscription because of timeouts:
Thank you very much for your help!
Yes, with the APK you sent to me, it is working fine!
Perfect. Will be included in the next version.
I noticed that the app takes much longer to retrieve the calendar than curl on my desktop. Where curl takes between 15 and 20 seconds, the app takes around 30 seconds, which is probably why it ran into timeouts a lot.
I think this is because ICSx⁵ takes a few seconds to process the file. So the 20 seconds are probably the same, but a few seconds are needed for processing before ICSx⁵ updates the “last synced” field.
2: I think this is what the server admin meant when I got told that caching has been activated for me.
Are you sure? Caching sounds like “file is cached (and will be served from cache immediately) for some time, but as soon as the file is expired, it will be calculated at the next call (and take 20 secs again)”.
First of all, thanks for this great app which I’m using since more than a year now and I’ve never had any complaints about it.
However, I am missing an import/export calendar sources feature, e.g when I want to add the same calendar sources to several phones for my family. Would be great if such a functionality could be added, also I would be happy to help in the development if help is needed.
 The 9890 post talks about events that “don’t have reminders and you can’t control the source”. All events on the upstream calendar I’m syncing originally have notification settings. So the problem doesn’t seem quite similar. Actually if I could get the original calendar notifications, that’s nice, because I have to set them in its web interface, to get reminders in the computer.
 The ICS calendar I sync comes from ms-office-365 (it can publish to ICS or HTML), sorry that I forgot to mention that on the additional information I included (not sure if office-365 has known issues). As it’s the calendar for the office I’m not sure if I can share it (will ask), though it’s my personal calendar there. I thought that was a common misbehavior though.
Sorry, but I am not Android developer. Effort to set up dev environment, learn, and code ‘a small app’ is prohibitively high for me as of now.
I mean if coding the ‘triggering sync via intent’ feature is easy - why is it not in ICSDroid already? And if it is hard to code - then why asking every user who needs it to re-implement it individually by himself?
Opening ICS droid app and manually trigger sync every time my script uploads new version of ICS file is plain unfeasible!
Setting ICS droid to autosync every 15 minutes would mean:
battery waste on unnecessary syncs, especially through the night, when nothing happens and yet ICS Droid would waste battery power on re-syncing my rather big ICS file.
still no assurance that my Android calendar is up to date. When script uploads new ICS file it would take ICS Droid scheduled sync up to 15 minutes to start picking it up.
As alternative to developing small Android app to make another Android app to work I am presently looking into
to create offline Android calendar
and then this
to sync ICS file into the offline calendar
At least it has ‘load calendar’ mentioned as intent in manifest: https://github.com/PrivacyApps/calendar-import-export/blob/185af643e2c4c73bca56c6183382ed3f54cb3b72/CalendarImportExport/src/main/AndroidManifest.xml
so the hope is here.
Any experience with this route?
Any advice regarding other GPL-compatible toolchains to load ICS files to Android offline calendar by script via ADB?
I’ve tested with curl and I got:
So, at least 30 seconds, I guess?
As said, rather make it configurable. This is a real-world system…
@rfc2822 said in Unable to add ical sources persistently:
I don’t know, because as far as I know, there is no documentation for Privacy Guard. Or is there something like that?
So far, I couldn’y find any myself. But I’ll ask around.
I did read a post on Reddit by a member of the LineageOS team, stating that Privacy Guard is based on AppOpsManager. Not sure if that helps or sheds any light.
Would be interesting whether other apps suffer from from the same problem.
On my phone it’s only ICSDroid that fails to behave properly.
I’m also keeping in mind that it could be something on my phone. I tried adding an ICSDroid account from the accounts menu. That brings me into the app, allowing me to add a calendar resource, but no ICSDroid account will show when that process is finished. That’s odd, but I guess something outside the app.
@gui1ty said in Unable to add ical sources persistently:
Or do I need to disable Privacy Guard completely?
That, I found out, is not achieved easily. Once enabled during initial phone setup, it can only be turned off per app.
@saren-t said in "Couldn't parse iCalendar source" on validated iCal source:
But also Lightning can read the same source without any problem.
Yes, Lightning does not use the ical4j library, which is quite strict about this. I wonder what the original intention of the standard is, but I guess its purpose is that servers can detect the timestamp of entries without having to calculate time zones.