Add support for additional "init" options

Created on 13 July 2024, 9 months ago

Problem/Motivation

Usersnap supports a few options for init() we should support all the available options.

options.custom: Record<string, any> – An object holding custom data. This data will be passed along with every feedback
options.user – An object holding information about the current user
options.user.email: string – Will be pre-filled in the widget and attached to every feedback
options.user.userId: string – Can be used for determining whether to show a widget or not
options.locale: string – Language in which widgets should be displayed
options.useSystemFonts: boolean – Can be used to disable loading external fonts. Defaults to false
options.useLocalStorage: boolean – Can be used to disable usage of localStorage. Defaults to true
options.nativeScreenshot: boolean – Can be used to enable the usage of the native screenshot feature. Defaults to false
options.collectGeoLocation: 'all' | 'none' – can be used to disable the collection of IP and geo location. Defaults to 'all'

https://help.usersnap.com/reference/global-api#init

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States grndlvl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024