Web library v1.3.0
- Added a feature to sync
userAdditionalInformationif you have different chats on different pages on your website. - Fixed issue where, if your device data was removed (due to data retention settings in admin.parley.nu), your messenger would not work anymore. Once we see that the current device data is not present anymore in Parley, we re-register this one so that the user can send messages again.
- Fixed issue where the
/devicescall was hardcoded on version 1.2 of the Client API. This is the call made when you have pushenabledand the client accepts browser notifications to register apushTokenwith your device so you can receive push notifications. - Fixed issue which showed
"you"as the Agent in the conversation export. It now shows "Operator" if the Agent name is not available.
Sync userAdditionalInformation
Let's say you have 2 pages:
/customer/chat/support
Both host the weblibrary, but with different userAdditionalInformation settings.
userAdditionalInformation: { source: 'customer_chat' }userAdditionalInformation: { source: 'support_chat' }
In previous versions when you switch between pages, your userAdditionalInformation wouldn't be updated.
In this version whenever you switch to a different chat, we compare the userAdditionalInformation from the window.parleySettings with the one we store in the localStorage. If they don't match, we'll update the one from the localStorage and we re-register your device to update the userAdditionalInformation in our Parley database.