All Products
Document Center

Privacy permissions

Last Updated: Mar 10, 2021


The regulatory authority requires that apps not call related sensitive APIs until users click the Agree button in the privacy agreement pop-up box. For this reason, this requirement is supported by all versions of mPaaS Android 10.1.68 baseline, or later versions of 10.1.60 baseline, and or later versions of 10.1.32 baseline. Please update the project as the case may be by referring to this document.

Instructions for Use

You need to enable the Privacy & Security Controls window in the app, and call the API of the framework to send the Agree broadcast after the user clicks the Agree button. After receiving the broadcast, the framework is initialized and also records the agree behavior of the user in the sharedpreference. You will be notified of the completion of the initialization through callback. You will be unable to use the capabilities of mPaaS components properly until you receive a callback.


1.In meta-data, set the switch for the pop-up dialog box for Privacy & Security Controls. By default, the switch is off.

  1. <meta-data
  2. android:name="privacy_switcher"
  3. android:value="true"></meta-data>

2.Use the following API to send the Agree broadcast.
Note: The broadcast can be sent only when the user clicks the Agree button.

  1. ```java

QuinoxlessPrivacyUtil.sendPrivacyAgreedBroadcast(Context context);

  1. 3.Whether the user has agreed the privacy agreement.
  2. ```java
  3. `QuinoxlessPrivacyUtil.isUserAgreed(Context context);

4.Update the flag indicating the user’s consent to the privacy agreement, allowing you to pop up this window again in a particular scenario.

  1. ```java

QuinoxlessPrivacyUtil.setUserAgreedState(Context context, boolean agreed);

  1. 5.Callback after the framework is initialized:
  2. - When 'QuinoxApplication' is used: The capabilities of mPaaS must be used after 'onMPaaSFrameworkInitFinished'.</br>
  3. **Note**: You must use 'QuinoxApplication' if you need to use the hot fix function.
  4. - When 'QuinoxApplication' is not used: The capabilities of mPassS must be used after 'onPostInit' of 'IInitCallback'.
  5. ```java
  6. QuinoxlessFramework.setup(this, new IInitCallback()
  7. {
  8. @Override
  9. public void onPostInit()
  10. {
  11. }
  12. });