Hong Kong (CNN Business) A real-time mapping app that Hong Kong protesters have been using to track police movements is no longer available for download on iPhones.

decided to take down HKmap.live from its App Store after complaints from several people in Hong Kong, the company said in a statement Thursday. The app had been used in ways that "endanger law enforcement and residents in Hong Kong," it added.

"The app displays police locations and we have verified with [Hong Kong authorities] that the app has been used to target and ambush police, threaten public safety, and criminals have used it to victimize residents in areas where they know there is no law enforcement," Apple said in an emailed response to CNN Business.

"This app violates our guidelines and local laws, and we have removed it from the App Store," it added.

A display of the app "HKmap.live" designed by an outside supplier and available on Apple Inc.'s online store is seen in Hong Kong Wednesday, Oct. 9, 2019.

A 'political decision'

HKmap hit back against Apple on Thursday, slamming its removal from the App Store as a "political decision."

"We disagree [with] Apple and Hong Kong police force's claim that HKmap App endangers law enforcement and residents in Hong Kong," the app said on Twitter

Most of the content on the app is generated by its users, HKmap said, adding that moderators delete anything that tries to "solicit, promote, or encourage criminal activity."

The App Store ban "is clearly a political decision to suppress freedom and human rights in Hong Kong," it said.

It was not immediately clear whether people who have already downloaded HKmap can continue to use it. The app's developer did not immediately respond to requests for further comment.

China's state media criticizes Apple

Apple's decision came soon after Chinese state media criticized it for allowing HKmap to be downloaded.

On Tuesday, the official newspaper of China's Communist Party published a harshly-worded commentary accusing Apple of "escorting" the protesters.

"The app developer doesn't shy away from their intention of helping rioters navigate through the protests," the People's Daily said. "Are you trying to assist in crime?"

China is a key market for Apple. The company's sales in the Greater China region totaled $9.1 billion last quarter, or about 17% of its global total.

Beijing has taken an increasingly hard line on the Hong Kong protests, and on Wednesday slammed them as "violent and illegal."

A spokesman for China's foreign ministry declined to specifically comment on Apple's decision to allow the mapping app, but said the unrest "threatens the safety of Hong Kong people's life and properties."

"Anyone that has conscience or a sense of justice should oppose it and resist it, rather than supporting or indulging it," he added.

Foreign firms caught in the middle

The National Basketball Association was drawn into the controversy this week.