feat(nfc): add support for iOS (#2050)

* Added missing methods beginSession and invalidateSession for iOS support

* Removed invalidateSession function and package-lock.json

* added current package-lock again
This commit is contained in:
lehrenberg 2017-12-08 21:05:11 +01:00 committed by Ibby Hadeed
parent 7c2a761078
commit 9f72592fcc

View File

@ -71,6 +71,21 @@ export interface NdefTag {
*/
@Injectable()
export class NFC extends IonicNativePlugin {
/**
* Starts the NFCNDEFReaderSession allowing iOS to scan NFC tags.
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
@Cordova({
observable: true,
successIndex: 0,
errorIndex: 3,
clearFunction: 'invalidateSession',
clearWithArgs: true
})
beginSession(onSuccess?: Function, onFailure?: Function): Observable<any> { return; }
/**
* Registers an event listener for any NDEF tag.
* @param onSuccess