This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

IOS: End call with ANCS or HID?

Hi

I've allready make a system with ANCS and AMS service in order to control IOS Notifications and control the music.
i can answer or decline an incomings call with ANCS, but my problem is that i can't find anything that halp me to hang up (end) the call when this is accepted. Somebody have an idea to help me?
a lot of thanks
best regards

Parents
  • Hi again.

    I've been doing some research on the topic;

    It seems that ANCS is not suitable for ending the call. As ANCS is for notifications, we will indeed be notified in the case of an email, phone call etc, and we can respond to that notification with a positive/negative response. After the call has been accepted the notification will have nothing to do with the actual call. It's only the incoming call notification that ANCS is dealing with.

    I would suggest looking closer at the media service. Using the Play/Pause button event through the media service might be able to end the call, but I'm not 100% sure that the media service is available during a call.

    Also, using HID could be a possibility. I would try finding the key code that is equivalent to ending the call and try to send that. I don't know what this key is, but I'll see if I can find out.

    I'll try to find the time to make a working project to demonstrate this.

    Best regards,
    Joakim

Reply
  • Hi again.

    I've been doing some research on the topic;

    It seems that ANCS is not suitable for ending the call. As ANCS is for notifications, we will indeed be notified in the case of an email, phone call etc, and we can respond to that notification with a positive/negative response. After the call has been accepted the notification will have nothing to do with the actual call. It's only the incoming call notification that ANCS is dealing with.

    I would suggest looking closer at the media service. Using the Play/Pause button event through the media service might be able to end the call, but I'm not 100% sure that the media service is available during a call.

    Also, using HID could be a possibility. I would try finding the key code that is equivalent to ending the call and try to send that. I don't know what this key is, but I'll see if I can find out.

    I'll try to find the time to make a working project to demonstrate this.

    Best regards,
    Joakim

Children
Related