0

I am trying to allow a user, who is running my app, to send a contacts vcard (vcf) via bluetooth to another iOS device. The problem is, that the receiving device should not be required to run the same app.

Is there a possibiliy to accomplish this?

If there is not - is it at least possible to have Gamekit to establish a session, when the receiving device is running the same app, but without requiring the (receiving) user to start the peerPicker-dialog?

Any help and hints are appreciated!

4

1 に答える 1

0

First option: seems to be impossible.

Second option: Works. I implemented a GKSessionDelegate for receiving incoming connections. This session is startet together with the app. For establishing the connection with a receiver, I used the well known GKPeerPickerControllerDelegate.

残っている問題の1つは、送信者が利用可能なピアのリストに自分自身を表示することです(受信者もバックグラウンドで実行されているため)。これに対する私の解決策は、送信者がGKPeerPickerControllerを開始するとすぐに、GKSession.available=NOを設定することです。

于 2013-04-04T07:05:28.190 に答える