add support for xcode6 and ios8

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