Select a certificate to sign text

Hello everyone,

I am an android developer who is learning how to develop a ionic app. I have an android application that in one of its activities show a dialog to user for choose his certificate and then, the app uses it to sign a string and send to external service the public key of the certificate and the data signed.

To do that in Android I use KeyChain.choosePrivateKeyAlias(KeyChainAliasCallback interface), how could I do for ionic? It will works in iOS and Android with the same code?

Thanks