How to register APNS outside App Delegate


#1

I saw this over at StackOVerflow

How ever it is from 2013.

Are there alternative reads?