cross-platform / icloud-for-linux

Access all of your favourite iCloud apps from Linux
https://snapcraft.io/icloud-for-linux
GNU General Public License v3.0
381 stars 56 forks source link

Your bowser isn't fully supported #3

Closed xarbit closed 4 years ago

xarbit commented 4 years ago

I get the following error when using iCloud Pages and co.

image

MarcusTomlinson commented 4 years ago

Indeed, Apple don't officially support a qml webview browser, but if you click Continue everything works as it should anyway. The experience of having to click Continue is shoddy of course. I've got it on my todo to see if I can remove that.

xarbit commented 4 years ago

Hi @MarcusTomlinson

I think all you need to do is change the useragent with something supported by apple.. maybe something like this in the webview:

 profile:  WebEngineProfile{
        httpUserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0"
    }

https://doc.qt.io/qt-5/qml-qtwebengine-webengineprofile.html#httpUserAgent-prop

https://developers.whatismybrowser.com/useragents/explore/

MarcusTomlinson commented 4 years ago

Ah! You're absolutely right. This will be fixed in 0.4 - releasing soon :) Thanks @jscurtu!