How can I make a read any notification system?

i just want to give an ID to every user who registers in the application. in a simple way, think of it like a 6-digit UID. I want to list the notifications that come to the user’s phone with this UID. The purpose of doing this is to automatically read and write the code received by sms or gmail. How do I do this in an uncomplicated and simplest way?

Are you planning to send the notifications with the codes? If not, how would you access them?

You can use Firebase user ids or generate your own.

basically, I just want to read the incoming notifications and save them to the data system