Being notified on incoming call (via BLE) - raspberry-pi

I would that my python script on a raspberry get notified when my iPhone has an incoming call.
I think I need to use BLE for that, but I am unable to get some information.
Have you an idea?
Thanks

Related

Receiving a response when writing using ionic Ble

I'm currently trying to receive a response packet when writing to a characteristic using ionic ble. However, I am not able to turn on notifications to receive responses since in the properties of the characteristics write is only true. There is no mention of notify, therefore i cannot turn on notifications. Is there a way that I can enable notify for my ble device so i can turn on notifications or any sort of work around to start receiving responses?
Thank You your help is appreciated.

how to connect to a device using JSON-RPC

A device I use has recently updated its external control method from simple telnet commands to json-rpc.
I am having a tough time to understand how to connect to the device and communicate with it using this method - eg ask a question and receive a response.
I have been searching for a while now and cannot find any information that I can use. If anyone could point me in the right direction I would be very grateful.
https://q-syshelp.qsc.com/Content/External_Control/Q-Sys_Remote_Control/QRC.htm

How do desktop applications know when data is available on a server?

How do applications know when new data is available on a server? For example, Facetime or skype knowing when a call is coming in, iMessage knowing when a new text is available, etc. I know the client is not just continually polling the server over and over again, so how is this done normally?
Such protocols send a real-time notification to the client telling it what is happening.

Sending a contact from an iOS app via bluetooth

I am trying to allow a user, who is running my app, to send a contacts vcard (vcf) via bluetooth to another iOS device.
The problem is, that the receiving device should not be required to run the same app.
Is there a possibiliy to accomplish this?
If there is not - is it at least possible to have Gamekit to establish a session, when the receiving device is running the same app, but without requiring the (receiving) user to start the peerPicker-dialog?
Any help and hints are appreciated!
First option: seems to be impossible.
Second option: Works. I implemented a GKSessionDelegate for receiving incoming connections. This session is startet together with the app.
For establishing the connection with a receiver, I used the well known GKPeerPickerControllerDelegate.
One remainig problem is, that the sender sees itself in the list of available peers (because it has also a receiver running in the background). My solution for this is to set its GKSession.available=NO, as soon as the sender starts its GKPeerPickerController.

Sending Data in Aeroplane Mode

I am developing a chronometer app for iPhone which will used by the drivers in races. There will be a countdown. If user receives any call, in that case, the countdown will be paused. so I thought if user run his iPhone in Aeroplane mode, then he will not receive any call. But my problem is that, User will also have to send the data to the server during the race. But in aeroplane mode, it can't be done. I thought that user can divert the calls, it may work but is there any other better way for this or this is the only way? If I am not clear please let me know.
No, there is no other way then with the divert calls, you will need to be connect to the cellular network to send/receive data. On GSM G3 connection you can send data and place a phone call at the same time, on verzions CDMA G3 network you can't.