neckaros / secure_application

Secure your application from prying eyes
MIT License
102 stars 57 forks source link

How to secure all the pages of the app? #4

Closed 0Vipin0 closed 4 years ago

0Vipin0 commented 4 years ago

I am trying to develop an app that has multiple screens. Whenever the user goes to the background and then comes to foreground, then I should be prompted to authenticate before going to other screen. I have tried many things but unable to understand how to implement it. Can you help me on how to do that @neckaros ?

neckaros commented 4 years ago

Hello

Did you try to have it as described in the read me placement section? https://github.com/neckaros/secure_application#placement

0Vipin0 commented 4 years ago

Yes, I read the complete Readme and used it as specified in the Readme. Sorry, If i wasn't complete give details of my problem.

What I am trying to accomplish is that

What my issue is

What I have tried

I hope i am able to give the question detail clearly @neckaros.

neckaros commented 4 years ago

To sum up even after unlock and moving to another screen you still want the app to be protected . That should be how it works (and is how it works in my own app)

How do you unlock when the user get back to the app? You should use unlock() and not open() Are you able to reproduce in a minimal app?

0Vipin0 commented 4 years ago

Yeah that sums up. I tried the unlock not open. I will implement a minimal app. Then update here if the issue is resolved or not.

neckaros commented 4 years ago

Hello do you still have the issue or can i close it?

0Vipin0 commented 4 years ago

Sorry to for not replying earlier. I just implemented the security natively in the android and ios. So I haven't used the library there. You can close the issue. Thank for your reply.