firebase / firebase/firebase-unity-sdk
[Bug] INVALID_APP_ID error on Android
- Dominant language
- C#
- Stars
- 320
- Forks
- 60
- Avg merge
- 13h 32m
- Merged PRs (30d)
- 13
Description
### What is your question?
I'm troubleshooting what is likely a configuration error on my end, but I'm having trouble narrowing down the problem due to a vague error message.
Our build fails to login with the error `An internal error has occurred. [ INVALID_APP_ID ]`. Frustratingly this is only occurring when the game is built in our production pipeline, so I don't have a full call stack.
I can't find any documentation that specifies what app id the error is referring to (e.g. is it the mobile bundle id, the Firebase app id, or something else) other than [this page](https://firebase.google.com/docs/reference/js/auth#autherrorcodes) which simply has `INVALID_APP_ID`'s string value. [This page](https://firebase.google.com/docs/auth/ios/errors) has a list of helpful descriptions of exceptions, but I'm not sure which one this error maps to, if any.
Can someone provide some additional info on why the `INVALID_APP_ID` error occurs, and what might be some things to look into?
### Firebase Unity SDK Version
11.7.0
### Unity editor version
2022.3.10
### Installation Method
.unitypackage
### Problematic Firebase Component(s)
Authentication
### Other Firebase Component(s) in use
Authentication
### Additional SDKs you are using
_No response_
### Targeted Platform(s)
Android
### Unity editor platform
Windows
### Scripting Runtime
IL2CPP
### Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Contributor guide
Research direction
Start by reproducing the login failure in the production Android build using Firebase Unity SDK 11.7.0, Unity 2022.3.10, IL2CPP, and the pre-built SDK. Compare the configured mobile bundle ID, Firebase app ID, and other production configuration values, then consult the linked Firebase error references. Done means the INVALID_APP_ID cause is identified and its relevant configuration or troubleshooting guidance is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp, unity
- Domain
- authentication, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100