OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[Bug]: Can't see logs in Flutter console. #802

Closed vasilich6107 closed 8 months ago

vasilich6107 commented 11 months ago

What happened?

I did await OneSignal.Debug.setLogLevel(OSLogLevel.verbose);

Steps to reproduce?

1. call await OneSignal.Debug.setLogLevel(OSLogLevel.verbose);
2. check flutter console for logs

What did you expect to happen?

I expected to see the logs. I can see them only in XCode

OneSignal Flutter SDK version

5.0.4

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

nan-li commented 9 months ago

Hi @vasilich6107 thank you for reaching out,

If the native iOS logs are showing in Xcode but not the Flutter console, this sounds like a Flutter platform or Flutter version issue?

Please see this comment about a similar issue. I believe if you use the command line to run the app with flutter run, the logs will print in the terminal.