Is it possible to open call screen automaticall if the device is on idle?

Hello, i was planning to create a chat app using ionic+angular for my current project. They want it to be like whatsapp, so i was thinking is there a way to open call screen automatically if there’s a user calling? like whatsapp did?