MOSCOW — A Russian blogger was convicted on Thursday of inciting religious hatred by playing Pokémon Go in a church and posting a video of it online. He received a suspended sentence of three and a half years.

The blogger, Ruslan Sokolovsky, 22, filmed himself in August as he played the smartphone game — an augmented reality environment in which users try to capture pocket monsters — in a Yekaterinburg church built on the spot where the last Russian czar and his family are said to have been killed.

Judge Yekaterina Shoponyak convicted Mr. Sokolovsky, who had been in detention since October, of inciting religious hatred, the same offense for which two women from the protest band Pussy Riot were sent to prison in 2012.

Mr. Sokolovsky’s behavior and his anti-religious videos manifested a “disrespect for society,” Judge Shoponyak said in televised remarks, and he “intended to offend religious sentiments.”