How to we know user is enable or disable for notification service for our app in swift? : I using the Push notification in my application by using of Firebase.

Here my problem is how to user is enable the notification service or not in his settings for our app.

I want to fetch that data and send every time to backend.

Any one give some idea on that.