Advanced integration
The Ogury SDK provides additional methods to handle specific cases. These methods are covered in this article.
The edit option might not be available and then calling the
edit
method will return an error in the following cases:- if the user is not located in the EU, i.e. not in a country where the GDPR applies;
- if the user has already paid to access your app using the Fair Choice feature;
- as a result of a specific configuration on the Ogury Dashboard;
Before displaying the edit button, you should check this option with the following method:
Swift
Objective-C
OguryChoiceManager.shared().editAvailable()
[[OguryChoiceManager sharedManager] editAvailable];
We recommend to use this method once the synchronization triggered by
ask
method has completed. Otherwise this method returns true
by default.To check if the GDPR applies in the region of the user, you can call the following method:
Swift
Objective-C
OguryChoiceManager.shared().gdprApplies()
[[OguryChoiceManager sharedManager] gdprApplies];
We recommend to use this method only in the completion block of the
ask
and edit
methods to get the updated value of the consent signal. Your users can enable or disable collection and processing of their precise geographic location with Ogury Choice Manager.
You can use the following call to check if the user has consented to the collection of his geographic location:
Swift
Objective-C
OguryChoiceManager.shared().tcfV2.isSpecialFeatureAccepted(.preciseGeolocation)
[[[OguryChoiceManager sharedManager] tcfV2] isSpecialFeatureAccepted:OguryChoiceManagerSpecialFeaturePrecicesGeolocation];
We recommend to use this method only in the completion block of the
ask
and edit
methods to get the updated value of the consent signal. If there is no consent signal for a given user, this method returns
false
as default value. In this case, you can start Ogury SDK and other vendors' SDKs as if the user had not provided their consent. The consent notice will be displayed at the next ask
call and the consent status will then be updated. Your users can enable or disable scan, collection and processing of devices characteristics with Ogury Choice Manager.
You can use the following call to check if the user has consented to the scan and collection of devices characteristics:
Swift
Objective-C
OguryChoiceManager.shared().tcfV2.isSpecialFeatureAccepted(.scanDeviceCharacteriscs)
[[[OguryChoiceManager sharedManager] tcfV2] isSpecialFeatureAccepted:OguryChoiceManagerSpecialFeatureScanDeviceCharacteriscs];
We recommend to use this method only in the completion block of the
ask
and edit
methods to get the updated value of the consent signal. If there is no consent signal for a given user, this method returns
false
as default value. In this case, you can start Ogury SDK and other vendors' SDKs as if the user had not provided their consent. The consent notice will be displayed at the next ask
call and the consent status will then be updated.