mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
168 stars 131 forks source link

My Application Crashes #12

Closed kushthapar1989 closed 8 years ago

kushthapar1989 commented 8 years ago

Hi,

I am using this plugin in MobileFirst Application (HTML, CSS and Javascript). When the show() method is being called, my application crashes. I am testing the application on Samsung S6 Edge and it has Android Marshmallow (6.0.1). When I checked the logs, it was giving an error Resource Not Found Exception

Please Help

mjwheatley commented 8 years ago

Does it say which resource?

Make sure the plugin is copying all the resource files to the correct directories. If the MobileFirst framework uses different resource directories, you may need to manually copy files to the correct location.

These are the resources and target directories from the plugin.xml

        <source-file src="res/android/drawable/ic_fingerprint_error.xml" target-dir="res/drawable" />
        <source-file src="res/android/drawable/ic_fingerprint_success.xml" target-dir="res/drawable" />
        <source-file src="res/android/drawable-hdpi/ic_fp_40px.png" target-dir="res/drawable-hdpi" />
        <source-file src="res/android/drawable-mdpi/ic_fp_40px.png" target-dir="res/drawable-mdpi" />
        <source-file src="res/android/drawable-nodpi/android_robot.png" target-dir="res/drawable-nodpi" />
        <source-file src="res/android/drawable-xhdpi/ic_fp_40px.png" target-dir="res/drawable-xhdpi" />
        <source-file src="res/android/drawable-xxhdpi/ic_fp_40px.png" target-dir="res/drawable-xxhdpi" />
        <source-file src="res/android/drawable-xxxhdpi/ic_fp_40px.png" target-dir="res/drawable-xxxhdpi" />
        <source-file src="res/android/layout/fingerprint_dialog_container.xml" target-dir="res/layout" />
        <source-file src="res/android/layout/fingerprint_dialog_content.xml" target-dir="res/layout" />
        <source-file src="res/android/values/fpauth-colors.xml" target-dir="res/values" />
        <source-file src="res/android/values/fpauth-strings.xml" target-dir="res/values" />
        <source-file src="res/android/values-es" target-dir="res" />
kushthapar1989 commented 8 years ago

Thanks mjwheatley. Issue Resolved.

I was looking for the files resources which you have mentioned.