changes to how apns are found, first uses the apns set through settings and if those are null, attempts to find them through the system (although normally permission will be denied)