Skip to content
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

The receiver for GET_NOTE and SEARCH intents seems to return dictionaries with consecutive alphabetic keys instead of descriptive names, when called from Automate #234

Open
decadent opened this issue Apr 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@decadent
Copy link

✓ I have searched for existing issues that may be the same as or related to mine.

This is more a question for @NatKarmios regarding the workings of the ExternalAccessReceiver. I'm doing GET_NOTE or SEARCH calls with Automate, and getting the result in a weird format:

{"a":true,"b":{"a":15371,"b":"Note title","c":"","d":[],"e":[],"f":"The Notebook","g":null,"h":null,"i":null,"j":null,"k":null,"l":1539652080000,"m":{"CREATED":"[2018-10-16 Tue 04:08]"}}}

It's the right note, but the field names for both the result and the note are just one-letter in alphabetic order, while the docs specify descriptive names (which I would certainly prefer).

As I understand it, the result data is sent as a string, so I'd expect that Automate doesn't do anything to it. Do the field names originate in the Orgzly receiver like this? Would it be possible to change them to descriptive names?

I'll try to also test in Tasker and with am start if I ever figure out how to do this kind of intents with them. I also looked in the code for a bit, but I'm not an Android programmer, so it's rather thick for me—meanwhile perhaps you already know the answer as to whether it should happen and why it could.

Device: Pixel 3a
Android Version: 12
Orgzly Revived Version: 1.8.19
Repository type(s) used: local files

@decadent decadent added the bug Something isn't working label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant