Senior-Project-CSE-3213 / sp_flutter_app

iOS/Android app built with Flutter using MVVM architecture
3 stars 1 forks source link

White Screen on iOS #14

Closed JustinASmith closed 3 years ago

JustinASmith commented 3 years ago

It appears that iOS version of app is only displaying white screen. I tested this on my iPhone by actually building the app in release mode and code signing.

It appears that it is a common error that is going on. I will investigate further.

Schweinsei007 commented 3 years ago

The same happened to me on the ios emulator.

JustinASmith commented 3 years ago

The same happened to me on the ios emulator.

@Schweinsei007 Can you look into this too since you can run iOS emulator. If it is doing it on the emulator and we can figure out why and fix it, then we should be able to avoid the issue in releases.

JustinASmith commented 3 years ago

When we figure out a fix for this it would be nice to add all iPhone users to the provisioning profiles of the app code signing so that I can distribute the app to your email.

So when we figure this out I will be reaching out. I think all I need is your iPhone UDID and a good email for you to add your device to the Apple provisioning profiles and the email to send the invite link and download for the app.

JustinASmith commented 3 years ago

@Schweinsei007 Any luck on this? If you run the app and see that there are erros in the terminal could you paste the full stack trace here?

JustinASmith commented 3 years ago

I've bought myself a new Macbook Air with the new M1 processors and have been debugging this. The culprit seems to be the GoogleService-Infor.plist file. @Schweinsei007 Make sure you have a valid GoogleService-Infor.plist file for iOS in the ios/Runner directory.

To get this issue resolved at least for development: Go to your firebase project you have setup and go under the iOS settings and download the GoogleService-Info.plist file into that directory.

image

As far as releasing the app to the App Store, I will have to figure that out later. The encrypted GoogleService-Infor.enc file in that same directory is decrypted before the CI (Codemagic) runs the build and signs the app. I'll close this issue for now and work on fixing this in the future releases.