Demand for the company's cybersecurity software has been rising as more businesses migrate to cloud platforms that support remote work, a trend that has been fueled by the pandemic. Soaring demand for electric vehicles and connected-car technologies has also boosted sales of BlackBerry's auto software, used in cars made by General Motors, Mercedes-Benz and Toyota, among others.

Revenue fell 3.4% to $168 million for the quarter ended May 31, but topped analysts' average estimate of $160.7 million, according to IBES data from Refinitiv.

Net loss widened to $181 million, or 35 cents per share, from $62 million, or 11 cents per share, a year earlier.

(Reporting by Akash Sriram in Bengaluru; Editing by Vinay Dwivedi)