handle apns from outside app