farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
59 stars 38 forks source link

Blank White Screen #429

Closed CFWHISPERER closed 3 years ago

CFWHISPERER commented 3 years ago

Today on running the field kit on an Android phone I was asked to update to the latest version; after doing so I am now getting a blank white screen.

jgaehring commented 3 years ago

Do you recall what version you were running previously? I assume this is the Progressive Web App running at farmos.app; what browser are you running it in, or did you install it with?

CFWHISPERER commented 3 years ago

Jamie, I installed it from on my Android phone from here, initially https://farmos.app/ I do not know what version it was and I added it to my home screen. All went ok until I was prompted to add an update, which I did and now I just get a blank white screen.

On Sat, Nov 28, 2020 at 12:09 PM Jamie Gaehring notifications@github.com wrote:

Do you recall what version you were running previously? I assume this is the Progressive Web App running at farmos.app; what browser are you running it in, or did you install it with?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/farmOS/farmOS-client/issues/429#issuecomment-735284646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFRYJUWCBILIRKL4NHUKTTSSFKGVANCNFSM4UFH5VCQ .

-- Kind Regards - Mike Brunt Bringing Technology To Food Via Permaculture Phone: +1 541 246 9519 https://www.meetup.com/Eugene-Permaculture-Meetup https://www.meetup.com/Hyperledger-Eugene/ http://www.cfwhisperer.com/ http://www.foodscaping.co http://www.earthdollar.org http://www.perma-ledger.com Twitter @cfwhisperer

CFWHISPERER commented 3 years ago

I think I identified a clue here, clicking on the farmOS icon for the field kit, it defaults to https://farmos.app/#/logs which is a blank screen; however if I change that to https://farmos.app/#/tasks I see the GUI OK.

On Sun, Nov 29, 2020 at 9:26 AM Mike Brunt go2riamb@gmail.com wrote:

Jamie, I installed it from on my Android phone from here, initially https://farmos.app/ I do not know what version it was and I added it to my home screen. All went ok until I was prompted to add an update, which I did and now I just get a blank white screen.

On Sat, Nov 28, 2020 at 12:09 PM Jamie Gaehring notifications@github.com wrote:

Do you recall what version you were running previously? I assume this is the Progressive Web App running at farmos.app; what browser are you running it in, or did you install it with?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/farmOS/farmOS-client/issues/429#issuecomment-735284646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFRYJUWCBILIRKL4NHUKTTSSFKGVANCNFSM4UFH5VCQ .

-- Kind Regards - Mike Brunt Bringing Technology To Food Via Permaculture Phone: +1 541 246 9519 https://www.meetup.com/Eugene-Permaculture-Meetup https://www.meetup.com/Hyperledger-Eugene/ http://www.cfwhisperer.com/ http://www.foodscaping.co http://www.earthdollar.org http://www.perma-ledger.com Twitter @cfwhisperer

-- Kind Regards - Mike Brunt Bringing Technology To Food Via Permaculture Phone: +1 541 246 9519 https://www.meetup.com/Eugene-Permaculture-Meetup https://www.meetup.com/Hyperledger-Eugene/ http://www.cfwhisperer.com/ http://www.foodscaping.co http://www.earthdollar.org http://www.perma-ledger.com Twitter @cfwhisperer

jgaehring commented 3 years ago

Ahhh, yes, that would do it!

It's a little peculiar though. The start_url in the manifest.json should enforce that when the app starts, it always loads the root directory (ie, /). I doubt we'll have many changes like this in the future, but it would good to figure out a way to enforce the root URL as the main URL installed as the PWA. We should also have a redirect for any routes that are not found by the router.

Thanks for reporting, @CFWHISPERER, sorry for any inconvenience, but glad you were able to figure it out!

I will leave this open so I remember to implement those fixes I mentioned above.

CFWHISPERER commented 3 years ago

OK @jgaehring thank you, one more update, I did try to synch a log update as an Observation but it did work.

jgaehring commented 3 years ago

Hmm, well that's not good. Any error message?

CFWHISPERER commented 3 years ago

@jgaehring no Jamie, however, would the fact that I can only get in via https://farmos.app/#/tasks rather than https://farmos.app/#/logs preclude me from adding to the log?

jgaehring commented 3 years ago

I'm still a little surprised that you're able to launch the app to https://farmos.app/#/logs. What browser did you use when you installed it? And what version of Android are you on?

You should still be able to create a log; the url shouldn't effect that. The switch from calling it "My Logs" to "Tasks" is in anticipation of additional modules that will also handle logs, and we wanted something to disambiguate the role of the one module we already have.

You should be able to access https://farmos.app from your browser, rather than the installed shortcut, which should reroute you to /tasks with all the same logs that you created from the shortcut. I would like to find a way to sync your logs first, then uninstall and reinstall to see if we can fix this issue with the url, but I'd like to understand what's going on better before doing so.

CFWHISPERER commented 3 years ago

The browser is a popular privacy browser for phones called "Duck Duck Go" and yes " https://farmos.app from your browser, rather than the installed shortcut, which should reroute you to /task" I am redirected to https://farmos.app/#/tasks/ so I went back to the log which failed the other day and this time it worked OK. I synched it from the individual log "Edit" page.

On Tue, Dec 1, 2020 at 12:00 PM Jamie Gaehring notifications@github.com wrote:

I'm still a little surprised that you're able to launch the app to https://farmos.app/#/logs. What browser did you use when you installed it? And what version of Android are you on?

You should still be able to create a log; the url shouldn't effect that. The switch from calling it "My Logs" to "Tasks" is in anticipation of additional modules that will also handle logs, and we wanted something to disambiguate the role of the one module we already have.

You should be able to access https://farmos.app from your browser, rather than the installed shortcut, which should reroute you to /tasks with all the same logs that you created from the shortcut. I would like to find a way to sync your logs first, then uninstall and reinstall to see if we can fix this issue with the url, but I'd like to understand what's going on better before doing so.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/farmOS/farmOS-client/issues/429#issuecomment-736784502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFRYJT3724MOAS6R55WPV3SSVDOBANCNFSM4UFH5VCQ .

-- Kind Regards - Mike Brunt Bringing Technology To Food Via Permaculture Phone: +1 541 246 9519 https://www.meetup.com/Eugene-Permaculture-Meetup https://www.meetup.com/Hyperledger-Eugene/ http://www.cfwhisperer.com/ http://www.foodscaping.co http://www.earthdollar.org http://www.perma-ledger.com Twitter @cfwhisperer

jgaehring commented 3 years ago

Oh cool, didn't realize they had a browser!

Glad it's working, don't hesitate if you run into any other problems!

jgaehring commented 3 years ago

I added a wildcard route so this shouldn't happen again.