question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Black screen when unlock by notification

See original GitHub issue

Before openning an issue

  1. Reproduce it with the example project in this repo. Check
  2. If you can’t receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team

When openning an issue, please include following information for better support

  1. What version of RN and react-native-fcm are you running? RN: 48.4 FCM: 9.7.2 to 10.0.3
  2. What device are you using? (e.g iOS9 emulator, Android 6 device)? iPhone 5s 10.3 iPhone 5s 11+ iPhone 6s 11+
  3. Is your app running in foreground, background or not running? background

When receive a notification, and the screen is locked. When you slide the notification and you unlock, we’ve got a black screen.

I dont’ know why, but we found a temporary solution like that:

ios/RNFIRMessaging.m (Remove this param)

, @"completionHandler": completionHandler

(link to commit: https://github.com/eiosca/react-native-fcm/commit/aca3123f216bedac62507039ce7ea7b7284e3c1f)

Thk’s

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
evollucommented, Sep 7, 2018

have you tried adding a timeout before navigation?

1reaction
taschikcommented, Aug 23, 2018

Hi,

we are running into the same issue. Opening a notification, when the app is not running, from the lock screen or from the notificatio ncenter works like expected. However, if the app is running in the background but the screen is locked, and you tap a notification to open the app, it opens it and displays a black screen.

Here are our used versions:

RN: 0.55.4 react-native-fcm: “^14.1.2”,

  • Firebase/CoreOnly (5.6.0):
    • FirebaseCore (= 5.1.1)
    • Firebase/Messaging (5.6.0):
      • Firebase/CoreOnly
      • FirebaseMessaging (= 3.1.0)
    • FirebaseCore (5.1.1):
      • GoogleUtilities/Logger (~> 5.2)
    • FirebaseInstanceID (3.2.1):
      • FirebaseCore (~> 5.1)
      • GoogleUtilities/Environment (~> 5.2)
    • FirebaseMessaging (3.1.0):
      • FirebaseCore (~> 5.0)
      • FirebaseInstanceID (~> 3.0)
      • GoogleUtilities/Reachability (~> 5.2)
      • Protobuf (~> 3.1)

Tested on iPhone X, 6S and 7

Any hint is appreciated 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Black Screen on unlocking, what is this?
You can however prevent the notifications from being shown on the Lock Screen. Go to Settings -> Security & location -> Lock screen...
Read more >
5 Proven Ways to Fix Android Black Screen of Death - iMobie
Way 1. Fix Android Black Screen by Resolving Android System Issue ... What do you do when your phone screen goes black? Normally,...
Read more >
Google Pixel black screen issue when notifications arrive ...
Google Pixel users say they see a black screen when notifications arrive. It looks like the issue surfaced after the December update.
Read more >
Screen goes blank when notification appears at top of screen
Starting today when I get a notification and it pops up at the top of my phone, the screen goes blank (black) with...
Read more >
help: disable black lockscreen go back to regular lockscreen
I noticed when I go to unlock the phone via face unlock by pressing the power button, the black lock screen goes away...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found