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

Get session ID from SDK #125

Closed
harry-sm opened this issue Jun 24, 2022 · 7 comments
Closed

Get session ID from SDK #125

harry-sm opened this issue Jun 24, 2022 · 7 comments
Assignees
Milestone

Comments

@harry-sm
Copy link

Hello, I'm not able to get the chat session id from the SDK. I want to use the session id with the the RTM API to get messages associated with that chat. Doing this allows me to push notifications even if the chat is not in the foreground.

@Doc1faux
Copy link
Collaborator

Hello @harry-sm and thank you for your feedback.

I've just seen this API is available in the Web Chatbox SDK.
Currently it is not available on both native Android and iOS SDKs but I pass the information to the Crisp team if this can be added in a future SDK release :)

@harry-sm
Copy link
Author

Hello @Doc1faux
Ultimately an onagentmessage event like the JS SDK would be optimal.

@crisp-im crisp-im deleted a comment from baptistejamin Oct 25, 2022
@harry-sm
Copy link
Author

@baptistejamin @Doc1faux
Use case: The user is speaking with an agent in the app. The user leaves the chat screen and is on someone another screen I just want them to see an in-app message when the agent responds. So they can go back to the chat. that's it. An onagentmessage event would be perfect.

@Doc1faux
Copy link
Collaborator

Hi @harry-sm,

String Crisp.getSessionIdentifier(Context) public API has just been added to the new 1.0.15 release.
Its usage is equivalent to the Web Chatbox SDK one.

@baronha
Copy link

baronha commented Jan 25, 2024

Hi @harry-sm,

String Crisp.getSessionIdentifier(Context) public API has just been added to the new 1.0.15 release. Its usage is equivalent to the Web Chatbox SDK one.

I have a question?
How do I know CrispChat SDK has finished loading so I can get the sessionId.

@Doc1faux
Copy link
Collaborator

Hi @baronha,
Currently, Android SDK does not support event callbacks as the Web SDK does.
However, it's clearly an area of improvements as it seems iOS SDK should support it too, but I did not found the registering method on the current 2.4.4 version.
I'll discuss of it with the team if and when we could add it to our roadmap.

@harry-sm
Copy link
Author

Hey @baronha and @Doc1faux

I agree that the callbacks from the Web SDK should be added to Android, IOS, and Flutter SDKs.

We weren't getting any in-app notifications with the mobile SDKs so we just added crisp via web view in our mobile app.

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

No branches or pull requests

4 participants