Grocy-SwiftUI icon indicating copy to clipboard operation
Grocy-SwiftUI copied to clipboard

iOS 26.1 not working

Open dotnjet opened this issue 2 months ago • 18 comments

Dear Georg

First of all, thank you for taking the time and program the mobile APP for Grocy. I was forced to update to iOS 26.1 last night, and this morning I noticed that the app is not able to consume any articles any longer. The button at the top right is not reacting. When going to the manual page and consuming the goods manual, it works with scanning and booking. Is there a way to help you? I could take it in testflight etc. Have seen that you committed to changes ;-)

Have a great sunday

dotnjet avatar Nov 09 '25 15:11 dotnjet

I am trying to do the last polish and then release an update. It should be mostly some bug fixing and other small changes. There is no time frame yet, but it should be days rather than weeks.

supergeorg avatar Nov 10 '25 19:11 supergeorg

I am trying to do the last polish and then release an update. It should be mostly some bug fixing and other small changes. There is no time frame yet, but it should be days rather than weeks.

Very much appreciated! Let me know if I can help you with anything

dotnjet avatar Nov 10 '25 20:11 dotnjet

Ok, the 3.0 release should be out now.

supergeorg avatar Dec 06 '25 10:12 supergeorg

What great news Georg! Well done and thank you very much for your effort! First quick look is fabulous

dotnjet avatar Dec 06 '25 10:12 dotnjet

Hello Georg, finally the new version is online. Yay!!! Thank you for your time. But: The external barcode search plugin is not working...image

Caleb610 avatar Dec 07 '25 07:12 Caleb610

Can you check if the plugin is configured? In the Grocy config.php, it should read like this: Setting('STOCK_BARCODE_LOOKUP_PLUGIN', 'OpenFoodFactsBarcodeLookupPlugin');

If this is configured, please check that either the Web interface for this works (may throw errors when not using https) or the endpoint /stock/barcodes/external-lookup/{barcode} gives a result for a barcode.

supergeorg avatar Dec 07 '25 09:12 supergeorg

Ich schreib einfach in deutsch. Die Eintragung auf dem Server ist vorhanden. Ich hab die alte Appversion getestet. Dort funktioniert es. Der Server ist in der aktuellsten Version. Für den 2. Code bin ich nicht genug in der Materie drin. Es läuft in nem Docker auf nem Unraid Server...

Caleb610 avatar Dec 07 '25 16:12 Caleb610

Version 2 nutzt nicht das Feature vom Server, sondern eine eigene Implementierung. Das wurde jetzt zu dem Standard von Grocy geändert, d.h. die App fragt bei Grocy, welches wiederum beim Server fragt.

Um das zu testen, kann man auf die Website vom Server gehen, hinten /api dran schreiben, den Endpoint aufklappen, Try It drücken, den Barcode eingeben und dann bestätigen. Das nutzt die App als Funktion auch.

supergeorg avatar Dec 07 '25 16:12 supergeorg

Thanks @Caleb610 for bringing this topic up. Danke für den Hinweis. I am facing the same problem. I changed the settings like @supergeorg explained: Setting('STOCK_BARCODE_LOOKUP_PLUGIN', 'OpenFoodFactsBarcodeLookupPlugin');

I have the same error. On the web version I could add that exact product without problems. It took the info and picture from openfoodfacts. @Caleb610 : funktioniert bei dir die Funktion auf der Web Version? Einfach auf Einkauf gehen und dort den Barcode manuell eingaben oder scannen.

Thanks

dotnjet avatar Dec 07 '25 21:12 dotnjet

Testes it on my Server (thanks for the hints) and it works. But not in the App image

Caleb610 avatar Dec 07 '25 22:12 Caleb610

This seems to be an error parsing the result of the external lookup, which worked in the demo server but not on a "real" server (it returned strings instead of ints). The updated code should accept both.

supergeorg avatar Dec 08 '25 00:12 supergeorg

image

Caleb610 avatar Dec 08 '25 17:12 Caleb610

@supergeorg : I just added two more plugins. A new one for OpenBeautyFacts and a combination of OpenFoodFacts and OpenBeautyFacts. Since I am also tracking non-food items ;-) https://github.com/dotnjet/grocy/blob/Adding_Plugins_BeautyFacts_and_combined_version/plugins/OpenFoodAndBeautyFactsBarcodeLookupPlugin.php https://github.com/dotnjet/grocy/blob/Adding_Plugins_BeautyFacts_and_combined_version/plugins/OpenBeautyFactsBarcodeLookupPlugin.php

dotnjet avatar Dec 08 '25 19:12 dotnjet

This seems to be an error parsing the result of the external lookup, which worked in the demo server but not on a "real" server (it returned strings instead of ints). The updated code should accept both.

Updated code in the plugin code or in your App code? If in your iOS APP, when will the new version in your eyes be available?

dotnjet avatar Dec 08 '25 20:12 dotnjet

The update is in AppStore Review now. I hope this is now quite fast (3.0 took some days, since some bugs which only happened on the Reviewers devices occurred 😅)

supergeorg avatar Dec 08 '25 21:12 supergeorg

Unfortunately there is still an error. Here the log:

Dec 11, 2025 at 8:49:51 PM: Server check successful. Logging into Grocy Server 4.5.0 with app version 3.0.1. Dec 11, 2025 at 8:49:56 PM: Failed to save data: errorString(description: "fwrite(): Argument #2 ($data) must be of type string, false given")

When I added the new product on my laptop via the web version, I could add it without problems.

After the issue on my iPhone App I also got an error in the product master: image

dotnjet avatar Dec 11 '25 21:12 dotnjet

Once again, thanks for your work. Let me know if I can help you.

dotnjet avatar Dec 11 '25 21:12 dotnjet

Its working... will test more

Caleb610 avatar Dec 13 '25 10:12 Caleb610