Closed LabDeve closed 5 years ago
This doc is wrong: unregister(type, domain, name, success, failure)
unregister(type, domain, name, success, failure)
success or failure callback are never called...
ZeroConf.swift : public func unregister(_ command: CDVInvokedUrlCommand) {
let type = command.argument(at: 0) as! String let domain = command.argument(at: 1) as! String let name = command.argument(at: 2) as! String #if DEBUG print("ZeroConf: unregister \(name + "." + type + domain)") #endif if let publisher = publishers[name + "." + type + domain] { publisher.unregister(); publishers.removeValue(forKey: name + "." + type + domain) } >> let pluginResult = CDVPluginResult(status:CDVCommandStatus_OK) << >> self.commandDelegate?.send(pluginResult, callbackId: command.callbackId) << }
success should be called but not failure indeed
success
failure
Closing old issue. Feel free to reopen.
This doc is wrong:
unregister(type, domain, name, success, failure)
success or failure callback are never called...
ZeroConf.swift : public func unregister(_ command: CDVInvokedUrlCommand) {