On my app I used to present programmatically an UIAlert with following code:
debugPrint("didReceiveInvitationFromPeer") let fieldAlert