“Send call” to iPhone from iPad

2020-03-25 04:37发布

Is it achievable to in an iPad-app somehow communicate with a pre-defined iPhone and make the iPhone call a number defined in the app?

Example process:
User uses the iPad app. Finds a number he/she wants to call, touches the magical button and the iPhone starts calling. Useful when iPhone is in pocket and user has a headset.

If possible I want this to work without installing anything on the iPhone. So for example by interfacing with bluetooth. If not possible without installing anything on the iPhone, how could it be achievable by installing something?

I'm grateful for any advice in this matter. I'm not looking for code examples but rather the best technical solution considering my circumstances and wishes. Any ideas?

5条回答
Deceive 欺骗
2楼-- · 2020-03-25 04:50

Fairly easy, at least with three technical approaches:

  1. notify/push your iPhone device with a custom URL, like "tel:your_number", and open it
  2. pass the same URL with a bluetooth connection
  3. Use a web/REST tier to store the URL a read it from your target device

High level answer/approaches though...

查看更多
仙女界的扛把子
3楼-- · 2020-03-25 04:54

While Tom van der Woerdt is correct with the fact that user interaction is required, you could consider building in VOIP on a custom application. (A lot of work)

You could for example have the iPad tell the iPhone to load a webview (like a URL) that will give the phone a tel:// link. (Still the user needs to accept the dialog)

Ah, another solution. Configure a service on your severs to initiate a call to the iPhone connected to the desired number. This way a headset should be able to accept the call.

查看更多
一夜七次
4楼-- · 2020-03-25 05:09

The answer is no. At least not without a jailbreak.

Developers aren't allowed to directly access the phone routines on an iPhone. You can present a Yes/No option at most, but actually calling always requires user interaction.

And without even installing software: you'd need the iPad to get the iPhone to do stuff. I'm rather sure you don't get that level of control over Bluetooth either. The iPhone could accept the call command, but the iPad couldn't send it.

查看更多
太酷不给撩
5楼-- · 2020-03-25 05:09

The closest actual solution would be to send a text message to the iPhone using a web service instructing the person to call that number (it would appear as a link anyway). I hope that's an option for you. (A free alternative would be to send an email to the phone, instead, but it's not as nice for the user experience)

查看更多
爱情/是我丢掉的垃圾
6楼-- · 2020-03-25 05:14

I believe it is possible to connect two devices, using Game Kit, Bonjour or even setting up one of them as a server with CocoaAsyncSocket.

Just install your app(s) on both devices and then, depending on your choice of approach, The trick is just discovering the IP of the other device.

So if you for example got an iPad app with the call button, and an iPhone for doing the calling, then just let the first for example TCP post to the other.

Maybe you can start a call from the iPhone without the user having to touch the phone in her pocket this way, but @tom-van-der-woerdt seem to know more about that than I do.

查看更多
登录 后发表回答