0

I started to use Firebase for push notifications and in order to do that, I had to upgrade several Google libraries. Everything works correctly for me now but one thing that I noticed was that when my app loaded, on the first screen it was displaying a box that said InstanceID Token: and it displayed a token. I do not want that box and I have not written anything in the code for that box and token to appear. Where does it come from? Is it something that Firebase or maybe a Facebook plugin or another plugin does automatically? How can I remove that? I searched for System.out.println() statements and InstanceID Token: keywords in my source code, trying to find what could be making that box to appear, but I could not find anything. It was not happening to my app before the upgrades to Firebase for push notifications. Anyone experiencing a similar situation and knowing how to fix it?

Note: It appears for about 2 seconds when the app is loading and then it disappears by itself. See the screenshot below:

enter image description here

Any hints will be helpful. Thank you.

1 Answer 1

1

You probably have a Toast displaying the Instance ID. Search for something like Toast.makeText.

Sign up to request clarification or add additional context in comments.

1 Comment

Toast.makeText(...).show(); was causing that text to appear. Thank you very much Mariano!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.