You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hola! muchas gracias por tu aporte @acaliaro, en este momento intenté probarlo y me generaba el error: Java.Lang.IllegalArgumentException: 'com.companyname.mauiapptestnfcandroid: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.'
para solucionarlo sustituí en el MainActivity.cs var pendingIntent = PendingIntent.GetActivity(this, 0, intent, 0);
por var pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.Immutable);
The text was updated successfully, but these errors were encountered:
Hi @acaliaro I'm learning from your project MauiAppTestNfcAndrid. I'm new to .net development and I working with a .net Maui Blazor type project . I tried to test the application but still don't have the ReadPage view and its viewmodel. My question is the following: From the XamarinDemoNFC project, can I bring the pages that already existed, for example ReadPage.xaml, and add them to the Maui project to test reading an NFC tag?
Hola! muchas gracias por tu aporte @acaliaro, en este momento intenté probarlo y me generaba el error:
Java.Lang.IllegalArgumentException: 'com.companyname.mauiapptestnfcandroid: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.'
para solucionarlo sustituí en el MainActivity.cs
var pendingIntent = PendingIntent.GetActivity(this, 0, intent, 0);
por
var pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.Immutable);
The text was updated successfully, but these errors were encountered: