talsec / Free-RASP-Flutter

Flutter library for improving app security and threat monitoring on Android and iOS mobile devices.
https://github.com/talsec/Free-RASP-Community
MIT License
189 stars 18 forks source link

Talsec.instance.start does not complete #67

Closed chimon2000 closed 1 year ago

chimon2000 commented 1 year ago

Describe the bug When calling await Talsec.instance.start(config), the initialization function never completes, causing the application to hang.

To Reproduce Execute await Talsec.instance.start(config) during app start.

Expected behavior The call either completes once Talsec starts or throws if there is an error.

Screenshots n/a

Please complete the following information:

Additional context n/a

yardexx commented 1 year ago

Hello, @chimon2000

How do you create TalsecConfig? Do you create it using standard constructor or using fromJson() constructor?

Also, could you provide your config? You can redact necessary data.

chimon2000 commented 1 year ago

Using the standard constructor.

chimon2000 commented 1 year ago

If I don't await the start command then everything works fine. It's only when I do that the app hangs.

yardexx commented 1 year ago

Thank you for your input. Working on it!

yardexx commented 1 year ago

I managed to reproduce, find and fix the issue. I will release the fix later today.

Thank you again for reporting this issue.

yardexx commented 1 year ago

We released freeRASP 5.0.2 which fixes this issue. Update your pubspec.yaml to get a new version.