(Bloomberg) -- Apple Inc. came under fire on Monday for sending web browsing data, including IP addresses, to China’s Tencent Holdings Ltd., the latest criticism of how the company operates in the world’s most populous nation.

Apple sends data to Tencent as part of an iPhone and iPad security feature that warns users if a website is malicious or unsafe before they load it. The U.S. company checks addresses against an existing list of sites known to be problematic. That list is maintained by Tencent for users in mainland China and by Google for other regions, including in the U.S.

In newer versions of Apple’s iOS operating systems, the company says this feature “may also log your IP address,” potentially providing Tencent, a Chinese conglomerate with government ties, data such as a user’s location.

“We deserve to be informed about this kind of change and to make choices about it,” Matthew Green, a cryptographer and professor at Johns Hopkins University, wrote in a recent blog. “Users should learn about these changes before Apple pushes the feature into production, and thus asks millions of their customers to trust them.”

Apple said in a statement that the feature protects user privacy and safeguards people’s data. The checks occur on the devices, and the actual web addresses are never shared with Tencent and Google, the safe browsing providers. The feature is on by default, but can be switched off, Apple also said.

The issue has come to light at a time when Apple is being scrutinized for appeasing China. BuzzFeed recently reported that Apple told creators of shows for its TV+ streaming service to avoid portraying China in a poor light.

The company recently removed the Taiwanese flag from the emoji keyboard on devices running in Hong Kong and Macao, after earlier pulling it from Mainland China. It also came under fire for removing a maps app in Hong Kong that the developer said was designed to help users avoid areas of protest. Apple said it was following local laws in both instances.

To contact the reporter on this story: Mark Gurman in San Francisco at mgurman1@bloomberg.net

To contact the editors responsible for this story: Tom Giles at tgiles5@bloomberg.net, Alistair Barr, Andrew Martin

©2019 Bloomberg L.P.