diff --git a/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java b/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java index 01b16056..896e1edb 100644 --- a/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java +++ b/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java @@ -342,10 +342,10 @@ private void parseLaunchIntent(final CallbackContext callbackContext) { if (ndef != null) { callbackContext.success(buildNdefJSON(ndef, messages)); } else { - callbackContext.success(Util.tagToJSON(tag)); + callbackContext.success(Util.tagToJSON(tag, messages)); } } else if (action.equals(NfcAdapter.ACTION_TAG_DISCOVERED)) { - callbackContext.success(Util.tagToJSON(tag)); + callbackContext.success(Util.tagToJSON(tag, messages)); } else { if (data != null) { callbackContext.success(data);