Closed ghost closed 1 year ago
From the exception message and stack trace, I believe that you need to redefine Helpers.Log. By default used console logger, that writes all messages to the Console.Out. But android os does not support such logging. So, you should set a custom Action<int, string> to this property (Helpers.Log). This action should provide logging logic for WTelegramClient. It'll log there all info about work and possible future exceptions, so it is really necessary.
Will this get fixed in future updates so the library will be cross-platform?
You need to redirect logging to a file, to System.Diagnostics.Debug.WriteLine
or a logger of your choice, because the default logging to Console is not supported on Android.
I don't plan to make special case for Android, as the solution is pretty straightforward and no serious software should leave the defaut console logging anyway, especially on a device with no console. You need to be able to diagnose upcoming issues with your app.
See also issue #62
Thank you for your help, it works fine now
I am developing a .NET MAUI app and I use WTelegramClient to work with Telegram API
When I am trying to login the user Only on Android, I get the error
My custom path on android is "/data/data/com.{name}.{name}/files/{name}.session This does not happen on Windows How can I resolve this?