Not being notified when someone is in my apartment

I live in an apartment and the maintenance person is coming in and ring didn’t alert me

Yes, depending on your settings for your doorbell, it is possible for someone to walk up, unlock your door, and walk in before the doorbell “wakes up”.
Check your Motion Frequency and Sensitivity settings to see if they are at the Max. See if that works better for you. Be aware though, turning them up can eat into battery life so you might keep an eye on that and tweak settings until you are happy with battery life vs. motion settings.