-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we obtain the appInstanceID on android? #72
Comments
Please try: FirebaseAnalytics.addEventListener("appInstanceID", function(e){
console.log(e.appInstanceID);
});
FirebaseAnalytics.appInstanceID(); |
Awesome - that worked!! Thank you :-) |
I downloaded the 5.2.0 package (why isn't it available in the releases?) but the event listener mentioned by @m1ga isn't working for me. In fact, I'm getting a warning |
it is still an open PR #75 Since you post it in this thread: are you using |
I posted here because I keep getting the warning, and this issue seemed relevant, but maybe it isn't. I wouldn't have posted at all except I was confused about the android 5.2.0 package, since I found it here while looking into the warning, hoping that a module upgrade might fix the warning. I'm not specifically using the |
I see. The warnings shouldn't been there (I'm not seeing them in my test project) but perhaps it's better in an own issue. |
I need to get the appInstanceID on android (like we can for iOS - doc link). Is this possible?
Having this value will allow us to send analytics events to GA4 using Measurement Protocol from our server-side component.
More info on this approach: https://firebase.google.com/codelabs/firebase_mp#1
The text was updated successfully, but these errors were encountered: