Normally if we want to make a phone call from our application, we need open NSURL from app with prefix: tel://
However, I want to customize phone call UI that using sim card on phone from app. Do u have any idea about that.
If you know Viber app, you can see that app already done it.
You can choose to call by using Viber api or using sim card. When you use sim card call, you can see customized phone call UI.
Related
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?
I want to add my app in the contact info in the address book for messaging, video calls.
This functionality can be achieve using CallKit, in short CallKit provides native phone app UI to all the VoIP application, to let your app visible in the contact (after integrating the CallKit), you just need to smoothly long press the audio/video call buttons.
By default It shows the most frequent used app (say WhatsApp), once you'll long press the icons it'll show a list of the supporting apps (VoIP enable apps). From where you can choose the app to perform the action.
The screenshots will make you more sense to figure it out.
Image 1 - is the default situation I.e. default call and video option.
Image 2 - Long press the call option, It’ll show all the apps which are capable to make audio call.
Image 3 - Same for the video option.
Image 4 - Once you’ll use any app (suppose WhatsApp) the default icon will change to WhatsApp and in the list it’ll start showing WhatsApp and other concern apps.
Source: #1 Ray Wenderlich Toutorial , #2 Sample Code of CallKit Objective-C & Swift both
Note: - In the list below it’ll start showing the apps name once you use any app to make call. And it’ll remain listed even if you uninstall that particular app.
I assume you are using CallKit. So adding .phoneNumber to supportedHandleTypes gives this ability that you can call number via your application.
.generic also gives ability you can start call from history that made or received via your application.
let config = CXProviderConfiguration(localizedName: "anyname you want")
config.supportedHandleTypes = [.phoneNumber,.generic]
This question is for iOS 10 and Xcode 8. I know how to get user local address book contacts using ABAddressbook and show them in my app. What I was trying to do next are two things
Show the user what contacts he/she has blocked himself
Try see if I can block or unblock those contacts programmatically
The reason I am doing this is that as of now the only way to "block" a contact using native iOS app is to click on a contact, scroll down and click on block/unblock button. I was just trying to figure out if I can help the user quickly see all the contacts in their addresbook they have blocked and perhaps unblock/block one with one less tap using my app.
I have looked into callkit and that is not what I need. I am not creating a VOIP app nor do I need to create my own block list.
I have googled quite a bit and didn't find an answer for blocking / unblocking contacts using ABAddressbook which must mean its not possible. Suggestions?
In some way it is not possible till your device is jailbroken as this says and also it is possible if we use CallKit framework as Possible to programmatically block phone number in iOS source.
Apple document Says
The CallKit framework provides programmatic access to VoIP functionality, as well as call blocking and identification.
I'm creating an app using libgdx.
In the contact page I would like, as for the email
(
Gdx.net.openURI("mailto:cippa#lippa.com");
), give the chance to made a phone call by clicking on the phone number.
Is this possible using libgdx?
Or I have to do this twice, using first Android and then iOS?
(Like in this question:
How to make a phone call programmatically?)
EDIT
How is possible to make a phone call programmatically in JAVA for iOS?
Because for Android is clear, simple and done, but for iOS, without using Objective-C?
As for the edited question (IOs phone call in Java), I haven't tested this code, but I think it should work:
UIApplication.getSharedApplication().openURL(new NSURL("telprompt://" + number));
Is it possible to make a call from my app without accessing the standart phone application?
The problem is that if I make a call, my app goes to the background, and I really do not need that. I need it to be always active even if I am calling.
No there is no way to do that, you can only make calls via de tel URL sheme.
You can use tel://123456789, but this will display a confirmation before opening the phone app.
There are a few apps, however, that open the phone app and make a call directly without displaying a confirmation (like Dialvetica).
To answer your question, no, you can not make calls directly from your app, unless you create your own version of Skype (the whole network, not just the app), and you probably don't have the time, money and resources to do that.