Starbucks Corp., facing heavy competition, mobile-ordering hiccups and boycott threats, has been losing U.S. customers to rivals.

In February, the company ceded market share to other chains, according to data from xAd Inc., a research firm that uses location signals from mobile phones to measure customer traffic. Starbucks’ share declined to 11 percent among the U.S. restaurants tracked by xAd, down from 12 percent in January.

Competitors have been offering aggressive drink deals, putting pressure on the industry. And Starbucks acknowledged in January that its shift to mobile ordering has hampered customer service and hurt sales. The hassles could be driving some people to other coffee shops, said Bloomberg Intelligence analyst Jennifer Bartashus.

Starbucks spokeswoman Haley Drage declined to comment, citing company policy on financial performance details. The coffee chain is scheduled to report its next earnings April 27.

The company also may have rankled some customers when it said it would hire 10,000 refugees over the next five years.

CEO Howard Schultz made the move in the wake of President Donald Trump’s executive order in January seeking to bar U.S. admission of refugees. Starbucks was threatened with boycotts.

To get customers back in the door, chains are relying more on discounts and rolling out new services.

Dunkin’ Donuts has advertised afternoon drink specials, Panera Bread expanded a rapid pickup service and McDonald’s will start selling $2 McCafe drinks in April.

Starbucks has been advertising hot and iced macchiatos — along with hearty winter foods, such as ham-and-cheese croissants.

It’s also working on a solution to congested pickup counters.