You cannot be attacked when the shield is active. Most likely, notifications just came late, after someone attacked you and the shield was turned on.