IPhone place voice call and play voice message through - ios

Is there a way to place a standard call and when call is in progress to play some predefined voice?
For example, I want my app to automatically call someone at predefined time and then to play message I've recorded.

No, you cannot interfere with a customer's phone call. And Apple wouldn't approve this app for the app store if you submitted it.

Related

Custom background image with CallKit, And Twillio programmable voice

I am looking for a way of having a custom background for an incoming call using CallKit.
My app is a Voip app using Twillio.
If the user had already received a call from a Twilio in the past, he is able to save this number (From call history), and the next time the contact will call, a custom background image will be displayed.
But when saving the contact, the only information there is, is "social profile", no number.
What is actually been saved?
Is there a way of programmatically saving a contact from Twilio received with CallKit?
Twilio developer evangelist here.
When you receive calls from another App using the Twilio Programmable Voice SDK you won't receive a phone number along with the call.
When calls are made app to app, you only need the identity of the other user that you are calling. No phone numbers are required to make this call.
Then, the TVOCall attributes from and to will be set to client:FROM_IDENTITY and client:TO_IDENTITY (where the identities are those from the users of your app).
If a call did come from a phone to the app, then the phone number would be included as the from attribute and you'd be able to save the contact with a phone number.
I'm not sure how to turn the information you do get with an app to app call into a proper contact though. Sorry.

Make a telephone call and send different DTMF tones during the call in iOS

Is it possible to call a phone number programmatically in iOS and send different DTMF tones during the call?.
Basically I want an App to handle the IVR call. I don't know anything about iOS programming. I just want to know the feasibility so that I will put further effort.
Thanks
You cannot do this interactively within the bounds of the iOS SDK (ie, in an App Store app).
You can, however, build a tel URL. See the Apple documentation on phone links for more details if you think this will work for your needs.

iOS App to Ping Users Like Find My iphone "Play a Sound"

I have an idea for an app and have the design created but unsure how to go about doing it programatically. The idea is simple... ping a silent phone the way "Find My Phone" can make a silent phone make a sound. The idea is to have the app read an incoming text message with a command embedded in the text from an "authorized" user.
Example: #URGENT from my wife would make my phone sound even if it was on silent but #URGENT from my friend would not cause any action because he is not "Authorized" in my app.
From what I have found online, reading text messages in iOS is prohibited unless you build your own API/SKD (BMW reads the text from the notification center for their iDrive function) which will then get rejected by the app store. Is this correct or is there a way to do this?
My questions:
Can an app trigger an event by reading text messages with embedded commands like on Android?
In iOS is there any way to make a silent phone create a sound at full volume?
I've found that this is possible for Android, but I want to see if it is possible for iOS.
Unfortunately, the answer is no.
In order:
An iOS app has no access to the text messages of the user at all, so there's no way to trigger anything that way.
Not as a notification sound, but it's possible that by using a background audio session you could play a sound on a phone that is silenced, but still has the media volume up. However, Apple might not like this (you'd be using media playback APIs for alert noises, Apple doesn't want anyone circumventing the users decision to silence the phone).

Mute IPhone prorammatically is legal?

I gonna start working on an app that have basic functionality to mute phone(no sound from any app, ring tone).
I searched over net and found some private api's to do what I want.
Mute iPhone programatically
https://github.com/forensix/BBSettings
But found some articles saying that Apple will not approve such kind of apps. And when I searched over store I got an app link below
https://itunes.apple.com/us/app/autosilent/id474777148?mt=8
This is auto silent app, that put iphone to mute state.
So now I want all my seniors to let me know whether I can do this app or not?
The application that you mentioned has the purpose of muting the phone. Someone downloading it expects it to mute the phone. That's probably why it was accepted on the store.
If your app mutes the phone, and the user didn't expect it, they could very likely miss important phone calls unexpectedly, which could be very damaging. So you would need a very, very good reason to have that functionality in your code.

Can I save a stream-only track locally for offline capability?

I am developing an iOS app that will play music from soundcloud. I want to give the user the option of an offline mode so he/she can play music even if there is no connection available.
it is technically possible to download the streamed mp3:s locally (I have already implemented it) but will Soundcloud allow me to do it? I have no intention of making these mp3:s accessible outside the app.
The problem of using a downloaded copy instead of the streamed track would be that the play would not count. Is there a way to register a play without actually playing the track?
I have tried to reach them through mail and twitter but I have got no reply yet.
Any thoughts?
Short summary of nickf:s comment above:
this is expressly disallowed

Resources