While President Trump may have given his "blessing" to an agreement to keep video-sharing app TikTok operational in the U.S., there was no similar deal made for the Chinese mobile-texting app WeChat, owned by Tencent (TCEHY 1.70%).

There are concerns about the massive amount of user data collected by the app, including on Chinese nationals in the U.S., which it was feared could be given to Beijing to target individuals and exact reprisals against them. So Trump banned WeChat from being hosted on Apple's (AAPL -0.65%) App Store, Google's Play store, and other similar channels in the U.S.

WeChat screens on smartphone

Screen shots from WeChat. Image source: WeChat.

The ban was to go into effect at midnight Sunday, but a U.S. judge in California issued a preliminary injunction in favor of WeChat users that blocks implementation of the ban. U.S. Magistrate Judge Laurel Beeler said in her ruling that because the arguments against the ban raise "serious questions going to the merits of the First Amendment claim, the balance of hardships tips in the plaintiff's favor."

Her ruling also prohibits the Commerce Department from implementing a ban on transactions on the texting app.

The injunction is probably a cause for relief for Apple. The company faced the possibility of being placed on an "unreliable entities list" by the Chinese government, which would have prohibited it from investing in China or trading with the Chinese market.

Although no companies involved have been officially identified as an "unreliable entity," government-controlled media has threatened Apple and Alphabet's (GOOG 0.67%) (GOOGL 0.62%) Google with retaliation. While Google has limited exposure to China, Apple does some $44 billion in annual sales there, almost 20% of its annual global revenue.

There are reportedly 3.3 million active WeChat users in the U.S. as of August. The ruling will likely be appealed since Commerce officials told reporters on Friday they were anticipating an extended legal fight.