App misuse
Introducing a new service to send information about application usage to our servers.
Usage
Please contact IMS sales to use this feature.
Importing the library
To use app misuse APIs, add the module dependency and initialize by sending login
, logout
, or userAppLaunch
events.
Initializing the Misuse Library(iOS)
Initialize the Misuse API by creating Identity
and PermissionManager
objects, then pass them to AppMisuseManager
.
Calling Misuse API
There are a number of API's available depending on the service you require; choose and call the appropriate one accordingly. The serverType
can be .uat
or .prod
based on the deployment environment.
Enabling App misuse API
This API enables the Misuse API Service.
iOS SDK scheduler
Call the app misuse scheduler to send the event type every hour by calling
AppMisuseManager.enableAppMisuse()
Ensure to call the mentioned API within
application(_:didFinishLaunchingWithOptions:)
of app life cycle and register the scheduler key in theinfo.plis
t file for registering the scheduler.
Here's an example.
Disabling App misuse API
This API disables the AppMisuse API Service.
Here's an example.
Misuse Login API
This API sends AppMisuse information on Login.
Here's an example.
Misuse Logout API
This API sends AppMisuse information on Logout.
Here's an example.
Misuse User App Launch API
This API sends AppMisuse information on User Launch.
Here's an example.
Last updated