Smartphone fertility app approved as contraception