chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
712 stars 570 forks source link

Problems filtering for text/x-vCard #71

Closed don closed 10 years ago

don commented 10 years ago

The correct mime type filter for Android appears to be text/x-vcard even if the tag contains text/x-vCard in the type field.

The Android docs for IntentFilter confirm that mime types should be lower case

Note: MIME type matching in the Android framework is case-sensitive, unlike formal RFC MIME types. As a result, you should always write your MIME types with lower case letters, and any MIME types you receive from outside of Android should be converted to lower case before supplying them here.

cc @tigoe