File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55// (c) 2107-2020 Don Coleman
66
77#import " NfcPlugin.h"
8+ #import < CoreNFC/CoreNFC.h>
89
910@interface NfcPlugin () {
1011 NSString * sessionCallbackId;
@@ -124,14 +125,13 @@ - (void)writeTag:(CDVInvokedUrlCommand*)command API_AVAILABLE(ios(13.0)){
124125 } else { // create a new session
125126 if (self.shouldUseTagReaderSession ) {
126127 NSLog (@" Using NFCTagReaderSession" );
127-
128- self.nfcSession = [[NFCTagReaderSession alloc ]
129- initWithPollingOption: (NFCPollingISO14443 | NFCPollingISO15693)
130- delegate: self queue: dispatch_get_main_queue ()];
128+ self.nfcSession = [[NFCTagReaderSession alloc ] initWithPollingOption: (NFCPollingISO14443 | NFCPollingISO15693)
129+ delegate: self
130+ queue: dispatch_get_main_queue ()];
131131
132132 } else {
133133 NSLog (@" Using NFCTagReaderSession" );
134- self.nfcSession = [[NFCNDEFReaderSession alloc ]initWithDelegate:self queue: nil invalidateAfterFirstRead: FALSE ];
134+ self.nfcSession = [[NFCNDEFReaderSession alloc ] initWithDelegate: self queue: nil invalidateAfterFirstRead: FALSE ];
135135 }
136136 }
137137
You can’t perform that action at this time.
0 commit comments