CCPA Open Source Library

The new California Consumer Privacy Act (CCPA) officially came into effect on 1 January, 2020.  The purpose of the CCPA is to protect the personal information of California residents. 

CCPA applies to all companies doing business in California. If a California resident uses a publisher’s mobile application, then the CCPA applies to that publisher and every company that processes the personal information of the app’s users.

To simplify the process for a publisher to provide explicit notice that a consumer has exercised their right to prevent their personal information being used, Fyber has published an open source project for both Android and iOS, which any Publisher can use in their application to create the US privacy string.

The projects

Set out below are the links to the projects and the required files per operating system.

Android

For the Android project, click here.

Part 1: Importing the maven repository to your gradle file

Part 2: Adding the dependency to your gradle file

Part 3: Importing the classes to your relevant activity

Part 4: Using the CCPA string builder

Once you have the user’s answers regarding the required privacy settings, use the following code to create the privacy string, for example:

iOS (Swift v5.0)

For the iOS project, click here.

Part 1: Importing the pod to your application

Part 2: Installing the pod

Open your terminal and run pod install to install the new pod in your application.

Part 3: Importing the framework

Part 4: Using the CCPA string builder

Once you have the user’s answers regarding the required privacy settings use the following code to create the privacy string, for example:

For more information on Fyber and CCPA, refer to Fyber’s Resource Page.

Read these next