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.

unlock phone when swipe to answer an incoming call

See original GitHub issue

Bug report

  • I’ve checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • iOS

Description

when receiving a call and the app is in background and phone locked when you swipe to answer it doesnt swipe to unlock and answer, just answer so you’re presented the swipe to unlock normal apple screen when your phone wakes up.

when the phone wakes up, the app does not launch, because it already tried to launch when the incoming call was answered and the phone was blocked.

Steps to Reproduce

answer a call when the phone is locked.

Versions

- Callkeep: 3.1.1
- React Native: 0.60.4
- iOS: 14.1
- Android:
- Phone model: iPhone 11

Logs

Paste here

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

4reactions
JayPerfettocommented, Jun 23, 2021

Has anyone found a resolution to this bug? I face the exact same issue in flutter using CallKeep, and it seems to be an extremely common problem / use case that no one has figured out even remotely…Slack, FBMessenger, Whatsapp, WeChat, they all seem to have found a workaround and yet we cannot

1reaction
hariks789commented, Sep 27, 2021

Has anyone found a resolution to this bug? I face the exact same issue in flutter using CallKeep, and it seems to be an extremely common problem / use case that no one has figured out even remotely…Slack, FBMessenger, Whatsapp, WeChat, they all seem to have found a workaround and yet we cannot

@subinsuresh @JayPerfetto I am using react-native-push-notifications along with USE_FULL_SCREEN_INTENT to present a local notification using FCM data only notifications… Refer this PR https://github.com/zo0r/react-native-push-notification/pull/2112

This will launch the app even in lock-screen and you can present your own call UI using onNotification listener. When you exit the app the screen goes back to lock screen. Just like Whatsapp Only downside is that the app will always display on top of lockscreen due to this permission. Like your app is in foreground and you manually lock phone and you turn the screen back on, you will still be able to access app without lock/pass code. Reference https://stackoverflow.com/questions/60876523/how-to-lock-android-device-after-unlocking-with-setshowwhenlockedtrue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does Answering A Call Unlock An Android? - iSkysoft Toolbox
Below are the easiest paths: Answer a phone call: Simply swipe the white circle to the top of the screen when your phone...
Read more >
Can't Answer Incoming Call from Lock Screen After Android 9 ...
Long press on Assistant menu, after enabling it. · Enable Single tap to swipe.
Read more >
Does Answering A Call Unlock An iPhone? (Explained)
When your iPhone is locked and a call comes in, the “Slide to Answer” screen appears, and sliding the button to the end,...
Read more >
How come when I get a call, sometimes it's 'slide to answer ...
Its based on whether or not your phone is unlocked. If it's locked and you receive a call you'll have the slide. If...
Read more >
[Q] How to answer incoming calls without having to unlock the ...
You do not need to unlock the phone to answer your call. To Answer a phone call on a Samsung phone, you'll need...
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