@iotize/device-com-nfc.cordova 3.1.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iotize/device-com-nfc.cordova",
|
|
3
3
|
"main": "bundles/iotize-device-com-nfc.cordova.umd.js",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Near Field Communication (NFC) Plugin. Read and write NDEF messages to NFC tags and share NDEF messages with peers.",
|
|
6
6
|
"cordova": {
|
|
7
7
|
"id": "@iotize/device-com-nfc.cordova",
|
|
@@ -602,7 +602,11 @@ public class NfcPlugin extends CordovaPlugin implements NfcAdapter.OnNdefPushCom
|
|
|
602
602
|
Activity activity = getActivity();
|
|
603
603
|
Intent intent = new Intent(activity, activity.getClass());
|
|
604
604
|
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
|
605
|
-
|
|
605
|
+
int pendingIntentFlags = 0;
|
|
606
|
+
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
|
|
607
|
+
pendingIntentFlags = PendingIntent.FLAG_MUTABLE;
|
|
608
|
+
}
|
|
609
|
+
pendingIntent = PendingIntent.getActivity(activity, 0, intent, pendingIntentFlags);
|
|
606
610
|
}
|
|
607
611
|
}
|
|
608
612
|
|