Small example of using BackgroundFetch on iOS
This code uses a timer delay to simulate contacting a network back end and random number to determine if the "backend" returned new data or not.
A local notifiation is posted when the background fetch task executes.