implemented ios8 location/notification sample code