Free-RASP-Flutter icon indicating copy to clipboard operation
Free-RASP-Flutter copied to clipboard

feat: Rerun checks when coming from background

Open meetp-interpay opened this issue 1 year ago • 4 comments

I have added free-rasp at the entry point of our app. When app is open for the first time, all call-backs coming from andoirdCallbacks are working.

But then, I will press back button from android device, the app is closed, and when I will open the app again (without clearing app from Recent menu) then call-backs are not working. If I remove app from Recent menu, and then open the app again then it is working again.

Technically, if app is open at any point of time, call-backs should work.

Using freerasp 3.0.1 version.

meetp-interpay avatar Apr 04 '23 07:04 meetp-interpay

Hello @meetp-interpay,

freeRASP runs the initial checks immediately after the app was started. However, after that, the checks are run periodically, which means that you might want to wait for a couple of minutes before you see the threats being detected. This applies also for your described use case.

Please, try to leave the app running for up to 10 minutes after you bring it back from background. The checks should start to fail.

Don't forget to let us know if this solved the problem.

Best,

Tomas, Talsec developer

tompsota avatar Apr 05 '23 17:04 tompsota

Hello @tompsota ,

Thanks for your response.

Just wanted to know, does this will be the same behaviour for commercial version (Business RASP+, AppiCrypt) or is this only in freeRASP ?

meetp-interpay avatar Apr 06 '23 07:04 meetp-interpay

Hello @meetp-interpay,

you will not encounter this issue in the commercial version of our libraries. There are additional API options that enable the wrapper to update all checks when the application lifecycle changes. Unfortunately, this is not possible in freeRASP at the moment. We will look at this issue in freeRASP as well in the near future.

Best regards,

Tomas, Talsec developer

tompsota avatar Apr 06 '23 08:04 tompsota

Okay, that will be fine.

Thanks

meetp-interpay avatar Apr 06 '23 10:04 meetp-interpay