Skip to content

backToForeground() does not work when app is closed on Android #21

Open
@jfaltis

Description

@jfaltis

First of all: This is a very nice library! I am using callkeep to display an incoming call notification when a message is received via firebase_messaging in onBackgroundMessage. When the user answers the incoming call I call backToForeground() and endCall() to just open the app when answering the call. This works pretty good when the app is running and in the background.

But when the app is closed and a message is received it shows the incoming call notification but when you click on answer, it doesn't launch the app.

I think this is a critical feature for such use case since it can't be guaranteed that the app is alive. I don't know how easy it is to extend backToForeground() so it handles this case properly or if this is even possible at all.

I have yet to test the behavior on iOS if it launches the app by default because backToForeground is not implemented for iOS according to the source code of callkeep.

If you know an alternative solution, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions