I am trying to APNS get device token in iOS without a prompt for user permission. But only with UIapplication.registerforemotenotification in didfinsih launch I am not getting did register delegate get called it only gets called when user gives permission.
If you want to present notification banners/alerts, you must obtain user's permission for push notifications. If you only need silent push notifications (in order to be able to send updates to the app), you can enable background mode - "Remote Notifications". In this case, you will get a token, even if you don't get the user's permission, but remember that banners will not be visible.