Pro Tips for Zero-Delay Integration
Learn the secrets and techniques used by top companies to integrate ReOTP for maximum speed and best UX.
To achieve the ultimate "Zero-Delay" experience and make the verification feel like magic, follow these golden tips we recommend for all companies integrating ReOTP:
1. Use PREDICTIVE Mode in the Background
Do not wait for the user to click the "Login" button to request the link. Instead, listen to the phone number input event (e.g., onInput or onChange). Once the number is complete, silently fire a POST /api/verify/init request with "method": "PREDICTIVE". This won't deduct from your balance and will fetch the links (waLink and tgLink) instantly.
2. Skip Loading Spinners
When the user finally clicks "Login", the deep links (waDeepLink) should already be ready. Instantly redirect the browser silently using window.location.href = waDeepLink to open the app instantly, and make the visible button act as a fallback using window.open(waLink, "_blank") for desktop users without the app. This cuts the waiting time from 3 seconds to 0 seconds.
3. Proactive Server Wake-Up
As soon as you send the PREDICTIVE request, ReOTP works behind the scenes to wake up and prepare the WhatsApp server. By the time the user opens their WhatsApp app, your server is connected and ready to receive the message instantly.
4. Real-Time Countdown
The session expires in exactly 2 minutes. We recommend displaying a visual countdown timer (120 seconds) in your UI to create a sense of urgency, encouraging the user to send the message quickly and improving your Conversion Rate.