How can I get the FirebaseInstanceId using VSCode?

woshitom

In flutter I'm using Firebase In-app messaging. It says that to test my campaigns on my device I can provide a Firebase Instance ID:

enter image description here

Documentation says

Find your testing app's Instance ID by checking the Logcat in Android Studio for the following Info level log: I/FIAM.Headless: Starting InAppMessaging runtime with Instance ID YOUR_APP_ID

But I'm using Visual Code Studio to run my Flutter code. In "Debug Console" tab I do have some messages related to FIAM.Headless but nothing about "Starting InAppMessaging runtime with Instance ID YOUR_APP_ID"

How can I get the Firebase Instance IDs in Flutter?

Danny Tuppeny

The Flutter extension for VS Code doesn't include anything for displaying raw logcat output like Android Studio but you can run adb logcat in the built-in Terminal to get the same output that you would in Android Studio.

Though as mentioned above, you could print the token yourself without needing to parse through the full output, something like:

firebaseMessaging.getToken().then(print);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I publish the vscode plugin in vscode marketplace using API?

How can I get lodash type info to work in VSCode?

vscode extension. How can I get a file body by filename

What is the moving line at the top of vscode, and how can I get rid of it?

How can I get Web API autocomplete/IntelliSense in VSCode?

How can I stop tag separation in VSCODE using react?

How can I debug React Native using only VSCode?

How can I debug a python code in a virtual environment using VSCode?

How can I find Palindrome numbers in a range using Powershell on VSCode?

How can I get elements using lxml

How can I get Filename using Batch?

How can I get a tqdm progress_apply bar in vscode + python jupyter extension?

How can I get OmniSharp VSCode intellisense to work with WSL-compiled code?

How can I get Emacs Projectile to operate like VScode's "C-p" ?

How can I get VSCode to find gmp.h after it has been successfully installed on Windows 10?

How can I change the origin remote in VSCode?

How can I install extension of vscode?

How can I run vscode with sudo on osx?

how can I coloring php syntax in vscode?

How can I disable this lines in VSCode

How can I run a VSCode command as a task

How can I use downloaded font in vscode?

How can i remove these weird artifacts in VSCODE?

How can I change order of arguments in vscode?

How can I run a Pipescript code in VSCode?

How can I bind break points in both my Angular application and library in VSCode, I can only get working in one or the other, not both

When using nginx, how can I get the $scheme using lua?

How can I force file ordering in F# projects using vscode?

how can i see my html file on mobile device using live server in vscode?