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

App opens to black screen on first run #289

Open
erikpopp opened this issue May 31, 2024 · 5 comments
Open

App opens to black screen on first run #289

erikpopp opened this issue May 31, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@erikpopp
Copy link

Description
I was intrigued when I saw this app in the F-Droid store, but when I installed it and tried opening it, I found that it didn't start properly.

It opened to a black screen (see attached screenshot).

Interestingly, when I tried uninstalling and reinstalling chrono, it worked fine.

To Reproduce

  1. On GrapheneOS, download chrono from the F-Droid store
  2. Open chrono from F-Droid
  3. Manually close app by going to switch app screen and swiping on chrono
  4. Open chrono again. I opened it from the normal app menu, but I would presume it doesn't matter where it is opened from. When I subsequently tried opening chrono from F-Droid it seemed to work fine.

Expected behavior
App opens to initial screen.

Screenshots
First run:
Screenshot_20240531-060109

Second run after closing app and reopening:
Screenshot_20240531-061808

Smartphone Information

  • Device: Google Pixel 7 Pro
  • OS: GrapheneOS (Android 14)
  • Kernel: 5.10.214-android13-4-gff787e312580
    APKs signed with debug key? #1 Tue May 21 13:40:28 UTC 2024
  • Google Services Framework version: 14
  • Google services framework target SDK: 34
  • Google Services Framework MiniSDK: 34
  • GMSCompat Config version 114
  • App version: 0.5.1

Additional context
If this issue is difficult to reproduce, it might be specific to GraphrneOS.

GrapheneOS is a security and privacy focused Android ROM that uses a sandbox called GMSCompat to isolate Play Services from the rest of Android; thus enabling GrapheneOS to limit its permissions like any other app. This solves the problem of Google listening to your conversations, among other things.

If this issue only happens on GrapheneOS, then odds are you are doing something that confuses GMSCompat. This could mean you are calling a function that GMSCompat does not currently support or it could mean that you are running into a permissions issue. You could also have done something that is technically not correct but but still works on most Androids.

@erikpopp erikpopp added the bug Something isn't working label May 31, 2024
@AhsanSarwar45
Copy link
Collaborator

Thanks for the report. It does seem specific to GrapheneOS since I can't reproduce it. I'll take a look if something isn't allowed under GMSCompat. The app mostly just creates some data files on first launch and gets notification permission. Did it ask you for notification permission on first or second launch?

@erikpopp
Copy link
Author

erikpopp commented Jun 2, 2024 via email

@AhsanSarwar45
Copy link
Collaborator

Are you familiar with using adb logcat? Or if your phone is rooted, or has Shizuku, you can install a logcat app like LogFox. Or if you have flutter sdk on you computer, you can run flutter logs to get cleaner logs. If its possible for you to do this, can you sends the logs you get after opening my app?

My app only really reads or writes within its own app data directory, so that probably isn't an issue.

@benni347
Copy link

I had the same problem on the native Google Pixel 9 Pro, android 15 beta.

@AhsanSarwar45
Copy link
Collaborator

I was able to reproduce one case where this occurred. Not sure if that was your case as well, but I have fiixed that. Can you test with 0.6.0-beta1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants