danvratil / harbour-sailslack

Unofficial Slack client for Sailfish OS
GNU General Public License v3.0
4 stars 4 forks source link

Use either a browser or sailfish webview for logging in. #20

Closed b100dian closed 3 years ago

b100dian commented 3 years ago

Added an auth-server that actually listens on port 3000 and if you do connect with the browser it displays "You can now switch back to Sailslack".

Moved the sailfish webview to a lazy-loaded component as it still crashes if not run from terminal \o/ Crash is worked around, webview is still lazy loaded but now we can use it in WebViewPage which makes for better virtual keyboard support. The sailfish webview redirect actually works, I left the comment for reference from my initial impressions..

Here's the stack of the crash.. https://github.com/sailfishos/sailfish-components-webview/issues/26#issuecomment-753697401 (The link actually has the fix for the crash now!)

To be able to build this, you need to tick the webview in Qt's Sailfish IDE Tools -> Options -> Sailfish OS -> Build Engine -> Manage Build Targets -> search for "webview" and tick sailfish-components-webview-qt5 image