0

I want to implement a functionality where users of my app can call each other on iOS. A convenient way would be using the built-in facetime. Is there a way how I can take the time the call lasted?

For example:

  1. Alice calls Bob.
  2. Bob takes call and timer starts
  3. As soon as the call is ended, the timer stops.

Can this be implemented using facetime?

LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
codebird456
  • 505
  • 8
  • 19
  • Technically, `applicationWillResignActive` is called in the AppDelegate once a call comes in and `applicationDidBecomeActive` is called when the app becomes active again, so your call has ended. However, you can't be sure that both of those were triggered by a call, and so this approach is *highly* error-prone, yet the only one you'll be able to use at all. – LinusGeffarth Jul 16 '18 at 09:42

1 Answers1

1

As far as I know, you can only initiate facetime calls (using the facetime:// URL scheme). There is no way to know if the call went through, and if it did, how long it took.

In short: No.

Gereon
  • 17,258
  • 4
  • 42
  • 73