diff --git a/lib/components/Login/WebViewLogin.dart b/lib/components/Login/WebViewLogin.dart index 3a58dcd96..b9e1bec48 100644 --- a/lib/components/Login/WebViewLogin.dart +++ b/lib/components/Login/WebViewLogin.dart @@ -26,13 +26,20 @@ class WebViewLogin extends HookConsumerWidget { return Scaffold( body: SafeArea( child: InAppWebView( + initialOptions: InAppWebViewGroupOptions( + crossPlatform: InAppWebViewOptions( + userAgent: + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 afari/537.36", + ), + ), initialUrlRequest: URLRequest( url: Uri.parse("https://accounts.spotify.com/"), ), androidOnPermissionRequest: (controller, origin, resources) async { return PermissionRequestResponse( - resources: resources, - action: PermissionRequestResponseAction.GRANT); + resources: resources, + action: PermissionRequestResponseAction.GRANT, + ); }, onLoadStop: (controller, action) async { if (action == null) return;