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

BacktoApp is not working #25

Closed
fazzysyed opened this issue Dec 18, 2022 · 9 comments
Closed

BacktoApp is not working #25

fazzysyed opened this issue Dec 18, 2022 · 9 comments

Comments

@fazzysyed
Copy link

fazzysyed commented Dec 18, 2022

backtoapp is not working when app is quit

@linhvovan29546
Copy link
Owner

@fazzysyed Can you provide more information? library version, android version, device info,..

@fazzysyed
Copy link
Author

Android 12
library version is 0.1.8
Samsung S20+

@linhvovan29546
Copy link
Owner

BacktoApp function only work when action from quit state, can you provide context for me to be more clear

@fazzysyed
Copy link
Author

the answer listener is not working we the app is closed

@AliSaeed090
Copy link

AliSaeed090 commented Mar 6, 2023

CustomIncomingCall UI shows when app is in quit state and screen is locked but RNNotificationCall.backToApp(); does not work when answer call from CustomIncomingCall components answer button
@linhvovan29546
"react-native": "0.70.1",
"react-native-full-screen-notification-incoming-call": "^0.1.9",

@linhvovan29546
Copy link
Owner

@AliSaeed090 Function backtoApp() only work when app not launched yet, can you try this function RNNotificationCall.answerCall

@AliSaeed090
Copy link

@linhvovan29546
I did the same but not working. Specifically when we used with CustomIncomingCall component on locked screen. it works great when we answer call from heads-up notification. May be when we used it with CustomIncomingCall it launched the app in background and backtoApp() dont call

@linhvovan29546
Copy link
Owner

@AliSaeed090 I'm busy now, i will check later

@linhvovan29546
Copy link
Owner

linhvovan29546 commented Mar 8, 2023

@AliSaeed090 Can you try add this line
image
from https://github.com/react-native-webrtc/react-native-callkeep/blob/master/android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java to function backtoApp() inside FullScreenNotificationIncomingCallModule.java file
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants