-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a Tasker extension for invoking synchronization #231
Comments
Plugin would be cool, in the meantime, you can do this by sending an intent - see this comment. I've tried it now by creating a new action Action Package Class Target ( Enabling "Sync status" notification in Orgzly is useful in this case BTW. ) |
While the workaround using the intent worked for a couple of months, I now got:
Current setup:
I found a helpful explanation for the changed behavior with #315 (comment) which requires to switch from "startservice" to "start-foreground-service" starting with Android Oreo. Issue #315 further mentions solutions/workarounds for the app "Automate" but not for Tasker. However, https://github.com/claiire updated #8 (comment) where the process for Tasker was explained in the first place:
This works for me (again). |
Currently, sending a broadcast instead is recommended:
Support for sending |
Hi @nevenz, What do I have to enter as command? Because |
I should probably document this somewhere. |
Still an error. Are you sure about the Also an error when using |
Yeah, first two work for me. What's the error, the same? |
Well, I don't get it. Yesterday and up to now, all I got with
The task is associated with booting my phone (in the morning). Now, after an additional reboot, it worked: Orgzly synchronized the local files. However, when I manually start the task in Tasker, the error 255 persists. As long as it works when I boot my mobile, I'm fine with it. Let's see and watch how this turns out within the next days. Still: it's be awesome when Orgzly provides a Tasker add-in so that I can invoke sync as a 3rd party action or as an action plugin (don't know what the difference is). |
What seems to work for me is: Tasker -> Send Intent Action: This is probably what @nevenz mentioned before |
Thanks @Nelsonlittle for clarification - I did not get that before. I just checked again:
... does not work at my side.
... currently works on my side. |
What Target did you use? It needs to be Broadcast Receiver. |
Oh, thanks for clarification. I used the default one which was not Broadcast Receiver. However, changing it to Broadcast Receiver did not result in Orgzly syncing. |
Hmm, I'm not sure what could be the issue. It's hard to debug without seeing logs. If you have
when I run Tasker's task. |
I could not find intent or plugin in documentation--if intents work, shouldn't they be documented? Otherwise, it seems like intents may no longer be supported. Only just started using Tasker and Orgzly was my immediate thought to take advantage of this. Surprised this isn't a higher priority and curious what the plans are for automated syncing. At the moment I'm using the experimental auto-sync feature but it isn't capable of auto-syncing in the background. Sorry for noob question, but when should |
I agree sync intents should be documented. If someone wants to take a shot, /help page is at https://github.com/orgzly/documentation/blob/master/miscellaneous.org.
It's not, it's there for completeness. |
I'm trying to send a sync event to orgzly when a folder is modified but having trouble. I started trying to send a sync event and "sync..." popup with a delay for just a file and that doesn't seem to work either. I do have a this UX for when I switch to orgzly though and it limits the amount of conflicts I get drastically. The only difference from the orgzly "sync on resume/leave app" is that there is a popup that stays on screen for 1 second. |
@codygman: I'm not sure I understand the exact issue. Is it about initiating the sync, or sync conflict after that? |
These are the parameters to send syncservice command: |
It's about initiating the sync. |
Since the recent update the command has changed. Intent should be sent to |
Since the update I haven't been able to get Tasker to sync properly. I've been using the parameters of @ugurbolat and the updated intent of @sh-zam . Has anyone recently managed to get Tasker to send a sync command? If so could you write down the parameters used? |
Do we have any working setup avaible? |
Hi,
The well known Android tool Tasker offers the possibility to invoke external hooks of Android apps that provide such a "plugin" mechanism. (I am sure there is a specific term for this I don't know yet.)
It would solve many people's problems when Orglzy would come with such an Tasker plugin extension so that my Tasker is able to do a sync whenever it suits my requirements.
Background info:
In my case, the beta auto-sync function does not work for me because I do have huge Org-mode files. When I activate "sync whenever Orgzly is started", I have to wait a couple of minutes(!) before I could actually use Orglzy because during the sync, Orglzy behaves not normal. I can't search, I can't navigate.
Therefore, I'd prefer a sync in the morning, when I leave the house (loosing my WiFi network). I am sure that other people do have other preferences such as entering the company's WiFi, or every other hour or or or. Instead of implementing complex "when to sync" functionality into Orgzly, users could benefit from the awesome possibilities of Tasker.
The text was updated successfully, but these errors were encountered: