Firefighters in California have launched a new iPhone app to alert those trained in CPR when someone nearby needs help, The San Ramon Patch reported.

The San Ramon Valley Fire Department, located in the San Francisco Bay area, pioneered the app, which other fire departments are now looking into. It works when someone in the San Ramon Valley makes a call to 911 to report a person going into cardiac arrest. Those trained in CPR who have registered for the app that are closest to the victim are notified through their phone’s GPS. The app also detects the nearest portable defibrillator.

"These notifications will only be made if the victim is in a public place and only to potential rescuers who are in the immediate vicinity of the emergency," said Richard Price, the fire department’s chief.

Currently the CPR app is only available on the iPhone, but software designers hope to have it available on other brands of mobile devices.

"I think it's cutting edge," software promoter Tim O'Reilly said. "I think there are some real challenges to getting it spread because there's a lot of data that's local here, for instance where are the defibrillators."

Click here to read more from The San Ramon Patch.