Xcode6 compile

Added location and notification permission request and changes to compile with xcode6