Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase_auth_web] Can't sign in after hot restart #2002

Closed
nilsreichardt opened this issue Feb 15, 2020 · 10 comments
Closed

[firebase_auth_web] Can't sign in after hot restart #2002

nilsreichardt opened this issue Feb 15, 2020 · 10 comments
Assignees
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: auth resolution: needs-repro This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin. type: bug Something isn't working

Comments

@nilsreichardt
Copy link
Contributor

nilsreichardt commented Feb 15, 2020

Describe the bug
After a hot restart I‘m logged out. I can‘t sign in anymore, because firebase auth loading doesn’t stop (only if type in the correct login data). Only way to fix it is so rebuild the whole app.

We have this issue also in production. In production the error occurs only sometimes.

In Production: If this error occurs, there are two ways to fix it:

  1. Reload page
  2. Delete cache

Some additional information:

  • It seems that the error occurs more often when Skia is activated (it's only a feeling).
  • No errors are displayed in the console.
  • Flutter channel: master
  • We have some website restrictions for the Firebase API key

Links to our web app (Production):
Normal Render: https://web.sharezone.net
Skia Render: https://sharezone-release.web.app

It's very difficult to reproduce the error in the production web app. But in debug mode it is very easy for me:

  1. Start Flutter App
  2. Login in
  3. Hot restart
  4. Try to login again --> loading doesn't stop (can't login)
Flutter doctor [✓] Flutter (Channel dev, v1.15.3, on Mac OS X 10.15.2 19C57, locale de-DE) • Flutter version 1.15.3 at /usr/local/Caskroom/flutter/latest/flutter • Framework revision 67826bdce5 (5 days ago), 2020-02-10 14:59:32 -0800 • Engine revision 6158f03ef5 • Dart version 2.8.0 (build 2.8.0-dev.8.0 514a8d4c84)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/nils/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /Users/nils/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.42.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1

[✓] Connected device (4 available)
• BKL L09 • 192.168.0.143:5555 • android-arm64 • Android 9 (API 28)
• macOS • macOS • darwin-x64 • Mac OS X 10.15.2 19C57
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.130
• Web Server • web-server • web-javascript • Flutter Tools

Edit: I found more information:

Demo

FirebaseAuthBug

Login-Data:
E-Mail: [email protected]
Password: 12345678

Code to reproduce

main.dart

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Firebase Auth Demo',
      home: Scaffold(
        appBar: AppBar(title: Text("Firebase Auth Web Bug")),
        body: StreamBuilder<FirebaseUser>(
          stream: FirebaseAuth.instance.onAuthStateChanged,
          builder: (context, snapshot) {
            if (snapshot.hasData) {
              return const Center(child: Text("Signed in."));
            }
            return _Login();
          },
        ),
      ),
    );
  }
}

class _Login extends StatefulWidget {
  @override
  __LoginState createState() => __LoginState();
}

class __LoginState extends State<_Login> {
  String email;
  String password;
  bool isLoading = false;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(12),
      child: Column(
        children: [
          TextField(
            onChanged: (e) => email = e,
            decoration: InputDecoration(labelText: 'Email'),
          ),
          TextField(
            onChanged: (p) => password = p,
            decoration: InputDecoration(labelText: 'Password'),
          ),
          if (isLoading)
            CircularProgressIndicator()
          else
            FlatButton(
              onPressed: () {
                setState(() => isLoading = true);
                FirebaseAuth.instance.signInWithEmailAndPassword(
                  email: email,
                  password: password,
                );
              },
              child: Text("Login"),
            )
        ],
      ),
    );
  }
}

index.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="google-signin-client_id" content="159623150305-q05bbbtsutr02abhips3suj7hujfk4bg.apps.googleusercontent.com" />
  <title>Firebase Auth Example</title>
</head>
<body>
  <script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
  <script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-auth.js"></script>
  <script>
    // Your web app's Firebase configuration
    var firebaseConfig = {
      apiKey: "AIzaSyBMaLre-rTS-P_J7LlcHRfrKoL0WemP0kw",
      authDomain: "flutter-firebase-plugins.firebaseapp.com",
      databaseURL: "https://flutter-firebase-plugins.firebaseio.com",
      projectId: "flutter-firebase-plugins",
      storageBucket: "flutter-firebase-plugins.appspot.com",
      messagingSenderId: "159623150305",
      appId: "1:159623150305:web:b2b676fa6ead437bbf95a0"
    };
    // Initialize Firebase
    firebase.initializeApp(firebaseConfig);
  </script>
  <script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
@nilsreichardt nilsreichardt added the type: bug Something isn't working label Feb 15, 2020
@nilsreichardt
Copy link
Contributor Author

Maybe it has something to do with #1771 or #1918 🧐

@iapicca
Copy link

iapicca commented Mar 6, 2020

Hi @AndroidNils
can you please provide your flutter run -d chrome --verbose
Thank you

@iapicca iapicca added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Mar 6, 2020
@TahaTesser
Copy link

Hi @AndroidNils
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore
reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any
more information for us; we will reopen it right away!
Thanks for your contribution.

@nilsreichardt nilsreichardt changed the title [firebase_auth_web] Can't sign in after hot reload or hot restart [firebase_auth_web] Can't sign in after hot restart May 13, 2020
@nilsreichardt
Copy link
Contributor Author

nilsreichardt commented May 13, 2020

Unfortunately this bug still there. But I dont't get the error Cannot find native JavaScript type (firebase.auth.OAuthCredential) for type check anymore. There is simply no error displayed in the console at all...

We have this issue also in production. In production the error occurs only sometimes.

In Production: If this error occurs, there are two ways to fix it:

  1. Reload page
  2. Delete cache

Some additional information:

  • It seems that the error occurs more often when Skia is activated (it's only a feeling).
  • No errors are displayed in the console.
  • Flutter channel: master
  • We have some website restrictions for the Firebase API key

Links to our web app (Production):
Normal Render: https://web.sharezone.net
Skia Render: https://sharezone-release.web.app

It's very difficult to reproduce the error in the production web app. But in debug mode it is very easy for me:

  1. Start Flutter App
  2. Login in
  3. Hot restart
  4. Try to login again --> loading doesn't stop (can't login)
