ios - How to handle situation with IAP internet loss -
i have 1 button in app, supposed show price of item, if tap on can buy item. button disabled , has no price on it. after application launched, i'm trying fetch item information , if successful show price/enable button.
if there no internet, fetching fail , button remain disabled. internet can on again while i'm in application , going background.
what want ask, choices re-issue fetching again, can it? put button user can manually trigger re-fetching or there other common practices solve issue?
you need monitor internet reachability, both when want price , if changes while app running. take @ library: by tonymillion.
Comments
Post a Comment