Skip to content

Commit f85feb8

Browse files
committed
Implemented delegate method for when the advertiser fails to start
1 parent 12acbd2 commit f85feb8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/MultipeerKit/Internal API/MultipeerConnection.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,8 @@ extension MultipeerConnection: MCNearbyServiceAdvertiserDelegate {
236236
})
237237
}
238238

239+
func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {
240+
os_log("The multipeer connection failed to start advertising to peers. This could be due to missing keys in your app's Info.plist, check out the documentation at http://github.com/insidegui/MultipeerKit for more information. Error: %{public}@", log: log, type: .fault, String(describing: error))
241+
}
242+
239243
}

0 commit comments

Comments
 (0)