Apple’s App Store reversed a recent decision to reject a Hong Kong app that shows police activity in the midst of increasingly violent pro-democracy protests in the city.
The app, known as HKmap.live, is a mobile version of a website that helps users avoid potentially dangerous areas, according to the developer, who uses the alias Kuma to remain anonymous. It was rejected from Apple’s App Store because it “facilitates, enables, and encourages an activity that is not legal,” Apple told the developer, according to a copy of the rejection notice seen by Bloomberg News. “Specifically, the app allowed users to evade law enforcement,” Apple wrote.
On Friday, Apple reversed the decision and the app has been approved for sale in Hong Kong. “Apple finally made the right decision,” the developer said.
The developer said the app is built to “show events happening” in Hong Kong, but what users choose to do with that information is their choice. “We don’t encourage any advice on the map in general. Our ultimate goal is safety for everyone.”
On Twitter, the developer had argued that the rejection was unfair because other apps, such as Google’s Waze, help drivers avoid traffic cameras and police. Apple is assuming that HKmap.live users are lawbreakers “and therefore evading law enforcement, which is clearly not the same,” the developer wrote on Twitter. By contrast, the app was approved for download on Android phones via a “quick process,” the developer added.
The app was submitted to the App Store on Sept. 21. It was initially rejected on Sept. 26 for another reason related to rules on payment options and what additional functions apps can tap, the developer said. After addressing that issue, the app was re-submitted and rejected again on Oct. 2 for helping users evade law enforcement. The app was submitted for review again later that day, according to the developer.
Apple has to walk a fine line in China. The company sells millions of iPhones in the country and indirectly supports millions of jobs there. But it must also follow local laws that have become increasingly tough when it comes to digital information. In 2017, the company set up a data center in China to abide by laws that require global companies to store information within the country. Apple also pulled some VPN apps from its App Store in China, limiting users’ ability to bypass a local web firewall and access overseas sites.
“We would obviously rather not remove the apps, but like we do in other countries, we follow the law wherever we do business,” Apple Chief Executive Officer Tim Cook said at the time. “We strongly believe participating in markets and bringing benefits to customers is in the best interest of the folks there and in other countries as well.”
Apple couldn’t immediately be reached for comment on the approval.
Reviewing app decisions several times is a common practice. According to Apple’s website, the company rejects 40% of the 100,000 apps considered each week. It has what is known as an App Review Board to evaluate rejections.
As part of its latest review of HKmap.live, Apple likely researched if the software violated local laws. Apple typically examines such laws before making approval or rejection decisions on third-party apps.
The developer had hoped Apple would change its mind. The person had to buy an iPhone and a Mac computer to build the app for the company’s platform. “At least let me publish my app,” the developer said.
More must-read stories from Fortune:
—Domino’s delivers a dilemma to the Supreme Court: a website accessibility case that could impact thousands of companies
—How Russian PR firms plant stories for companies in U.K. news outlets, social media
—Why Tesla quietly acquired DeepScale, a machine learning startup that’s ‘squeezing’ A.I.
—Comcast, Mastercard, and Samsung are pouring millions into this password-killing startup
—Why Apple is offering cheaper streaming and iPhones
Catch up with Data Sheet, Fortune’s daily digest on the business of tech.