Web React
Last updated
Was this helpful?
Last updated
Was this helpful?
AmityUIKitProvider
requires an API key. You need a valid API key to begin using the UIKit. Please find your account API key in the Social Plus Console.
After logging in Console:
Click Settings to expand the menu.
Select Security.
On the Security page, you can find the API key in the Keys section.
You can specify endpoints manually via optional parameters. API endpoints for each data center are different so you need to adjust the endpoint accordingly.
We currently support multi-data center capabilities for the following regions:
Region
apiRegion
Endpoint URL
Europe
eu
apix.eu.amity.co
Singapore
sg
apix.sg.amity.co
United States
us
apix.us.amity.co
You must first register the current device with a userId
. A device registered with a userId
will be permanently tied to that userId
until you deliberately unregister the device, or until the device has been inactive for more than 90 days. A device registered with a specific userId
will receive all messages belonging to that user.
AmityUIKitProvider
should be placed only once at the top of your application. Having multiple providers will create connection problems.
To use the Uikit components with styling, css should be imported.