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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -