Wake up an app on phone or SMS call on iOS - ios

I've made some Apps on Android and I'm searching way to do the same on iOS.
We have a main App which receive emergency phone calls (accident, fire...) and calls volunters firefighters who are at home.
On Android, our main "Emergency-center" app send encrypted SMS to the firefighters smartphones. On the firefighters' smartphone there is an Android App looking for incoming SMS. When the app detect the incoming SMS is from the "Emergency-center", it wakes up the phone, sets volume to max, sounds to alert the FF and display info about the accident. This App send back an SMS to the "Emergency-center" when the FF confirm he has received the alert.
The goal is to create an iOS version of this Firefighters cellphone's app.
But after searching here and on Google, I concluded that, on iOS, you cant' detect incoming SMS as you don't have the right for that nor the right to read SMS content.
So the question is: how can I do such a think on iOS? Meaning calling an App on a phone with an external call. If it's throught SMS, OK. If not, it doesn't matter... but how?
Thanks for the suggestions

Related

Awake application without using VoIP when user killed iOS application

I am trying to develop whatsApp like calling feature in an application of mine.
For audio call, I am using VoIP to initialize the CallKit and it's working perfectly.
But I am not able to get Video call work just like whatsApp.
If I assume that whatsApp is delivering is VoIP and then showing local notification. But as per iOS 13 documentation, you have to report incoming call to CallKit if you are using VoIP.
And If I think of sending silent notification, it won't work if user killed the application manually.
I have thought of many solutions but none behaves like whatsApp does.
Can anyone help me with this? Any suggestion will be appreciated.
You can just use normal push notifications, they will always be delevered. Your server has to generate a push every n-seconds that tells the user that he has an incoming video call.

Is it possible to receive SMS notification inside an app in IOS?

Consider 2 iOS phones running an app.
The app in one phone sends a SMS to the other phone. I want to know two things.
Is it possible to show a notification inside the same app in second phone when this SMS is received.
Is it possible to receive this SMS only inside the app ie, this SMS should not go to the default iOS message inbox.
No, it's absolutely not possible without jailbreak.
iOS does not provide any public API to deal with SMS without going through the MFMessageComposeViewController.

Pebble Watch: Send notification to wake up iPhone (Watch -> Phone)

SITUATION: None of iPhone's physical buttons (except volume) are operational. Thus, can virtually only activate screen by receiving a notification.
Instead of simply getting the buttons repaired, I want to see if it can be an opportunity to learn.
PROJECT: Make a simple Pebble app in Cloud Pebble that will send an (arbitrary) basic notification to my iPhone, waking it up. That way, I can activate the screen remotely by, for example, clicking the Pebble middle 'Select' button. [SMS may do, but seems to be a long route compared to Bluetooth communication.]
Possible?
You can easily make an app that will use the Twilio API to send yourself an SMS. You could also use one of the services that sends you push notifications.

How to detect that a user uninstalled an iOS App? I need to push a serious notification

I know Apple won't let you know when a user uninstalls your app.
I have an old legacy SMS system to send alert Short Message to end users. Most of these messages are serious. There's a bottleneck with the GSM module when sending hundreds SMS users simultaneously. Delay is inevitable.
Thus, I built a new alert system to send push notification to my users if they installed my app. After registering their phone number, their SMS Alert will be switched into the new alert system.
The problem is that some old-school users prefer SMS rather than push notifications. They downloaded the app and registered their phone number. Then they found their phone doesn't have a 3G data plan. They deleted the app without un-registering their phone number.
My new system has no idea who deleted the app without unregistering the phone number. All serious alert messages are still sent to the nonexistent app on their phones.
Is there any way to detect that a user has deleted my app?
APNS has a feedback service where Apple reports any device token that is no longer active on the users device. You are required by Apple to check the tokens from the feedback service and stop sending pushes to those devices.
You can use this same information to automatically move the user back to SMS. Just tie the device token to the phone number in your database. If the token is active, send pushes to it. If it is reported by the feedback service to be in-active, remove it from your records and use the users phone number for SMS again.
Just remember that a device token can become active again, at which point, it will be registered with you through the same mechanism it was the first time. Re-save it with the user and use push again.

How to handling incoming sms when app is active

I'm developing an iOS app that sends sms. What's the best way to handle a incoming message when the app is active. Is this done automatically or do I have to code for this in my app via the
applicationWillResignActive:(UIApplication *)application
method?
You don't need to/shouldn't need to deal with incoming SMSs.
When the device receives an SMS (or an iMessage these days), then the user will be notified by their method of choice. They may leave your application via that notification, but you cannot determine that it was the SMS that caused it.
CoreTelephony provides some abilities for people to deal with Calls, but nothing to do with SMS. Sorry. As such your app cannot determine the state of SMS messages. You're able to send SMS messages because the OS provides you with a view controller to do so, but you can't do anything else with them.

Resources