-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
The method "setInt" doesn't work on Android devices #5
Comments
Thanks for the feedback @loicparent, something a bit odd in the native SDK is the chat have to be open in native to allow any data to be sent. |
In fact, I call multiple functions one by one in a main function like this example: CapacitorCrisp.setUser(); // ✅
CapacitorCrisp.openMessenger(); // ✅
CapacitorCrisp.setSegment(); // ✅
CapacitorCrisp.setString(); // ✅
CapacitorCrisp.setInt(); // ❌
CapacitorCrisp.setString(); // ✅ So the chat should be opened but I don't wait till the promise (of openMessenger) finishes before calling the other functions. |
Thanks for the details, i did check the swift code, and it's the same structure for |
Hello @riderx, Thank you for your help 😃 This is not an issue with IOS but an issue with Android. In the Android code, the type of the expected value for the function |
oh good catch, you want to do to a PR ? |
Sorry for checking the wrong platform ! thanks for the fix, new version will be publish by CI |
|
Sorry for my late reply. I see that you've changed the code. Thank you :) |
Hello @riderx,
I noticed that the method
setInt()
works fine with IOS devices and with desktop browsers but, it seems to be an issue with the Android devices. When I call this function as in my exemple below, the data is not sent to the Crisp website.I don't know if this is related to this plugin or if it's related to the native Crisp SDK but I informe you here :)
Kind regards,
Loïc
The text was updated successfully, but these errors were encountered: