collectDeviceDNA method from libRiskAuthDeviceDNA returns Code=1070

book

Article ID: 5681

calendar_today

Updated On:

Products

CA Rapid App Security CA Advanced Authentication CA API Gateway

Issue/Introduction

Our developers are calling the collectDeviceDNA method as follows (everything should be imported correctly, because there is no error): 

RMDeviceInventory.sharedInstance().collectDeviceDNA(self, withTimeout: timeout) 

Implementation of RMDeviceInventoryDelegate: 

//MARK: RMDeviceInventoryDelegate 

extension SampleClassPresenter: RMDeviceInventoryDelegate { 

func didCompletedCollectingDeviceDNA(_ deviceDNA: String!) { 

print(deviceDNA) 

func didFailWithError(_ error: Error!) { 

print(error) 

 

Every time they are getting an error in didFailWithError method (code 1070,without any description). 

Please can you advise what this error message means, as there is nothing in any documentation that we can find. 

We have tried the code on the emulator and physical devices.

Environment

ca-devicedna-iOS-sdk-8.1.2.2iOS10

Resolution

Follow these steps:

1. Add the mentioned permissions in this link to the manifest file:

2. There are now iOS methods you need to call to request permission for Core Locations from user.

3. Once user provides the Core Locations permission, then everything works properly.