Skip to content

Commit

Permalink
docs(analytics): emphasize the need to install Async Storage
Browse files Browse the repository at this point in the history
it was already documented, but not directly in analytics, and not mentioning
the consequence in analytics of not installing AsyncStorage
  • Loading branch information
mikehardy committed Feb 10, 2025
1 parent 4c38caa commit cb4ac46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/analytics/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ import analytics from '@react-native-firebase/analytics';
const appInstanceId = await analytics().getAppInstanceId();
```

### Web / Other platform instance id

Ensure you have installed an Async Storage provider for Firebase to preserve the instance id. Failure to do so means the instance id will be reset every time the application terminates.

The main documentation for "other platform" support contains [an example.](/platforms#async-storage)

# Disable Ad Id usage on iOS

Apple has a strict ban on the usage of Ad Ids ("IDFA") in Kids Category apps. They will not accept any app
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ await firebase.initializeApp({ ... });
If you do not provide an Async Storage implementation, we use an in memory implementation
which will result in resetting the data every time your app is restarted, in the case of
Firebase Auth this means your users have to sign in again.
Firebase Auth this means your users have to sign in again and for Firebase Analytics the app will generate a new instance id and look like a new installation every time.

### Analytics

Expand Down

0 comments on commit cb4ac46

Please sign in to comment.