ios7 - iOS 7: Does the completion for renewCredentialsForAccount:completion: ever run with status ACAccountCredentialRenewResultRenewed? -
the acaccountstore class has method renewcredentialsforaccount:completion: prompt user come in new password business relationship in settings app (see screenshot below). if user hits cancel, completion block called renewresult of acaccountcredentialrenewresultrejected.
there 2 other valid results, block (apparently?) never called: acaccountcredentialrenewresultfailed, , acaccountcredentialrenewresultrenewed. in case of acaccountcredentialrenewresultrenewed, app should re-try business relationship access, since (presumably) user has updated password in settings app.
the problem completion block never called status. i've seen sample code indicating 1 should subscribe acaccountstoredidchangenotification notification, , phone call renewcredentialsforaccount:completion: when happens. doesn't seem right either: notification posted if user taps settings button in prompt, calling renewcredentialsforaccount:completion: @ point results in weird interaction:
renewcredentialsforaccount:completion:: prompt shown user user taps settings button settings app launched , notification posted, so… renewcredentialsforaccount:completion: called again, , "enter twitter password" prompt shown 1 time again on settings app (which makes no sense @ all) is there situation under completion handler is called status of acaccountcredentialrenewresultrenewed?
for app, fine if reply "no," want create sure i'm correctly handling if happen. but, since can't cause situation happen, i'm unable test code might set in block case.
ios ios7
No comments:
Post a Comment