116
Views
4
Comments
[Secure Device Plugin] No unsecure message presented
Question
secure-device-plugin
Mobile icon
Forge asset 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.

UserImage.jpg
Davidk

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.

2020-03-05 15-52-45
André Vieira
Staff

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.

2026-03-23 09-58-51
Pedro Domingues
Champion

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!


2017-03-15 17-30-02
João Gonçalves

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.