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
194 stars 20 forks source link

bug: iOS app crash on hot restart #57

Closed meetp-interpay closed 1 year ago

meetp-interpay commented 1 year ago

When I am hot restarting flutter app in ios devices, then it is crashing.

Used the same code as mentioned in example.

Have tried to comment out app.start(); afterwards Hot restart works fine.

But when it is not commented, then unable to hot restart flutter app.

Using freerasp version 3.0.1

tompsota commented 1 year ago

Hello @meetp-interpay,

Unfotunately, we weren't able to reproduce this bug.

Does this happen only when you hot reload the app, e.g. after a successful build with a successful initialisation of freeRASP?

Best,

Tomas, Talsec developer

meetp-interpay commented 1 year ago

Hello @tompsota ,

This behaviour is only for IOS app when I Hot Restart after successful initialisation of freeRASP for first time, and not Hot Reload.

tompsota commented 1 year ago

Hi @meetp-interpay,

Can you provide us more information about the device you are using (model, software version)? Either directly here or at support@talsec.app

Thank you.

Best regards,

Tomas, Talsec developer

meetp-interpay commented 1 year ago

Hi @tompsota ,

I have tried that in ios simulators, where on hot restart, it is crashing.

Thanks

tompsota commented 1 year ago

Hi @meetp-interpay,

Can you provide the iOS version and model of the device you are using in the simulator?

Thank you.

Best, Tomas, Talsec developer

meetp-interpay commented 1 year ago

Hi @tompsota ,

I am using ios version 15 and iphone 13 as a simulator.

Thanks

tompsota commented 1 year ago

Hello @meetp-interpay,

Do you see any error messages when the app crashes? If so, could you share them with us?

Thanks, Tomas, Talsec developer

meetp-interpay commented 1 year ago

Hi @tompsota , No I didn't found any error messages during crash.

Thanks

tompsota commented 1 year ago

Hello @meetp-interpay,

When I tried Hot Restart on iPhone 13, I was able to reproduce MissingPluginException - see https://github.com/talsec/Free-RASP-Flutter#ios-missingpluginexception-occurs-on-hot-restart for more information. Unfortunately, this is a technical limitation of Flutter thus we are unable to fix this in current version. However, we are currently working on a new version of freeRASP which should mitigate this error.

Best, Tomas , Talsec developer

meetp-interpay commented 1 year ago

Hi @tompsota , Thanks for the update

msikyna commented 1 year ago

Hello @meetp-interpay , could you try it with the new version? The version is 5.0.0.

Kind regards, Talsec team

yardexx commented 1 year ago

Hello.

Have the new version solved your problem?

Kind regards, Jaroslav, Talsec developer