user1557009
user1557009

Reputation: 21

An ios application running in background

While my application is running in background, i want to know if there is an incoming call and send an email like "phone is calling..."

is it possible?

Upvotes: 0

Views: 286

Answers (2)

Rogers
Rogers

Reputation: 1973

CTCall in CoreTelephony will let you monitor the state of incoming and outgoing calls. It's true you cannot send an email without user interaction except via a direct connection with SMTP (and I wouldn't want to route them through my mail server!) Nick Bull is correct, I think, about the restrictions on long-running background tasks.

Upvotes: 0

Nick Bull
Nick Bull

Reputation: 4276

No, you can't. This is not possible.

It also isn't possible to send an email without user interaction unless you use an external server to do the sending of the email

Upvotes: 2

Related Questions