How to show background image on CallKit - ios

I want to show the background image on Call kit when a call is coming.I have searched a lot but not find any solution.And also I want to open the app when the phone is locked.Please help me
Thanks in Advance.

If your app has requested and been granted access to the user's Contacts database, it can modify the Contacts database to add a photo to any entry. So although there is no API to directly supply an image to be shown for a CallKit call, you may be able to modify or create a Contact database entry for a given caller before notifying the system of the incoming call via the -reportNewIncomingCallWithUUID:update:reply: API, and then that Contact entry's photo will be shown.

Related

iOS application with CallKit - access last call

I am newbie in ios app development. I want to create application for ios with the following functionality. When the phone is receiving incoming call (no matter if the number is in the contact list or not) I want when the call is over and the phone's owner opens my application to see he's last call's number there.
Is that possible? I've read about CallKit API but I am still not sure if this can help me. Is it possible phone's owner to give such permissions to my app so it can access this information?

How to show caller image on iOS native ui call by using callkit framework?

In my iOS app, I am using CallKit and PushKit for VOIP Call. By using CallKit, I am able to show native call ui and everything fine but I need show native call UI with caller image. How to do this?
Image1 without caller image at receiver side "my app currently behave like this"
Image2 with caller image at receiver side "I want like this in my app"
A photo will be shown on the native incoming call UI if the user's Contacts database contains a Contact record matching the CXHandle specified for the incoming call via a CXCallUpdate, assuming that Contact record contains a photo.
To test this, you should be able to create a Contact card with a photo and a specific handle (e.g. a phone number or email address), then trigger an incoming call from that handle and ensure your app reports a CXCallUpdate with the remoteHandle property set to the CXHandle matching the one on the Contact card.
After trying couple of other things final got the conclusion that you must a hig res image if you want to cover background image of caller.
Initially I was using 500*600 image which was showing as thumbnail then I tried with an image 1242*1863 and it's simply work.
Let me know in case anyone need help in this. Thanks

How to fetch the phone number for the imessage extension created application

I am trying to implement an iMessage Extension application, i want to fetch the number for whom i have selected the imessage to be created with the app i have created.
How to fetch the number whom I am sending this custom message. Any idea ? as I could not get much information from the Message Class referenced in the 'MSMessage' library file.
I can only access the UUID which is not what I want.
Thanks for any suggestions given.
For the moment it's not possible. It's more a question of privacy, Apple doesn't want dev to access private data like that. Maybe later Apple will allow it via a permission asked to the user (like they do for agenda/position etc).

Is it possible to send an SMS message from an iOS app to the current caller when a call is in progress?

I have searched and have not been able to find a definitive answer. I know that it is not possible to get the phone number of the current caller using Objective-C, but I don't need the number.
I want to send a text message to the current caller. Does iOS have a method to allow you to send a text message from an app to the current caller.
The scenario is this:
End user calls another user
They put the person they called on speaker phone and navigate to my app
The app has a button that allows them to share information via SMS to the person they are talking to while they are talking to them without having to do anything more than click a button (the user doesn't have to type the other person's phone number manually to send the SMS).
Sukhdeep is correct.iOS will never allow you to perform Messaging without user involvement.
The answer is No.
Apple will never allow you this.

iOS access phone settings programmatically

is it possible to access the phone settings of an iOS Device programmatically? I'm currently building an app and there I will provide contact possibillities, for example a direct link for calling (you just push it and then the specific contact number is called).
But I only want to show that possibility, if the user isn't calling with an unknown number.
You can access the contacts stored in the phone using the Address Book framework. If you're unfamiliar with the framework, I suggest you take a look at this quick start tutorial.
EDIT It seems you wish to read the state of the Show My Caller ID system setting, however you cannot programmatically access the system settings.
Use ABAddressBook for getting contact details in your project...
see this

Resources