質問編集履歴
1
経過報告を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,4 +20,14 @@
|
|
20
20
|
他のアプリで試してみたところ、iOS 13 でも電話履歴からの発信が可能でしたので何らかの違いがあるのだと思います。
|
21
21
|
このあたりの情報をお持ちの方は教えていただけないでしょうか?
|
22
22
|
|
23
|
-
よろしくお願いします。
|
23
|
+
よろしくお願いします。
|
24
|
+
|
25
|
+
###経過報告
|
26
|
+
よくよく調べると、iOS 12.x までは、userActivity.activityType が [INStartAudioCallIntent](https://developer.apple.com/documentation/sirikit/instartaudiocallintent) もしくは [INStartVideoCallIntent](https://developer.apple.com/documentation/sirikit/instartvideocallintent) になり、iOS 13 では [INStartCallIntent](https://developer.apple.com/documentation/sirikit/instartcallintent) になることがわかりました。
|
27
|
+
```swift
|
28
|
+
let startCallIntent = interaction.intent as? INStartCallIntent
|
29
|
+
```
|
30
|
+
とすることで、[INPerson](https://developer.apple.com/documentation/sirikit/inperson) から電話番号の取得ができました。
|
31
|
+
また、ビデオかどうかは [startCallIntent.callCapability](https://developer.apple.com/documentation/sirikit/instartcallintent/3165942-callcapability) をチェックすることで確認できるようです。
|
32
|
+
|
33
|
+
ただ、[INStartCallIntent](https://developer.apple.com/documentation/sirikit/instartcallintent) は iOS 13 SDK からなので、xcode 10.x でのビルドが未定義エラーでできません。。。
|