flutter run -d chrome --verbose
[   +1 ms] executing: /usr/bin/xcodebuild -version
[ +162 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[        ] Xcode 11.4.1
           Build version 11E503a
[   +2 ms] executing: xcrun --find xcdevice
[  +10 ms] Exit code 0 from: xcrun --find xcdevice
[        ] /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice
[        ] executing: xcrun xcdevice list --timeout 2
[   +5 ms] /usr/bin/xcrun simctl list --json devices
[        ] executing: /usr/bin/xcrun simctl list --json devices
[  +74 ms] List of devices attached
[  +98 ms] {
             "devices" : {
               "com.apple.CoreSimulator.SimRuntime.tvOS-13-4" : [
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/0E9CDD1B-F950-4D00-8116-DF68381D689B\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/0E9CDD1B-F950-4D00-8116-DF68381D689B",
                   "udid" : "0E9CDD1B-F950-4D00-8116-DF68381D689B",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p",
                   "state" : "Shutdown",
                   "name" : "Apple TV"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/4313B484-643F-47E1-A3AE-05C37949ECF6\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/4313B484-643F-47E1-A3AE-05C37949ECF6",
                   "udid" : "4313B484-643F-47E1-A3AE-05C37949ECF6",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K",
                   "state" : "Shutdown",
                   "name" : "Apple TV 4K"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/40965E8B-1036-433E-AC8C-AD845E421704\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/40965E8B-1036-433E-AC8C-AD845E421704",
                   "udid" : "40965E8B-1036-433E-AC8C-AD845E421704",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p",
                   "state" : "Shutdown",
                   "name" : "Apple TV 4K (at 1080p)"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.iOS-13-4" : [
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/B0AEBE9C-FEC6-47CC-A451-BFD90506320A\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/B0AEBE9C-FEC6-47CC-A451-BFD90506320A",
                   "udid" : "B0AEBE9C-FEC6-47CC-A451-BFD90506320A",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8",
                   "state" : "Shutdown",
                   "name" : "iPhone 8"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/F2284C9B-0801-40ED-B4AE-DB1C9485ADFC\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/F2284C9B-0801-40ED-B4AE-DB1C9485ADFC",
                   "udid" : "F2284C9B-0801-40ED-B4AE-DB1C9485ADFC",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus",
                   "state" : "Shutdown",
                   "name" : "iPhone 8 Plus"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/DA41125C-B406-4914-951A-ACB577481A4C\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/DA41125C-B406-4914-951A-ACB577481A4C",
                   "udid" : "DA41125C-B406-4914-951A-ACB577481A4C",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11",
                   "state" : "Shutdown",
                   "name" : "iPhone 11"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/5A0DBC64-23D6-480C-8339-70BC7D18E645\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/5A0DBC64-23D6-480C-8339-70BC7D18E645",
                   "udid" : "5A0DBC64-23D6-480C-8339-70BC7D18E645",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
                   "state" : "Shutdown",
                   "name" : "iPhone 11 Pro"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/D745CB99-C845-42E7-876C-2EE6C997307D\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/D745CB99-C845-42E7-876C-2EE6C997307D",
                   "udid" : "D745CB99-C845-42E7-876C-2EE6C997307D",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max",
                   "state" : "Shutdown",
                   "name" : "iPhone 11 Pro Max"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/DB9EB3AF-E724-462A-BFD9-054CC3852CF5\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/DB9EB3AF-E724-462A-BFD9-054CC3852CF5",
                   "udid" : "DB9EB3AF-E724-462A-BFD9-054CC3852CF5",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-",
                   "state" : "Shutdown",
                   "name" : "iPhone SE (2nd generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/43ED3E85-87B3-4CD1-81FB-D5C42CA3C1A9\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/43ED3E85-87B3-4CD1-81FB-D5C42CA3C1A9",
                   "udid" : "43ED3E85-87B3-4CD1-81FB-D5C42CA3C1A9",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (9.7-inch)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/CEA04253-2BBE-4EAF-AF9C-17DDEC9D10B1\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/CEA04253-2BBE-4EAF-AF9C-17DDEC9D10B1",
                   "udid" : "CEA04253-2BBE-4EAF-AF9C-17DDEC9D10B1",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--7th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad (7th generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/076CEFA4-5FAD-4A6F-B8FC-67745CA4C499\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/076CEFA4-5FAD-4A6F-B8FC-67745CA4C499",
                   "udid" : "076CEFA4-5FAD-4A6F-B8FC-67745CA4C499",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch---2nd-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (11-inch) (2nd generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/9F9DA7C2-5334-4006-8EEE-B4E79BEBF9F5\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/9F9DA7C2-5334-4006-8EEE-B4E79BEBF9F5",
                   "udid" : "9F9DA7C2-5334-4006-8EEE-B4E79BEBF9F5",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---4th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (12.9-inch) (4th generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/F6D5886B-525C-45C0-85AE-45260EA5E7EC\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/F6D5886B-525C-45C0-85AE-45260EA5E7EC",
                   "udid" : "F6D5886B-525C-45C0-85AE-45260EA5E7EC",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad Air (3rd generation)"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.watchOS-6-2" : [
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/A99EA1EE-F220-4C65-A933-59948959FFEE\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/A99EA1EE-F220-4C65-A933-59948959FFEE",
                   "udid" : "A99EA1EE-F220-4C65-A933-59948959FFEE",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 4 - 40mm"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/DE1C1FA3-1BFB-429E-9EFF-108E55A5AD05\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/DE1C1FA3-1BFB-429E-9EFF-108E55A5AD05",
                   "udid" : "DE1C1FA3-1BFB-429E-9EFF-108E55A5AD05",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 4 - 44mm"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/BA4E85CE-8E8F-4A09-B6D0-8047D5586225\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/BA4E85CE-8E8F-4A09-B6D0-8047D5586225",
                   "udid" : "BA4E85CE-8E8F-4A09-B6D0-8047D5586225",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-40mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 40mm"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/7E123868-8DA4-4ECA-8A30-C50DC8ADF95D\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/7E123868-8DA4-4ECA-8A30-C50DC8ADF95D",
                   "udid" : "7E123868-8DA4-4ECA-8A30-C50DC8ADF95D",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm",
                   "state" : "Shutdown",
                   "name" : "Apple Watch Series 5 - 44mm"
                 }
               ],
               "com.apple.CoreSimulator.SimRuntime.iOS-10-3" : [
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/D61B515B-E919-419F-B5A6-FFE628F8FCAC\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/D61B515B-E919-419F-B5A6-FFE628F8FCAC",
                   "udid" : "D61B515B-E919-419F-B5A6-FFE628F8FCAC",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s",
                   "state" : "Shutdown",
                   "name" : "iPhone 5s"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/3507A9F7-33E9-43B7-8675-F7C7C698531C\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/3507A9F7-33E9-43B7-8675-F7C7C698531C",
                   "udid" : "3507A9F7-33E9-43B7-8675-F7C7C698531C",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus",
                   "state" : "Shutdown",
                   "name" : "iPhone 6 Plus"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/1E9218DE-3E5D-4103-AD71-A84A222E3624\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/1E9218DE-3E5D-4103-AD71-A84A222E3624",
                   "udid" : "1E9218DE-3E5D-4103-AD71-A84A222E3624",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6",
                   "state" : "Shutdown",
                   "name" : "iPhone 6"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/CEF28AA6-AE59-48F9-B2B7-6494BF36C4F9\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/CEF28AA6-AE59-48F9-B2B7-6494BF36C4F9",
                   "udid" : "CEF28AA6-AE59-48F9-B2B7-6494BF36C4F9",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s",
                   "state" : "Shutdown",
                   "name" : "iPhone 6s"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/62B9AE35-0BBF-41EC-8E82-1D368FD1DE70\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/62B9AE35-0BBF-41EC-8E82-1D368FD1DE70",
                   "udid" : "62B9AE35-0BBF-41EC-8E82-1D368FD1DE70",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus",
                   "state" : "Shutdown",
                   "name" : "iPhone 6s Plus"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/E9703347-C086-4ECE-87E9-EE9D24F27944\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/E9703347-C086-4ECE-87E9-EE9D24F27944",
                   "udid" : "E9703347-C086-4ECE-87E9-EE9D24F27944",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE",
                   "state" : "Shutdown",
                   "name" : "iPhone SE"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/9D93BD83-8D15-4E5C-AA41-845C01DD189D\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/9D93BD83-8D15-4E5C-AA41-845C01DD189D",
                   "udid" : "9D93BD83-8D15-4E5C-AA41-845C01DD189D",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7",
                   "state" : "Shutdown",
                   "name" : "iPhone 7"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/1B59F908-E414-42C1-AA87-AF67804EEF42\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/1B59F908-E414-42C1-AA87-AF67804EEF42",
                   "udid" : "1B59F908-E414-42C1-AA87-AF67804EEF42",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus",
                   "state" : "Shutdown",
                   "name" : "iPhone 7 Plus"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/7288C98A-64C2-4C62-A439-C4FCEB3549FD\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/7288C98A-64C2-4C62-A439-C4FCEB3549FD",
                   "udid" : "7288C98A-64C2-4C62-A439-C4FCEB3549FD",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air",
                   "state" : "Shutdown",
                   "name" : "iPad Air"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/01271E31-F2E0-4FA9-8A98-9C928139D663\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/01271E31-F2E0-4FA9-8A98-9C928139D663",
                   "udid" : "01271E31-F2E0-4FA9-8A98-9C928139D663",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-4",
                   "state" : "Shutdown",
                   "name" : "iPad mini 4"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/7A1FB7B6-0393-4467-8C35-EE5A794EA0B3\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/7A1FB7B6-0393-4467-8C35-EE5A794EA0B3",
                   "udid" : "7A1FB7B6-0393-4467-8C35-EE5A794EA0B3",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2",
                   "state" : "Shutdown",
                   "name" : "iPad Air 2"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/D1657B31-00E1-4193-B0DD-6E245466A124\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/D1657B31-00E1-4193-B0DD-6E245466A124",
                   "udid" : "D1657B31-00E1-4193-B0DD-6E245466A124",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (9.7-inch)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/1E08DBDF-B59F-4C90-B7AB-E9F4A238966B\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/1E08DBDF-B59F-4C90-B7AB-E9F4A238966B",
                   "udid" : "1E08DBDF-B59F-4C90-B7AB-E9F4A238966B",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (12.9-inch)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/C17F98A6-B954-4DE9-B220-9E10971E0944\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/C17F98A6-B954-4DE9-B220-9E10971E0944",
                   "udid" : "C17F98A6-B954-4DE9-B220-9E10971E0944",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad (5th generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/483B2872-3124-430F-B85A-A493101415C3\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/483B2872-3124-430F-B85A-A493101415C3",
                   "udid" : "483B2872-3124-430F-B85A-A493101415C3",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (12.9-inch) (2nd generation)"
                 },
                 {
                   "dataPath" : "\/Users\/nils\/Library\/Developer\/CoreSimulator\/Devices\/43A75627-4E1E-4B9F-8AB3-2C3D2D6A1CEA\/data",
                   "logPath" : "\/Users\/nils\/Library\/Logs\/CoreSimulator\/43A75627-4E1E-4B9F-8AB3-2C3D2D6A1CEA",
                   "udid" : "43A75627-4E1E-4B9F-8AB3-2C3D2D6A1CEA",
                   "isAvailable" : true,
                   "deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-",
                   "state" : "Shutdown",
                   "name" : "iPad Pro (10.5-inch)"
                 }
               ]
             }
           }
[+2515 ms] [
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,4",
                        "identifier" : "B0AEBE9C-FEC6-47CC-A451-BFD90506320A",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-8-2",
                        "modelName" : "iPhone 8",
                        "name" : "iPhone 8"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4 (17L255)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV6,2",
                        "identifier" : "4313B484-643F-47E1-A3AE-05C37949ECF6",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4k",
                        "modelName" : "Apple TV 4K",
                        "name" : "Apple TV 4K"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone10,5",
                        "identifier" : "F2284C9B-0801-40ED-B4AE-DB1C9485ADFC",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-8-plus-2",
                        "modelName" : "iPhone 8 Plus",
                        "name" : "iPhone 8 Plus"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "6.2 (17T256)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,3",
                        "identifier" : "BA4E85CE-8E8F-4A09-B6D0-8047D5586225",
                        "architecture" : "i386",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 40mm",
                        "name" : "Apple Watch Series 5 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "6.2 (17T256)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch4,3",
                        "identifier" : "A99EA1EE-F220-4C65-A933-59948959FFEE",
                        "architecture" : "i386",
                        "modelUTI" : "com.apple.watch-series4-1",
                        "modelName" : "Apple Watch Series 4 - 40mm",
                        "name" : "Apple Watch Series 4 - 40mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,5",
                        "identifier" : "D745CB99-C845-42E7-876C-2EE6C997307D",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-pro-max-1",
                        "modelName" : "iPhone 11 Pro Max",
                        "name" : "iPhone 11 Pro Max"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone8,4",
                        "identifier" : "E9703347-C086-4ECE-87E9-EE9D24F27944",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-se-a1662-aeb1b8",
                        "modelName" : "iPhone SE (1st generation)",
                        "name" : "iPhone SE"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad7,12",
                        "identifier" : "CEA04253-2BBE-4EAF-AF9C-17DDEC9D10B1",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-7-wwan-1",
                        "modelName" : "iPad (7th generation)",
                        "name" : "iPad (7th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "6.2 (17T256)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch4,4",
                        "identifier" : "DE1C1FA3-1BFB-429E-9EFF-108E55A5AD05",
                        "architecture" : "i386",
                        "modelUTI" : "com.apple.watch-series4-1",
                        "modelName" : "Apple Watch Series 4 - 44mm",
                        "name" : "Apple Watch Series 4 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone9,1",
                        "identifier" : "9D93BD83-8D15-4E5C-AA41-845C01DD189D",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-7-1",
                        "modelName" : "iPhone 7",
                        "name" : "iPhone 7"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,3",
                        "identifier" : "5A0DBC64-23D6-480C-8339-70BC7D18E645",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-pro-1",
                        "modelName" : "iPhone 11 Pro",
                        "name" : "iPhone 11 Pro"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad8,9",
                        "identifier" : "076CEFA4-5FAD-4A6F-B8FC-67745CA4C499",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-11-2nd-1",
                        "modelName" : "iPad Pro (11-inch) (2nd generation)",
                        "name" : "iPad Pro (11-inch) (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,8",
                        "identifier" : "DB9EB3AF-E724-462A-BFD9-054CC3852CF5",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-se-1",
                        "modelName" : "iPhone SE (2nd generation)",
                        "name" : "iPhone SE (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4 (17L255)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV6,2",
                        "identifier" : "40965E8B-1036-433E-AC8C-AD845E421704",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4k",
                        "modelName" : "Apple TV 4K (at 1080p)",
                        "name" : "Apple TV 4K (at 1080p)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "6.2 (17T256)",
                        "available" : true,
                        "platform" : "com.apple.platform.watchsimulator",
                        "modelCode" : "Watch5,4",
                        "identifier" : "7E123868-8DA4-4ECA-8A30-C50DC8ADF95D",
                        "architecture" : "i386",
                        "modelUTI" : "com.apple.watch-series5-1",
                        "modelName" : "Apple Watch Series 5 - 44mm",
                        "name" : "Apple Watch Series 5 - 44mm"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone8,1",
                        "identifier" : "CEF28AA6-AE59-48F9-B2B7-6494BF36C4F9",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-6s-b9b7ba",
                        "modelName" : "iPhone 6s",
                        "name" : "iPhone 6s"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad5,4",
                        "identifier" : "7A1FB7B6-0393-4467-8C35-EE5A794EA0B3",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-air2-a1567-b4b5b9",
                        "modelName" : "iPad Air 2",
                        "name" : "iPad Air 2"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,12",
                        "identifier" : "C17F98A6-B954-4DE9-B220-9E10971E0944",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-gen5-a1823-1",
                        "modelName" : "iPad (5th generation)",
                        "name" : "iPad (5th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4 (17L255)",
                        "available" : true,
                        "platform" : "com.apple.platform.appletvsimulator",
                        "modelCode" : "AppleTV5,3",
                        "identifier" : "0E9CDD1B-F950-4D00-8116-DF68381D689B",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.apple-tv-4",
                        "modelName" : "Apple TV",
                        "name" : "Apple TV"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad7,3",
                        "identifier" : "43A75627-4E1E-4B9F-8AB3-2C3D2D6A1CEA",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-10point5-a1701-1",
                        "modelName" : "iPad Pro (10.5-inch)",
                        "name" : "iPad Pro (10.5-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,8",
                        "identifier" : "1E08DBDF-B59F-4C90-B7AB-E9F4A238966B",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-a1652-b4b5b9",
                        "modelName" : "iPad Pro (12.9-inch)",
                        "name" : "iPad Pro (12.9-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad4,2",
                        "identifier" : "7288C98A-64C2-4C62-A439-C4FCEB3549FD",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-air-a1475-d7d9d8",
                        "modelName" : "iPad Air",
                        "name" : "iPad Air"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad8,12",
                        "identifier" : "9F9DA7C2-5334-4006-8EEE-B4E79BEBF9F5",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-12point9-4th-1",
                        "modelName" : "iPad Pro (12.9-inch) (4th generation)",
                        "name" : "iPad Pro (12.9-inch) (4th generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone12,1",
                        "identifier" : "DA41125C-B406-4914-951A-ACB577481A4C",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-11-1",
                        "modelName" : "iPhone 11",
                        "name" : "iPhone 11"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone7,1",
                        "identifier" : "3507A9F7-33E9-43B7-8675-F7C7C698531C",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-6-plus-b4b5b9",
                        "modelName" : "iPhone 6 Plus",
                        "name" : "iPhone 6 Plus"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad7,1",
                        "identifier" : "483B2872-3124-430F-B85A-A493101415C3",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-a1670-1",
                        "modelName" : "iPad Pro (12.9-inch) (2nd generation)",
                        "name" : "iPad Pro (12.9-inch) (2nd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad11,3",
                        "identifier" : "F6D5886B-525C-45C0-85AE-45260EA5E7EC",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-air3-wifi-1",
                        "modelName" : "iPad Air (3rd generation)",
                        "name" : "iPad Air (3rd generation)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,4",
                        "identifier" : "D1657B31-00E1-4193-B0DD-6E245466A124",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba",
                        "modelName" : "iPad Pro (9.7-inch)",
                        "name" : "iPad Pro (9.7-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone9,2",
                        "identifier" : "1B59F908-E414-42C1-AA87-AF67804EEF42",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-7-plus-1",
                        "modelName" : "iPhone 7 Plus",
                        "name" : "iPhone 7 Plus"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad5,1",
                        "identifier" : "01271E31-F2E0-4FA9-8A98-9C928139D663",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-mini4-a1538-b4b5b9",
                        "modelName" : "iPad mini 4",
                        "name" : "iPad mini 4"
                      },
                      {
                        "modelCode" : "iPhone12,5",
                        "simulator" : false,
                        "modelName" : "iPhone 11 Pro Max",
                        "error" : {
                          "code" : -13,
                          "failureReason" : "",
                          "underlyingErrors" : [
                            {
                              "code" : 5,
                              "failureReason" : "allowsSecureServices: 1. isConnected: 0. Platform:
                              <DVTPlatform:0x7fe44fd1d090:'com.apple.platform.iphoneos':<DVTFilePath:0x7fe44fd1d010:'\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform'>>.
                              DTDKDeviceIdentifierIsIDID: 0",
                              "description" : "Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.",
                              "recoverySuggestion" : "",
                              "domain" : "com.apple.platform.iphoneos"
                            }
                          ],
                          "description" : "iPhone von Roland is not connected",
                          "recoverySuggestion" : "Xcode will continue when iPhone von Roland is connected.",
                          "domain" : "com.apple.platform.iphoneos"
                        },
                        "operatingSystemVersion" : "13.4.1 (17E262)",
                        "identifier" : "00008030-000A15AC3C31802E",
                        "platform" : "com.apple.platform.iphoneos",
                        "architecture" : "arm64e",
                        "interface" : "usb",
                        "available" : false,
                        "name" : "iPhone von Roland",
                        "modelUTI" : "com.apple.iphone-11-pro-max-1"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone6,1",
                        "identifier" : "D61B515B-E919-419F-B5A6-FFE628F8FCAC",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-5s-a1453-d4c5b3",
                        "modelName" : "iPhone 5s",
                        "name" : "iPhone 5s"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone7,2",
                        "identifier" : "1E9218DE-3E5D-4103-AD71-A84A222E3624",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-6-b4b5b9",
                        "modelName" : "iPhone 6",
                        "name" : "iPhone 6"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "13.4.1 (17E8260)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPad6,4",
                        "identifier" : "43ED3E85-87B3-4CD1-81FB-D5C42CA3C1A9",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba",
                        "modelName" : "iPad Pro (9.7-inch)",
                        "name" : "iPad Pro (9.7-inch)"
                      },
                      {
                        "simulator" : true,
                        "operatingSystemVersion" : "10.3.1 (14E8301)",
                        "available" : true,
                        "platform" : "com.apple.platform.iphonesimulator",
                        "modelCode" : "iPhone8,2",
                        "identifier" : "62B9AE35-0BBF-41EC-8E82-1D368FD1DE70",
                        "architecture" : "x86_64",
                        "modelUTI" : "com.apple.iphone-6s-plus-b9b7ba",
                        "modelName" : "iPhone 6s Plus",
                        "name" : "iPhone 6s Plus"
                      }
                    ]
[  +23 ms] Error: iPhone von Roland is not connected. Xcode will continue when iPhone von Roland is connected. (code -13)
[   +5 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +205 ms] Found plugin file_chooser at /Users/nils/Desktop/Projekte/sharezone-app/lib/filesharing/file_chooser/
[  +51 ms] Found plugin add_2_calendar at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/add_2_calendar-1.4.0/
[  +19 ms] Found plugin apple_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/
[  +14 ms] Found plugin audioplayers at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/
[   +3 ms] Found plugin barcode_scan at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/
[  +32 ms] Found plugin cloud_firestore at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.5/
[   +3 ms] Found plugin cloud_firestore_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.1+2/
[   +2 ms] Found plugin cloud_functions at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[   +4 ms] Found plugin cloud_functions_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[  +19 ms] Found plugin device_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+3/
[  +12 ms] Found plugin fast_rsa at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/fast_rsa-1.0.1/
[   +8 ms] Found plugin file_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.9.0+1/
[   +5 ms] Found plugin firebase_analytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.11/
[   +2 ms] Found plugin firebase_auth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.16.0/
[   +2 ms] Found plugin firebase_auth_oauth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.1.0+7/
[   +3 ms] Found plugin firebase_auth_oauth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth_web-0.1.0+6/
[   +2 ms] Found plugin firebase_auth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[   +3 ms] Found plugin firebase_core at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4+3/
[   +3 ms] Found plugin firebase_core_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[   +2 ms] Found plugin firebase_crashlytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-0.1.3+3/
[   +1 ms] Found plugin firebase_dynamic_links at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.5.0+11/
[   +1 ms] Found plugin firebase_messaging at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.13/
[  +25 ms] Found plugin firebase_performance at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.3.1+8/
[   +2 ms] Found plugin firebase_remote_config at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/
[   +5 ms] Found plugin firebase_storage at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.5/
[  +10 ms] Found plugin flutter_image_compress at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.6.7/
[   +8 ms] Found plugin flutter_plugin_android_lifecycle at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.7/
[  +29 ms] Found plugin google_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.4.6/
[   +4 ms] Found plugin google_sign_in_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.1/
[  +18 ms] Found plugin image_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.6+1/
[  +14 ms] Found plugin jitsi_meet at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/jitsi_meet-0.2.0/
[  +30 ms] Found plugin native_pdf_renderer at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/native_pdf_renderer-2.0.1/
[  +23 ms] Found plugin open_file at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/open_file-3.0.1/
[  +20 ms] Found plugin package_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+18/
[  +18 ms] Found plugin path_provider at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/
[   +3 ms] Found plugin path_provider_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+2/
[   +9 ms] Found plugin permission_handler at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.0+hotfix.5/
[  +18 ms] Found plugin share at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.4+2/
[   +1 ms] Found plugin shared_preferences at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+2/
[   +2 ms] Found plugin shared_preferences_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+8/
[   +2 ms] Found plugin shared_preferences_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+5/
[   +8 ms] Found plugin sign_in_with_apple at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sign_in_with_apple-1.1.1/
[   +6 ms] Found plugin sqflite at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+1/
[  +18 ms] Found plugin url_launcher at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.7/
[   +1 ms] Found plugin url_launcher_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+5/
[   +1 ms] Found plugin url_launcher_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+4/
[   +4 ms] Found plugin video_player at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.10/
[   +2 ms] Found plugin video_player_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3/
[   +2 ms] Found plugin wakelock at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/
[  +63 ms] Found plugin file_chooser at /Users/nils/Desktop/Projekte/sharezone-app/lib/filesharing/file_chooser/
[  +12 ms] Found plugin add_2_calendar at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/add_2_calendar-1.4.0/
[   +4 ms] Found plugin apple_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/
[   +1 ms] Found plugin audioplayers at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/
[   +1 ms] Found plugin barcode_scan at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/
[  +10 ms] Found plugin cloud_firestore at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.5/
[   +2 ms] Found plugin cloud_firestore_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.1+2/
[   +1 ms] Found plugin cloud_functions at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[   +1 ms] Found plugin cloud_functions_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[   +4 ms] Found plugin device_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+3/
[   +3 ms] Found plugin fast_rsa at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/fast_rsa-1.0.1/
[   +2 ms] Found plugin file_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.9.0+1/
[   +2 ms] Found plugin firebase_analytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.11/
[   +1 ms] Found plugin firebase_auth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.16.0/
[        ] Found plugin firebase_auth_oauth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.1.0+7/
[   +1 ms] Found plugin firebase_auth_oauth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth_web-0.1.0+6/
[   +1 ms] Found plugin firebase_auth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[   +2 ms] Found plugin firebase_core at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4+3/
[   +1 ms] Found plugin firebase_core_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[        ] Found plugin firebase_crashlytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-0.1.3+3/
[        ] Found plugin firebase_dynamic_links at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.5.0+11/
[        ] Found plugin firebase_messaging at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.13/
[        ] Found plugin firebase_performance at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.3.1+8/
[        ] Found plugin firebase_remote_config at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/
[        ] Found plugin firebase_storage at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.5/
[   +6 ms] Found plugin flutter_image_compress at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.6.7/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.7/
[   +3 ms] Found plugin google_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.4.6/
[   +1 ms] Found plugin google_sign_in_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.1/
[   +3 ms] Found plugin image_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.6+1/
[   +4 ms] Found plugin jitsi_meet at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/jitsi_meet-0.2.0/
[   +4 ms] Found plugin native_pdf_renderer at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/native_pdf_renderer-2.0.1/
[   +2 ms] Found plugin open_file at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/open_file-3.0.1/
[   +2 ms] Found plugin package_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+18/
[   +2 ms] Found plugin path_provider at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/
[        ] Found plugin path_provider_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+2/
[   +1 ms] Found plugin permission_handler at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.0+hotfix.5/
[   +7 ms] Found plugin share at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.4+2/
[   +1 ms] Found plugin shared_preferences at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+2/
[        ] Found plugin shared_preferences_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+8/
[        ] Found plugin shared_preferences_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+5/
[   +2 ms] Found plugin sign_in_with_apple at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sign_in_with_apple-1.1.1/
[   +1 ms] Found plugin sqflite at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+1/
[   +7 ms] Found plugin url_launcher at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.7/
[        ] Found plugin url_launcher_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+5/
[   +1 ms] Found plugin url_launcher_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+4/
[   +1 ms] Found plugin video_player at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.10/
[        ] Found plugin video_player_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3/
[   +2 ms] Found plugin wakelock at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/
[ +100 ms] Generating /Users/nils/Desktop/Projekte/sharezone-app/app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +171 ms] Launching lib/main.dart on Chrome in debug mode...
[ +105 ms] Updating assets
[ +644 ms] Syncing files to device Chrome...
[  +29 ms] Found plugin file_chooser at /Users/nils/Desktop/Projekte/sharezone-app/lib/filesharing/file_chooser/
[   +5 ms] Found plugin add_2_calendar at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/add_2_calendar-1.4.0/
[   +1 ms] Found plugin apple_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/
[   +3 ms] Found plugin audioplayers at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/
[   +3 ms] Found plugin barcode_scan at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/
[   +4 ms] Found plugin cloud_firestore at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.5/
[   +1 ms] Found plugin cloud_firestore_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.1+2/
[   +1 ms] Found plugin cloud_functions at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[   +1 ms] Found plugin cloud_functions_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[   +6 ms] Found plugin device_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+3/
[   +2 ms] Found plugin fast_rsa at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/fast_rsa-1.0.1/
[   +1 ms] Found plugin file_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.9.0+1/
[        ] Found plugin firebase_analytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.11/
[        ] Found plugin firebase_auth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.16.0/
[        ] Found plugin firebase_auth_oauth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.1.0+7/
[   +2 ms] Found plugin firebase_auth_oauth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth_web-0.1.0+6/
[   +1 ms] Found plugin firebase_auth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[        ] Found plugin firebase_core at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4+3/
[   +1 ms] Found plugin firebase_core_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[   +3 ms] Found plugin firebase_crashlytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-0.1.3+3/
[        ] Found plugin firebase_dynamic_links at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.5.0+11/
[        ] Found plugin firebase_messaging at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.13/
[        ] Found plugin firebase_performance at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.3.1+8/
[        ] Found plugin firebase_remote_config at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/
[        ] Found plugin firebase_storage at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.5/
[   +1 ms] Found plugin flutter_image_compress at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.6.7/
[   +4 ms] Found plugin flutter_plugin_android_lifecycle at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.7/
[   +4 ms] Found plugin google_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.4.6/
[   +3 ms] Found plugin google_sign_in_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.1/
[   +2 ms] Found plugin image_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.6+1/
[   +2 ms] Found plugin jitsi_meet at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/jitsi_meet-0.2.0/
[   +4 ms] Found plugin native_pdf_renderer at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/native_pdf_renderer-2.0.1/
[   +2 ms] Found plugin open_file at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/open_file-3.0.1/
[   +5 ms] Found plugin package_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+18/
[   +1 ms] Found plugin path_provider at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/
[        ] Found plugin path_provider_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+2/
[   +1 ms] Found plugin permission_handler at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.0+hotfix.5/
[  +13 ms] Found plugin share at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.4+2/
[        ] Found plugin shared_preferences at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+2/
[        ] Found plugin shared_preferences_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+8/
[   +2 ms] Found plugin shared_preferences_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+5/
[   +2 ms] Found plugin sign_in_with_apple at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sign_in_with_apple-1.1.1/
[   +3 ms] Found plugin sqflite at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+1/
[   +8 ms] Found plugin url_launcher at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.7/
[        ] Found plugin url_launcher_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+5/
[        ] Found plugin url_launcher_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+4/
[        ] Found plugin video_player at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.10/
[        ] Found plugin video_player_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3/
[        ] Found plugin wakelock at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/
[  +35 ms] Found plugin file_chooser at /Users/nils/Desktop/Projekte/sharezone-app/lib/filesharing/file_chooser/
[  +10 ms] Found plugin add_2_calendar at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/add_2_calendar-1.4.0/
[   +2 ms] Found plugin apple_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/apple_sign_in-0.1.0/
[   +2 ms] Found plugin audioplayers at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/
[   +1 ms] Found plugin barcode_scan at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/
[   +6 ms] Found plugin cloud_firestore at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.5/
[   +2 ms] Found plugin cloud_firestore_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.1+2/
[   +1 ms] Found plugin cloud_functions at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[        ] Found plugin cloud_functions_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[   +3 ms] Found plugin device_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+3/
[   +2 ms] Found plugin fast_rsa at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/fast_rsa-1.0.1/
[   +3 ms] Found plugin file_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-1.9.0+1/
[   +4 ms] Found plugin firebase_analytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-5.0.11/
[        ] Found plugin firebase_auth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.16.0/
[   +1 ms] Found plugin firebase_auth_oauth at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.1.0+7/
[   +1 ms] Found plugin firebase_auth_oauth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth_web-0.1.0+6/
[        ] Found plugin firebase_auth_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[        ] Found plugin firebase_core at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4+3/
[        ] Found plugin firebase_core_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[        ] Found plugin firebase_crashlytics at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-0.1.3+3/
[        ] Found plugin firebase_dynamic_links at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-0.5.0+11/
[        ] Found plugin firebase_messaging at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.13/
[   +4 ms] Found plugin firebase_performance at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_performance-0.3.1+8/
[        ] Found plugin firebase_remote_config at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_remote_config-0.3.0+3/
[   +1 ms] Found plugin firebase_storage at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-3.1.5/
[   +4 ms] Found plugin flutter_image_compress at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.6.7/
[        ] Found plugin flutter_plugin_android_lifecycle at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.7/
[   +5 ms] Found plugin google_sign_in at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.4.6/
[   +1 ms] Found plugin google_sign_in_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in_web-0.9.1/
[   +2 ms] Found plugin image_picker at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.6+1/
[   +6 ms] Found plugin jitsi_meet at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/jitsi_meet-0.2.0/
[   +4 ms] Found plugin native_pdf_renderer at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/native_pdf_renderer-2.0.1/
[   +1 ms] Found plugin open_file at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/open_file-3.0.1/
[   +1 ms] Found plugin package_info at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+18/
[   +3 ms] Found plugin path_provider at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/
[   +1 ms] Found plugin path_provider_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+2/
[   +3 ms] Found plugin permission_handler at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-5.0.0+hotfix.5/
[   +6 ms] Found plugin share at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.4+2/
[        ] Found plugin shared_preferences at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+2/
[        ] Found plugin shared_preferences_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+8/
[        ] Found plugin shared_preferences_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+5/
[   +5 ms] Found plugin sign_in_with_apple at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sign_in_with_apple-1.1.1/
[   +2 ms] Found plugin sqflite at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0+1/
[   +5 ms] Found plugin url_launcher at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.7/
[        ] Found plugin url_launcher_macos at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+5/
[        ] Found plugin url_launcher_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+4/
[        ] Found plugin video_player at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.10/
[        ] Found plugin video_player_web at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.3/
[        ] Found plugin wakelock at /Users/nils/Desktop/SDKs/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.1.4+1/
[  +23 ms] Generating /Users/nils/Desktop/Projekte/sharezone-app/app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +252 ms] <- reset
[   +7 ms] /Users/nils/Desktop/SDKs/flutter/bin/cache/dart-sdk/bin/dart /Users/nils/Desktop/SDKs/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/nils/Desktop/SDKs/flutter/bin/cache/flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
/var/folders/jf/894dvwbx4xq6s6bg3k0yfnl80000gn/T/flutter_tool.G7ezuC/app.dill --libraries-spec file:///Users/nils/Desktop/SDKs/flutter/bin/cache/flutter_web_sdk/libraries.json --packages .packages -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-root /var/folders/jf/894dvwbx4xq6s6bg3k0yfnl80000gn/T/flutter_tools.RqftyO --filesystem-scheme org-dartlang-app --initialize-from-dill build/cache.dill --platform
file:///Users/nils/Desktop/SDKs/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
[   +8 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+22359 ms] Syncing files to device Chrome... (completed in 22.937ms, longer than expected)
[   +1 ms] Synced 54.3MB.
[        ] <- accept
[ +602 ms] [CHROME]:
[   +1 ms] [CHROME]:DevTools listening on ws://127.0.0.1:52902/devtools/browser/480b796c-0d5f-48ab-804b-86d32b80b817
[+10731 ms] Debug service listening on ws://127.0.0.1:52945/VAKFPLgQygw=

[+1054 ms] Debug service listening on ws://127.0.0.1:52945/VAKFPLgQygw=
[   +5 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[        ] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[        ] 🔥  To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R".
[   +5 ms] For a more detailed help message, press "h". To quit, press "q".
[+12191 ms] FirebaseError: [code=permission-denied]: Missing or insufficient permissions.
                     
[+1511 ms] Overflow on channel: flutter/platform.  Messages on this channel are being discarded in FIFO fashion.  The engine may not be running or you need to adjust the buffer size if of the channel.
                    
[+9757 ms] Performing hot restart...
[  +21 ms] Scanned through 1517 files in 19ms
[        ] Syncing files to device Chrome...
[   +1 ms] <- recompile org-dartlang-app:/web_entrypoint.dart 84a82049-e959-4124-bb6d-63079785eff6
[        ] <- 84a82049-e959-4124-bb6d-63079785eff6
[  +49 ms] Syncing files to device Chrome... (completed in 51ms)
[        ] Synced 0.0MB.
[        ] <- accept
[ +124 ms] Performing hot restart... (completed in 198ms)
[        ] Restarted application in 198ms.

@TahaTesser TahaTesser reopened this May 15, 2020
@TahaTesser TahaTesser added platform: web Issues / PRs which are specifically for web. plugin: auth and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels May 15, 2020
@nilsreichardt nilsreichardt changed the title [firebase_auth_web] Can't sign in after hot restart [firebase_auth] Can't sign in after hot restart May 15, 2020
@Jonas-Sander
Copy link

For me it happens everytime consistently after each hot reload/restart 🙃

Flutter doctor

[✓] Flutter (Channel dev, 1.19.0-0.0.pre, on Mac OS X 10.15.4 19E287, locale de-DE)
    • Flutter version 1.19.0-0.0.pre at /Users/jonassander/development/flutter
    • Framework revision a849daf283 (vor 3 Wochen), 2020-05-07 18:59:02 -0700
    • Engine revision 3953c3ccd1
    • Dart version 2.9.0 (build 2.9.0-5.0.dev 4da5b40fb6)

 
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/jonassander/Library/Android/sdk
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.0.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 42.1.4
    • Dart plugin version 193.5731

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (3 available)
    • macOS      • macOS      • darwin-x64     • Mac OS X 10.15.4 19E287
    • Web Server • web-server • web-javascript • Flutter Tools
    • Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.61

@nilsreichardt
Copy link
Contributor Author

Demo

FirebaseAuthBug

Code to reproduce

main.dart

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Firebase Auth Demo',
      home: Scaffold(
        appBar: AppBar(title: Text("Firebase Auth Web Bug")),
        body: StreamBuilder<FirebaseUser>(
          stream: FirebaseAuth.instance.onAuthStateChanged,
          builder: (context, snapshot) {
            if (snapshot.hasData) {
              return const Center(child: Text("Signed in."));
            }
            return _Login();
          },
        ),
      ),
    );
  }
}

