App crashes after setting Recipe Directory
As stated in the title, the app crashes after I set the recipe directory and click on the back arrow.
Also, when I try to open the app again, it crashes instead of opening.
As directory path I've set
Any idea why this is happening?
Thanks for creating the app!
NC Cookbook App 0.30.0
Did you give the permission to access the storage?
You can see the permission in the device settings / apps / Nextcloud Cookbook / Permissions.
The app needs storage access.
Second idea: Have you synchronized the folder Recipes (in Nextcloud App showing a green arrow)? The files must be on the local storage.
I can look, if I handle errors wrong. A crash is the wrong behaviour to errors in the app.
Yes, the app has permisssion to access the storage and the Recipes folder is synchronized.
When I try to open the app it crashes after half a second or so, in the header bar it says "fragment_reci..." and the body stays blank. May that helps!
I try to find the bug, but before tomorrow evening I don't have the time.
Have you technical knowledge about the adb tool?
With the messages in adb logcat ((eg. Exceptions) it would be easier to find.
Great, thank you! Take your time.
I never really did something with adb but I managed to use adb logcat.
This is the output, when I try to start the app:
Thats great. I see the problem, its the json parsing.
There is minimum one recipe with a publish date and that is a problem for the parser.
Now I can fix this, thanks a lot for the adb logcat.
If its possible to edit the json files: Remove the blank and the time from the field "datePublished", then the app works.
This workaround is only short needed, because the fix is planned for the weekend.
Deleting a branch is permanent. It CANNOT be undone. Continue?