Refactor apns notification internal
Add license header...