Prime Minister Narendra Modi's official app sparked a furor after allegations it shared user data without their consent.