Mexico City, Dec 27 (AP) Mexico is developing a cellphone app that will allow migrants to warn relatives and local consulates if they think they are about to be detained by the US immigration department, a senior official said Friday.

The move is in response to President-elect Donald Trump's threats to carry out mass deportations after he takes office on January 20.

Also Read | Osamu Suzuki Dies at 94: PM Narendra Modi Condoles Demise of Former Chairman of Suzuki Motor, Says 'His Collaboration With Maruti Revolutionised Indian Automobile Market'.

The app has been rolled out for small-scale testing and “appears to be working very well,” said Juan Ramón de la Fuente, Mexico's secretary of foreign affairs.

He said the app would allow users to press a tab that would send an alert notification to previously chosen relatives and the nearest Mexican consulate. De la Fuente described it as a sort of panic button.

Also Read | HMP Wandsworth-Like Sex Row Unfolds Again in UK: Woman Prison Officer Arrested After Video of Her Having Sex With Inmate at Northamptonshire's HMP Five Wells Surfaces.

“In case you find yourself in a situation where detention is imminent, you push the alert button, and that sends a signal to the nearest consulate,” he said.

US authorities are obliged to give notice to home-country consulates when a foreign citizen is detained. Mexico says it has beefed up consular staff and legal aid to help migrants in the legal process related to deportation.

De la Fuente expects the app to be rolled out in January. He didn't say whether the app has a de-activation tab that would allow someone to rescind an alert if they weren't really detained.

The government says it has also set up a call centre staffed 24 hours a day to answer migrants' questions.

The Mexican government estimates there are 11.5 million migrants with some form of legal residency in the United States, and 4.8 million without legal residency or proper documents. (AP)

(This is an unedited and auto-generated story from Syndicated News feed, LatestLY Staff may not have modified or edited the content body)