class _Login extends StatefulWidget {
  @override
  __LoginState createState() => __LoginState();
}

class __LoginState extends State<_Login> {
  String email;
  String password;
  bool isLoading = false;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(12),
      child: Column(
        children: [
          TextField(
            onChanged: (e) => email = e,
            decoration: InputDecoration(labelText: 'Email'),
          ),
          TextField(
            onChanged: (p) => password = p,
            decoration: InputDecoration(labelText: 'Password'),
          ),
          if (isLoading)
            CircularProgressIndicator()
          else
            FlatButton(
              onPressed: () {
                setState(() => isLoading = true);
                FirebaseAuth.instance.signInWithEmailAndPassword(
                  email: email,
                  password: password,
                );
              },
              child: Text("Login"),
            )
        ],
      ),
    );
  }
}

index.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="google-signin-client_id" content="159623150305-q05bbbtsutr02abhips3suj7hujfk4bg.apps.googleusercontent.com" />
  <title>Firebase Auth Example</title>
</head>
<body>
  <script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
  <script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-auth.js"></script>
  <script>
    // Your web app's Firebase configuration
    var firebaseConfig = {
      apiKey: "AIzaSyBMaLre-rTS-P_J7LlcHRfrKoL0WemP0kw",
      authDomain: "flutter-firebase-plugins.firebaseapp.com",
      databaseURL: "https://flutter-firebase-plugins.firebaseio.com",
      projectId: "flutter-firebase-plugins",
      storageBucket: "flutter-firebase-plugins.appspot.com",
      messagingSenderId: "159623150305",
      appId: "1:159623150305:web:b2b676fa6ead437bbf95a0"
    };
    // Initialize Firebase
    firebase.initializeApp(firebaseConfig);
  </script>
  <script src="main.dart.js" type="application/javascript"></script>
