Any data should be collected under GDPR, however completely anonymous data isn't subject to GDPR.
Without seeing the app, if it generates unique ID with no identifying data other than say phone number, there's next to no personal data involved. If u enter name, address etcthen that data will as always be subject to GDPR.