Xamarin Android - add intent filter with empty DataScheme

I am trying to add an intent filter to my activity with an empty schema. The filter looks like this:

[Activity(Label = "ClockActivity"), IntentFilter(new[] { "android.nfc.action.NDEF_DISCOVERED" },
    Categories = new[] { "android.intent.category.DEFAULT" }, DataScheme = "")]

      

With this blank schema, I should be getting NFC tags with no schema url. The same example works in Android Studio, but I think the empty schema will be ignored on xamarin.

Do you have any suggestion how to achieve this?

Many thanks.

+3


source to share





All Articles