</body>
</html>

@Yacine-Benali
Copy link

any updates on this issue ?

@nilsreichardt
Copy link
Contributor Author

I don't know if the production bug (described in the description of this ticket) and the debug bug are the same, but I found a workaround for the production bug: Like I said the user can fix it by reloading the page. So I integrated this behavior into our app:

void _maybeReloadWindowOnWeb() {
    if (kIsWeb) {
      Future.delayed(const Duration(seconds: 5)).then(
        (_) {
          if (!_signedInBloc.isSignedIn) {
            pageReload();
          }
        },
      );
    }
  }
// ignore: avoid_web_libraries_in_flutter
import 'dart:html' as html;

void pageReload() {  
  html.window.location.reload();
}

This is the workflow:

  1. Call _maybeReloadWindowOnWeb after every login
  2. FirebaseAuth.instance.onAuthStateChanged returns a user, if the login was successful --> _signedInBloc.isSignedIn = true
  3. If the login wasn't successful, _signedInBloc.isSignedIn is still after 5 seconds false --> reload page

@nilsreichardt nilsreichardt changed the title [firebase_auth] Can't sign in after hot restart [firebase_auth_web] Can't sign in after hot restart Jun 27, 2020
@Salakar
Copy link
Member

Salakar commented Jul 3, 2020

cc @Ehesp - one that should be fairly quick to fix on the Auth rework branch - using the new didReinitializeFirebaseCore hot restart detection provided by core

@Salakar Salakar added blocked: customer-response Waiting for customer response, e.g. more information was requested. resolution: needs-repro This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin. labels Aug 25, 2020
@Salakar
Copy link
Member

Salakar commented Aug 25, 2020

Hey 👋

Our rework of the firebase_auth plugin as part of the FlutterFire roadmap was published over a week ago with a ton of fixes and new features. Please could you try the new version and see if this is still an issue for you? If it is then please submit a new up to date GitHub issue.

For help migrating to the new plugins please see the new migration guide: https://firebase.flutter.dev/docs/migration

@Salakar Salakar closed this as completed Aug 25, 2020
@firebase firebase locked and limited conversation to collaborators Sep 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: auth resolution: needs-repro This issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants