Fmstrat / ownnote

Notes app for ownCloud
GNU Affero General Public License v3.0
168 stars 42 forks source link

Offline detection in android app not optimal #304

Open rainer042 opened 8 years ago

rainer042 commented 8 years ago

For security reasons I configured my private owncloud server to allow access only from devices connected to my home wireless lan or via a VPN to my home network. So my owncloud server is only reachable when I am at home or if I started my home-vpn on my mobile android device.

Andoid ownnote cannot cope with this configuration, because it uses a too simple approach to detect the "offline" state that would else allow to look at notes stored offline on my mobile.

Since my mobile usually has network but cannot reach my owncloud server (if I am not at home), ownnote displays the login page allthough I would like to work offline eg look at a note stored offline on my mobile. In order to do this I have to deactivate all net connections (WLAN and 3G) on my mobile.

I think the android ownnote app if once successfully configured should assume that it is offline if it cannot reach the server and it should not display the login page in this case.

I would like to define "offline" as "owncloud server unreachable" which makes more sense in my eyes since I want to be able to read notes offline always iff my server is not reachable.

Thanks Rainer

Pantek59 commented 8 years ago

I'm having the exact same situation as described above. OwnNote is only usable when at home or when I have the VPN running on my phone. A button "work offline" would actually be enough for a Q&D solution.

Thanks Jan