Ask for location permission to fix beacon detection on iOS8

This example wasn't working when I tried it on iOS8, and this seems to fix it.