Question: how to get a notification when someone is online on whatsapp iphone?
Answer: Enable notifications from settings.
Launch WhatsApp.
Visit the Settings tab > tap on OnlineNotify button, and assign users that you want to get notify when they're online, offline, and is typing.