Black screen when unlock by notification
See original GitHub issueBefore openning an issue
- Reproduce it with the example project in this repo. Check
- 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
- What version of RN and react-native-fcm are you running? RN: 48.4 FCM: 9.7.2 to 10.0.3
- What device are you using? (e.g iOS9 emulator, Android 6 device)? iPhone 5s 10.3 iPhone 5s 11+ iPhone 6s 11+
- 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:
- Created 6 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
have you tried adding a timeout before navigation?
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”,
Tested on iPhone X, 6S and 7
Any hint is appreciated 🙏