Hi everyone,


 Quick question here. We are currently developing a mobile app only for Android devices, and we need to check the Android API (Android.content.res) getResources().getConfiguration().keyboard so that we can verify if a physical keyboard is connected! Does anyone know how to consume this? Or to make the variable that contains this info in the front end?


greetings,

Guilherme Menescal Dantas

Solution

Hi Guilherme,

I think everything must go through Cordova, right?
Maybe this plugin can help? https://www.npmjs.com/package/mdm-appconfig-plugin

Did you check the FOrge to see if you can find some implementation already done for what you need?

Cheers!

P.S. There are other plugins in the Cordova plugin site that may have what you need...

Solution

Thanks for moving me in the right direction Eduardo!


Cheers