Skip to main content

51 posts tagged with "Web library"

New versions for the web library

View All Tags

Web library v1.5.0

  • Added new setting which allows you to hide the input field (in the invite notification) when the client is outside the defined business hours (weekdays). hideInputAfterBusinessHours

  • Added translation for aria labels

  • Changed default pushType to 6, which is the "universal" FCM solution created in the Client API, docs

  • Added code which will create the key pushType in your localStorage with the supported pushType this library has (in this case 6) as the value. This key/value is queried on start of the chat. If the key doesn't exists BUT the pushToken key does exist, we can assume that this pushToken is used with version 3 and we should delete it and re-register the device with a new pushToken which is generated for version 6.

Web library v1.4.0

Do not use this version!

There is a bug in this version which prevents showing images. They are still sent to the Service but the Client cannot see them.

This is fixed in v1.4.1

Added

  • An event for when the chat is opened
  • The ability to see quick reply suggestions and use them to reply

Fixed

  • A bug when a weekday had a start time of 00:00

Web library v1.3.0

  • Added a feature to sync userAdditionalInformation if 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 /devices call was hardcoded on version 1.2 of the Client API. This is the call made when you have push enabled and the client accepts browser notifications to register a pushToken with 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.

Web library v1.2.24

Fixed issue where the "fullscreen" mode, on mobile iOS devices using Safari, was not correctly updating it's height.

There are some devices which are unsupported, here is the list:

  • iPhone 6 - iOS, v11
  • iPhone X - iOS, v11
  • iPhone 6S - iOS, v9
  • Probably other devices with older OS versions...

Basically, if your device is up-to-date you shouldn't have any problems.

Web library v1.2.20

  • Added support for timestamps in the weekdays setting.
  • Fixed an issue where "inactive" clients where still making a lot of polling (polling info) requests for new messages.

Timestamps in weekdays

You can now define your business hours for specific dates using the following format:

window.parleySettings = {
"weekdays": [
["Sunday"]
["Monday", 8.00, 22.00],
["Tuesday", 8.00, 22.00],
["Wednesday", 8.00, 22.00],
["Thursday", 8.00, 22.00],
["Friday", 8.00, 22.00],
["Saturday"],
[1603177200, 1603188000] // Tue Oct 20 2020 09:00:00 - 12:00:00 (GMT+0200)
]
};

Fixed polling

The way this worked was, whenever your document has focus (document.hasFocus()), it wil never go past the 30 second rule in the polling rules. This was made so any new messages for an "active" conversation would be retrieved faster. This rule now has been extended to also check if you are within the defined business hours; if you are not, the rule will go past 30 seconds (because the chances you get a response from an Agent is rather small here).