How push works
The app registers with Apple Push Notification service or Firebase Cloud Messaging and receives a device token. Your server sends messages through those services to the token. Users must grant permission, on iOS always and on newer Android versions too.
Good practice
Send messages people actually want: booking confirmations, driver arriving, order shipped, a reply to their message. Let users choose categories, respect quiet hours, and avoid marketing blasts, which lead people to switch notifications off or uninstall.
Questions, answered
Apple's and Google's services are free; you pay for the server or third-party service that sends them at scale.
Yes, through the browser with the user's permission, including on iPhone for web apps added to the home screen.