FILE PHOTO: The logo for Google LLC is seen at the Google Store Chelsea in Manhattan, New York City, U.S., November 17, 2021. REUTERS/Andrew Kelly/File Photo

SINGAPORE (Reuters) -Singapore's police have ordered Apple [AAPL.O] and Google [GOOGL.O] to prevent the spoofing of government agencies on their messaging platforms, the home affairs ministry said on Tuesday.

The order under the nation's Online Criminal Harms Act came after the police observed scams on Apple's iMessage and Google Messages purporting to be from companies such as the local postal service SingPost.

In September, the government also threatened to impose fines on Meta Platforms [META.O] if it did not introduce measures like facial recognition to help curb impersonation scams on Facebook, including those involving key government office holders.

While government agencies have registered with a local SMS registry so only they can send messages with the "gov.sg" name, this does not currently apply to the iMessage and Google Messages platforms.

"Members of the public may assume that messages they receive from accounts claiming to be from 'gov.sg' on iMessage or Google Messages are legitimate because messages sent through iMessage and Google Messages appear alongside and are not easily distinguishable from SMSes," the police said.

Under the order, Google and Apple will need to prevent accounts and group chats from displaying names which spoof "gov.sg" and other Singapore government agencies, or filter such messages out.

The home affairs ministry said Apple and Google have committed to complying with the order, and they urged the public to update their mobile apps to ensure that the latest safeguards are in place.

Google said in a statement on Tuesday that it is collaborating with the government to implement these preemptive measures, and that the move builds on the company's existing efforts to combat scams, such as proactive spam filtering.

Apple could not immediately be reached for comment.

(Reporting by Jun Yuan Yong; Editing by David Stanway)