add logs to your crash report.
You can leave crash breadcrumbs which would describe previous steps that were taken in your app before the crash. They will be sent together with the crash report if the app crashes.
returns the error or success message
Call this function when app is loaded, so that the app launch duration can be recorded.
Should be called after init.
returns the error or success message
This method will ask for permission, enables push notification and send push token to countly server.
Should be call after Countly init
returns the error or success message
Starts session for manual session handling.
This method needs to be called for starting a session only if manual session handling is enabled by calling the 'enableManualSessionHandling' method of 'CountlyConfig'.
returns the error or success message
change the device ID
if onServer is true, the old device ID is replaced with the new one and all data associated with the old device ID will be merged automatically.
if onServer is false, the new device ID will be counted as a new device on the server.
returns the error or success message
Disable push notifications feature, by default it is enabled.
Currently implemented for iOS only
Should be called before Countly init
returns the error or success message
Set the optional salt to be used for calculating the checksum of requested data which will be sent with each request, using the &checksum field
Should be call before Countly init
returns the error or success message
End session for manual session handling.
This method needs to be called for ending a session only if manual session handling is enabled by calling the 'enableManualSessionHandling' method of 'CountlyConfig'.
returns the error or success message
Events get grouped together and are sent either every minute or after the unsent event count reaches a threshold. By default it is 10
Should be call before Countly init
returns the error or success message
Downloads widget info and returns widgetData, errorCountlyPresentableFeedback widgetInfo - identifies the specific widget for which you want to download widget data
returns a List widgetData and error message if any.
Present a chosen feedback widget
CountlyPresentableFeedback widgetInfo - Get available list of feedback widgets by calling 'getAvailableFeedbackWidgets()' and pass the widget object as a parameter.
String closeButtonText - Text for cancel/close button.
VoidCallback? widgetShown Callback to be executed when feedback widget is displayed
VoidCallback? widgetClosed Callback to be executed when feedback widget is closed
Note: widgetClosed is only implemented for iOS
returns error or success message
set attribution Id for campaign attribution reporting.
If this is call for iOS then 'attributionID' is IDFA
If this is call for Android then 'attributionID' is ADID
returns error or success message
Removes all requests with a different app key in request queue.
In request queue, if there are any request whose app key is different than the current app key,
these requests will be removed from request queue.
returns the error or success message
Replaces all requests with a different app key with the current app key.
In request queue, if there are any request whose app key is different than the current app key,
these requests' app key will be replaced with the current app key.
returns the error or success message
Report widget info and do data validation
CountlyPresentableFeedback widgetInfo - identifies the specific widget for which the feedback is filled out
Map<String, dynamic> widgetData - widget data for this specific widget
Map<String, Object> widgetResult - segmentation of the filled out feedback. If this segmentation is null, it will be assumed that the survey was closed before completion and mark it appropriately
returns error or success message
Set Automatic value download happens when the SDK is initiated or when the device ID is changed.
Should be call before Countly init
returns the error or success message
Set's the text's for the different fields in the star rating dialog. Set value null if for some field you want to keep the old value
String starRatingTextTitle - dialog's title text (Only for Android)
String starRatingTextMessage - dialog's message text
String starRatingTextDismiss - dialog's dismiss buttons text (Only for Android)
returns the error or success message
Set user location
String country_code - ISO Country code for the user's country
String city - Name of the user's city
String gpsCoordinates - comma separate lat and lng values. For example, "56.42345,123.45325"
String ipAddress - ip address
All parameters are optional, but at least one has to be set
returns the error or success message
This flag limits the number of requests that can be stored in the request queue when the Countly server is unavailable or unreachable.
If the number of requests in the queue reaches the limit, the oldest requests in the queue will be dropped.
Should be called before init.
returns the error or success message
Update session for manual session handling.
This method needs to be called for updating a session only if manual session handling is enabled by calling the 'enableManualSessionHandling' method of 'CountlyConfig'.
returns the error or success message
Sets the interval for the automatic session update calls
min value 1 (1 second),
max value 600 (10 minutes)
int sessionInterval- delay in seconds
returns the error or success message