iOS 8 compatibility

Testing permission setting