iOS: How to avoid/disable default call alert? - ios

I am developing an iOS app with swift, I will explain how my App works.
The app will connect to a PC client With TCP/IP
And will receive a phone number to dial
When I am trying to send The number to the app to make a call the phone showing an Alert with 2 buttons Call and Cancel.
Is there any way to avoid/disable default call alert?
Note: the User know that's my app will make a call and I will have an
agreement from the user

Is there any way to avoid/disable the default call alerts?
Unfortunately, There is no provision to avoid/disable it. We can not control the
system generated alert. I tried the same thing a few months back
but no luck. Still, there is no solution to avoid it.
Thanks

Related

iOS send sms in background or call phone without dialog clicking

I was asked to create functionality to iOS app which will sent SMS or dial number if worker doesn't push button after some time period in app. App work completely without internet connection (in deep forest, badly covered area without internet connection or something like this). But I was searching possibilities whole day but nothing.
So, is there some solution how to do this or it is impossible?
In short IMPOSSIBLE in IOS; without voip (mean no internet).
IOS does not allow to override default Dial UI methods. or any changes.
So these functionalities cannot be implemented.
You can use your separate application, but VOIP for calling and some api for messaging.

Is it possible to interact with ios devices even though app killed?

Is it possible to create an app where the message is automatically sent from one device to another when both the devices are in the same geo-location in predefined range or in the wireless points like Bluetooth?
I think there must be some way to do this. Please let me know if you have any idea about the same.
In peer-peer connection, It is not possible. When the user terminates the app everything goes with it.
But if you connect it with server, you could try to implement the behavior you are looking for with a push notification with content available, which gives you some time awake to download content in the background.

Callkit present Application UI instead of native UI

I want to use Callkit framework to present iOS native UI in incoming call for my voip app when smartphone is locked (more efficient than a simple notification), but after answering I would like to go to my app UI instead of one provided by callkit.
Preferentially I would like go immediately after answering the call, 2nd option would be a option in callkit UI to move to my app.
Any idea if that is possible? Didn't figure out any solution till now.
Thank you
Jose
CallKit provides the calling interface
https://developer.apple.com/documentation/callkit
Unfortunately there is no way to control calling interface for an incoming call.
When the device is locked, user will see native call UI after answering the call. If they wish to move to your app, they will have to tap corresponding button ("Messenger" button on the screenshot below):
When the device is unlocked, however, user will be redirected straight to your app automatically once they accept the call, so there is that.

ios/xcode: Possible to send notification when app is in foreground (as alternative to alert)

This may be contrary to HIG...it is not standard..but it occurred to me that after a user sends feedback from withinmy app, it might be nice to flash a quick unobtrusive message "Thank you for your feedback" or something. I don't want to hit the user with a full blown alert. But a discreet notification banner along the top might be nice.
Is it possible to do this or is it disallowed?
Thanks for any suggestions.
If this notification is initiated from an action from within your app, an Apple notification may not be necessary. You want to simply show a thank you message, so it doesn't even have to wait for a response from a server, but you may want to check if you have Internet connectivity, just to be able to say that the message couldn't be sent, and offer the option to retry.
These are good options for a Toast-style alert that Android uses and is unobtrusive:
https://www.cocoacontrols.com/controls/toast
https://github.com/scalessec/Toast
You can configure it to slide in from the top or bottom. And, it slides away without user interaction.
Local notification will be received in this case but will not be displayed as you want it. However you can make a custom view similar to iOS view. Also please check https://github.com/OpenFibers/OTNotification
Unless the notification is from other application in background,
your currently active app has every right and responsibility in interacting with user with any types of visuals.
There are no class from iOS SDK to allow you to use the same notification banner used for Push Notification. To achieve the same result while your app is active, you may need to adopt your own solution or a module.

IOS - Possible to receive notification when user receives a text?

Is it possible to receive a notification when a user has received a text within the iOS SDK?
For example if your app is running, and you want to track the number of text messages received while the app is in the foreground.
I know it's not possible, I just wanted some additional confirmation for my higher-ups
Thanks
No. Apple will never do this as it's a huge privacy violation.
You may be able to infer something happened by noticing your app resigned active, but that's a very unreliable measure of anything interesting.
Not in the normal SDK. Probably for jailbroken phones.
No, it’s not possible.
Also, you can’t detect if the user receives an iMessage.
And since you may resign active for any number of reasons (like getting a phone call), you can’t really infer anything.

Resources