Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Location Redirect of SMS, Email, or Call not working on Page Load in ReactJS

I'm using the following code snippet:

 else if (item.title == 'Text') {
            try {
                window.open(`//sms:${item.link}`, "_blank")
            } catch (error) {
                console.log(error)
            }

When clicking on a button on the page, it works perfectly, triggering the SMS app, and the correct number being prefilled. But if I want this to execute on a page load, it just opens a blank page with sms:12345 (just an example) on a new tab but does not trigger the phone SMS app.

I'm facing this issue on React.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!