locked
in app purchase crash if phone has no internet connection RRS feed

  • Question

  • Some users has reported that my app crash some seconds after it has been started. 

    I got in contact with one of the users and he confirmed my suspicion. If he turns off wifi and 3G (so phone has no internet connection) the app crash.

    Is this caused by this line

    await Store.CurrentApp.LoadListingInformationAsync();

    in App.xaml.cs? Will adding a try catch here solve the problem?


    Saturday, February 9, 2013 6:50 PM

Answers

  • Yes any call to service should be wrapped in a try catch block. It would be a good idea to check and see if there is network available before making the call
    • Marked as answer by Panzertax Sunday, February 10, 2013 9:22 AM
    Saturday, February 9, 2013 8:10 PM