In India, the world’s second-biggest smartphone market, Apple Inc’s normally deft management of government relations is being put to a fresh high-stakes test. For almost two years, Apple has battled India’s telecom regulator over a demand that it allow the use of the government’s anti-spam app.