apns: Declare settings at the top
Small line length fixes