'Flutter FirebaseMessaging - Device token only showing up in simulator

The app I'm building requires push notifications. Naturally I followed all the docs from Firebase on how to add the right code and enable things for iOS. When I run the sim(iPhone 12) it works on both Android and iOS (device token shows up as text to test), but when I release a dev IPA for my physical device it fails to show the device ID. What am I missing here?

Any help and thinking along appreciated :)



Solution 1:[1]

I found the answer. It had to do when distributing the app through xcode. The PPN needed to be manually added.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexander Deprez