'How to resolve connect.describeContact is not a function?

I am trying to make a call to describeContact operation using the AWSJavaScriptSDK. I am following the documentation but somehow the call is not working. Below is my code.

const params = {
  ContactId: 'some_value', 
  InstanceId: 'some_value'
};

const attributes = await connect.describeContact(params).promise();

I receive -

connect.describe is not a function.

Interestingly, when I replace describeContact with getContactAttributes in the call, I no longer receive "not a function" error and it works just fine (after I change the params). Both the operations have exactly the same signature.

Can someone please guide me here ?
Connect api version = 2017-08-08



Solution 1:[1]

You need something like this: https://pub.dev/packages/awesome_notifications because you can not do it by yourself, the only way is using notifications...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andre Fontana