question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Constants.installationId has been deprecated in favor of generating and storing your own ID

See original GitHub issue

Summary

Installed expo-firebase-analytics and now it is throwing this alert:

Constants.installationId has been deprecated in favor of generating and storing your own ID. Implement it using expo-application’s androidId on Android and a storage API such as expo-secure-store on iOS and localStorage on the web. This API will be removed in SDK 44.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS

SDK Version (managed workflow only)

41.0.1

Environment

Expo CLI 4.5.1 environment info: System: OS: Windows 10 10.0.19041 Binaries: Node: 14.2.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312 npmPackages: expo: ^41.0.1 => 41.0.1 react: ~16.9.0 => 16.9.0 react-dom: ~16.9.0 => 16.9.0 react-native: ^0.63.0 => 0.63.4 react-native-web: ~0.11.7 => 0.11.7 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

Follow the blog: https://blog.expo.io/using-firebase-analytics-with-expo-222ca84e4d33

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
byCedriccommented, Sep 2, 2021

Hi @adarshkhatri! Thanks for mentioning this. It’s correct that we warn for this because this might affect a lot of apps. We haven’t fully migrated all of our modules to not use this anymore. We will do so before fully removing this functionality though.

We put this warning in here already to give every user the time to migrate away from this feature.

For now, you can ignore this warning by using one of these options.

Hope this helps!

0reactions
github-actions[bot]commented, Feb 3, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

expo: Constants.installationId has been deprecated #1526
Constants.installationId has been deprecated in favor of generating and storing your own ID. Implement it using expo-application's androidId ...
Read more >
How to set Constants.installationId for react native expo?
installationId has been deprecated in favor of generating and storing your own ID. Implement it using expo-application's androidId on Android ...
Read more >
Constants - Expo Documentation
Deprecated. Constants.installationId is deprecated in favor of generating your own ID and storing it. An identifier that is unique to this particular device ......
Read more >
Dont update expo sdk to 44 until bugsnag fixes - React Native
Constants.installationId has been deprecated in favor of generating and storing your own ID. Implement it using expo-application's androidId ...
Read more >
expo-constants - npm
Start using expo-constants in your project by running `npm i expo-constants`. There are 247 other projects in the npm registry using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found