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

[enhancement] How to avoid problems with new threads being launched in Android #637

Open
kim-jinmo opened this issue Jan 24, 2025 · 0 comments

Comments

@kim-jinmo
Copy link

First of all, please understand that I used a translator because my English is not good.

When the app is already open, it opens a new thread.
The solution to this problem is to simply add the following code to user's AndroidManifest.xml:

<activity
            android:name="com.hiennv.flutter_callkit_incoming.TransparentActivity"
            android:launchMode="singleInstance"
            tools:replace="android:launchMode"/>

This way, you don't need to change the launchMode of MainActivity below to singleInstance.

I request developers to also add singleInstance to flutter_callkit_incoming project.

If you have any problems, please share them with us.

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

1 participant