Updating google consents on React Native Application

150 Views Asked by At

I recently received an email from google asking to modify some params related to analytics. I am having issues trying to update the value of ad_storage.

When i read the documentation, i can not find how to do it in react native. I see this for swift

Analytics.setConsent([
  .analyticsStorage: .granted,
  .adStorage: .granted,
  .adUserData: .granted,
  .adPersonalization: .granted,
])

However, i am using @react-native-firebase/analytics and i can not see the setContent function, can anyone help me with this issue? I need to ask the user and update those values.

1

There are 1 best solutions below

0
Ace090 On

The setContent function it's been merged with this PR https://github.com/invertase/react-native-firebase/pull/7629.