[Secure Device Plugin] No unsecure message presented

[Secure Device Plugin] No unsecure message presented

  
Forge Component
(0)
Published on 25 May by André Vieira
0 votes
Published on 25 May by André Vieira

Hi André,

Is there any way that i can present a friendly message to the User? I mean, right now, if the device is not secure the Application shutdown without any information. This might lead the User to think the problem is related to the App itself.

I want to present something like the messages available on the Plugin Preview.

Thanks in advance.

This may come down to a device issue.  I've tested this plugin and on a Sony Xperia C4 running Android 6 I'm getting the message "Unfortunately, TestMobile has stopped."  I don't have any rooted devices... and I've removed the PIN from this device.  Adding the PIN back allows the app to open.

It seems as if the device message is over-riding the plugin message.

Hi Davik,

Having a PIN is part of the validation. You can check the description and the native code here https://github.com/agmv/cordova-secure-device

Pedro,

When the validation fails it should show a dialog with a message, only after dismissing the dialog the app closes.

André Vieira wrote:

Hi Davik,

Having a PIN is part of the validation. You can check the description and the native code here https://github.com/agmv/cordova-secure-device

Pedro,

When the validation fails it should show a dialog with a message, only after dismissing the dialog the app closes.

That's precisely what is happening right now on my OnePlus 3T with Android 8. It simply closes the Application without any notification!


FYI, there's currently a bug on Android code, I've submitted a PR with a possible fix. (https://github.com/agmv/cordova-secure-device/pull/2).


Cheers,

João Gonçalves