Is it possible to communicate between two different applications, one running in background and the other in foreground? If yes, can anyone suggest how?
Is it possible to communicate between two different applications, one running in background and
Share
Yes Communication can be made between two applications in iPhone but limited to a handful of scenarios.
There might be apps which need to be sending to background according to some event like phonecall,etc.In Such cases you will have to configure your audio-session object (a Voip based app) and send notification accordingly.
The previous example is just interacting between apps with extremely less flexibility(sending app to background on some important built in event).The other way to do this is through URL Schemes , apple has some built in functionality and support for certain applications such as mail.tel , etc.But one of the application will come to foreground.
Like you can call a phone number , which is built in application using :-
By the way it’s along story if You need to implement a Custom URL Schemes..have fun with it.