0

I have an iOS app with a corresponding WatchKit app. When I press a button in the iOS app, I want to launch the watch app glance screen and show a countdown timer.

Which method or techniques should I use. I have already setup the glance screen and glance schemes, but have no idea how to launch the glance.

4

1 に答える 1

3

iOS アプリからプログラムでグランス (またはウォッチ アプリ) を起動することはできません。

最善の方法は、アプリケーション コンテキストをウォッチに送信することです。これにより、ユーザーがいずれかを開いた場合に、Glance またはウォッチ アプリにカウントダウンに関する詳細が既に含まれています。

詳細については、WCSession クラス リファレンスを参照してください。

于 2016-02-11T16:52:04.463 に答える