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

ComectChat starts new activity stack every time #8

Closed
imdBhargav opened this issue Nov 23, 2018 · 5 comments
Closed

ComectChat starts new activity stack every time #8

imdBhargav opened this issue Nov 23, 2018 · 5 comments

Comments

@imdBhargav
Copy link

If I have 5 users in my app and click on 1st user to chat with him.
It starts cometchat screen.
I came back from chat to my app
now I click on 2nd user to chat with him
It starts chat with 2nd user
Now coming back,
it will show the main cometchat screen, then 1st user chat window and then again main screen and then it came to my app.

Everytime i starts cometchat, It creates a new activity task and not replacing an existing one.
Or may be on exiting cometchat, its not kill that app.

@jitvarpatil
Copy link
Contributor

Hi @imdBhargav
Thank you for contacting us, we are analyzing the above-mentioned issue and will provide you with a solution shortly.

@imdBhargav
Copy link
Author

Thanks @jitvarpatil

@jitvarpatil
Copy link
Contributor

Hi @imdBhargav

We have tested analyzed the issue you are facing. It seems that you are giving multiple calls to launchCometChat() method and multiple windows are getting added in the stack. However, we have addressed this issue at our end and the fix will be available in our next release.

Feel free to contact us for any other queries or issue.

@jitvarpatil jitvarpatil self-assigned this Nov 26, 2018
@imdBhargav
Copy link
Author

Hi @jitvarpatil Thanks for your reply

Can you please suggest any other possible way to open a chat for different users without giving multiple calls to launchCometChat() as for as I know the only way to open a chat is calling launchCometChat through uid

@jitvarpatil
Copy link
Contributor

Hi @imdBhargav

Yes, You're correct. The only way to launch CometChat is using launchCometChat() method. You can add the following line of code in the manifest file to fix the issue you are facing.

android:launchMode="singleInstance"

In CometChatActivity & CCSingleChatActivity tags. Feel free to contact us for any other queries or issue.

Thank You

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

2 participants