Added
- The customer can now see when an agent is typing.
- An agent can now see when a customer is typing.
- A constructor method that enables you to initialize the messenger (with a custom config) after it is loaded in. If the window.parleySettings is set it will automatically use that config and start up (for backwards compatibility).
Improved
- The messenger is now fullscreen on most mobile devices (not on tablets).
- Parley errors prefixed with [Parley Error] that appear in the browser's developer tools console.
Fixed
- Bug where Edge 15/16 Notifications would constantly appear in a loop
improved
- The chat is now fullscreen on mobile devices, this makes it easier to use the chat on mobile
Fixed
- Issue where setting 'hideInviteNotification' was ignored
- Issue with the buttonLabel, the styling changed when setting your own text instead of the default text
Fixed
- Error about alertCloseButtons that came up directly when starting the chat
Fixed
- Close alert buttons setting was ignored
- Issue where the text in the input field (inviteNotification popup) was not centered
Fixed
- Polling interval dit not reset after page reload
- Issue where on mobile you couldn't click the send button because the button was a div (don't know why that didn't work..)
Fixed
- Issue where Safari would complain about function declaration in lexically nested statements
- Styling issue where the "send button" would show below the invite screen on IE
Added
- Added external function for registering a device (so could be used to log someone in without reloading the page) "registerNewDevice()"
Fixed
- Fixed issue where messenger didn't open (if minimized) upon new message (only opens for new push message, polling doesn't do this yet.)
- Fixed issue where click on notification didn't open tab if it was closed
Fixed
- Fixed issue where system message weren't send when closing chat (it didn't have the headers)
- Fixed issue where polling was used even though push was ready (push setup was taking too long, when push setup is done we end the polling explicitly)
Fixed
- Always use localStorage (used sessionStorage for anon and local for non-anon, but we always want localStorage for both)
- On every new message, devices call was made and thus device kept registering as a new device (and thus push notifications didn't work because the pushToken was only made initial and bound to that device, but because we kept making new device they had no pushToken)
- When merging anon with non-anon, pushToken was reset in the device in DB, now the pushToken stays so the non-anon conversation can receive push notifications. To make this possible, we have to store the pushToken in the localStorage