Configuration

Capabilities

In order to take advantage of the full features of the SDK and obtain the best results, all capabilities should be enabled, however we believe that developers should be able to choose the capabilities which suit their needs best. The following capabilities can be enabled.

The Location capability is essential to be able to gather useful data so ensure that it is enabled and that the permission is set to "Always Allow"

Permissions

Permissions are not requested by the SDK so that the App developer can have control over when and how to prompt the user for the specific permissions. This allows for a better approach to onboard the user and explain the advantages of giving the app the required permissions.

Permissions can be set during the SDK initialization or set at a later time if their values are changed.

func updatePermissions(permissionType: PermissionType, permissionStatus: Bool, completion: @escaping (_ status : HabitStatusCode) -> Void)

Last updated