Step 3: Advanced Integration
How to use appConsent object ?
Specify a dedicated endpoint at init
let appConsent = ACNotice(withAppKey: "YOUR_APP_KEY", dedicatedEndpointURL: "YOUR_BACKEND_ENDPOINT") self.appConsent = [[ACNotice alloc] initWithAppKey:@"YOUR_APP_KEY" dedicatedEndpointURL:@"YOUR_BACKEND_ENDPOINT"];Redirecting user to their Privacy Settings
This screen displays the user consent details and allows granular control, enabling users to provide consent for each individual item. User can also modify existing consent in that settings page.
appConsent.presentSettings(viewController: self)[self.appConsent presentSettingsWithViewController:self];Check if user gave consent
appConsent.consentGiven()BOOL consentStatus = [appConsent consentGiven];Return true if consent is given, false otherwise.
Implement delegates related to user consent
When the user has completed the consent process and given their consent, this delegate informs you whether our CMP did finish successfully or did fail. Depending on these delegate you can trigger some action on your end depending on your business logic
Assign ACNotice delegate to self
Add an extension to your ViewController that conform to that Delegate
Full View Controller implementation:
Implement AppConsentDelegate in your header ile (.h)
Assign ACNotice delegate to self
Then implement the delegate methods in your implementation file (.m) as per below
Full implementation ViewController implementation
ExampleObjcViewController.h
ExampleObjcViewController.m
Conform your ViewModel to AppConsentDelegate as per below
Add 2 published properties on your ViewModel in order to react on delegates
Full View Model implementation
SwiftUI View implementation AppConsentViewModel to receive delegates events
Check for update
This method allows you to check from our servers whether your Notice has been updated since it was last displayed on your user's device.

Our latest SDK supports both traditional callback-based APIs and the modern Swift concurrency approach using async/await for most methods. Check for update - callback-based
Check for update - Modern concurrency
Not available
GCM Status
ℹ️ As some annotations are not compatible with Objective-C, we do have separate method for Objective-C and Swift.
Example:
Return GCMStatus
Example:
Return GCMObjCStatus
Last updated