Closed ShumailaAshiqHussain closed 2 weeks ago
Hello,
Switching between users should be performed using personalize method. SaveUser is designed to update current user with the provided data.
Please refer to these articles - personalization and profiling.
As for the unknown error - there is currently a bug on backend, which affects error response parsing on Android devices. We will fix it soon, and you will be able to see them properly as described here
Hello,
You have disclosed your private API key. Please delete it from here, and create a new application at Infobip Portal.
As for the personalization logic and implementation details - please contact your designated account manager and/or implementation consultant as these questions are out of technical scope.
You should not fetchUser or getUser before personalization. Personalization should be performed by some unique key only - be it externalUserId, phoneNumber, or email.
ok, thank you
I’ve successfully implemented Infobip Mobile Messaging for chat in my app, and it’s working perfectly. However, I’m facing an issue where chat messages are displayed according to the device, not the user. Specifically, if a user logs in on one account, chats are shown correctly. But if the user logs out and another user logs in on the same device, the previous chat messages still appear. This means that when the new user opens the chat, they see old messages from the previous account, which is not acceptable.
I need a solution to ensure that chat messages are associated with the current user ID so that each user only sees their own chat history.
From the Infobip Mobile Messaging package I found the methods
saveUser
,fetchUser
, andgetUser
. I’m attempting to use the saveUser method to handle user-specific chat messages, but I’m encountering an error. Here’s the code from my InfobipService class:Error: MobileMessaging API returned error (user data)! Error initializing Infobip: PlatformException(-1, Unknown error, SERVER_ERROR, -1, Unknown error, null)
Could you assist me in resolving this issue?
Looking forward to your advice.