I have restricted background data but i am still getting Whatsapp and Facebook messages notifications.
I'm using an android 8.1 Oreo.
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
Push messages are usually not received by the app itself, but by the Google Push Notification Service (part of the "Google [Play] Services"). This prevents that every app have to built their own notification system which would cost a lot of battery and traffic.