Send push notification to targeted device in vanilla js

I am a fresher and learning JavaScript. A problem came into my notice that, I cant send mobile push notification using Notification API. I want to send push notification to both Android and iphones by using their IP address

Any help is appreciated !!
Thank you.