1

Today, when I run my Flutter project on my phone, while waiting for it to run, I opened another app on my phone that I downloaded it from Google Play. The strange thing is that the debug console started giving me debug information about the other app!, which I assume is a release version. Is this normal? How can I protect my app's information from this issue?

Note: The other app is not mine; I just downloaded it from the store to use it.

Jaafar Melhem
  • 157
  • 1
  • 7

1 Answers1

2

Yes, this is normal behaviour.

Actually, if you use print your linter will complain:

enter image description here

You should instead use log() from dart:developer

See also

  • this StackOverflow answer:

    ... print() will print logs in release builds as well, which is something that shouldn't happen as some developers might log sensitive information.

MendelG
  • 14,885
  • 4
  • 25
  • 52