0

I'm working on iMessage app extension for my app and i was wondering if its possible to initiate a phone call from App Extension?

I tried using the following code but it takes me (deeplink) to containing app.

cell.didTapCallNowButton = { cell in
    if let phoneNumber = cell.Model.phone,
        let url = URL(string: "telprompt:\(phone)") {
        self.extensionContext?.open(url, completionHandler: nil)
    }
}
DevCali
  • 398
  • 6
  • 20

1 Answers1

0

Here is the answer from pdm 'Apple Staff' on Apple developer forum:

No. iMessage apps can only open URLs in their parent app.

https://forums.developer.apple.com/message/174112#174112

DevCali
  • 398
  • 6
  • 20