When I install app for the first time and it asks for the permission for getting notification, if I press yes then the Device token is generated, but whenever I relaunch the app, I get the error:
Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)
Can anyone tell whether the device token is generated every time the app is launched?