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

410
Views
Why is navigator.share only sharing text, not the URL?

I have added a navigator.share function to my react app, but for some reason, it is only sharing the text from the object and not the URL? Is there something I am missing here?

    function shareList() {
      if (navigator.canShare) {
        navigator.share({
          title: "Page Title",
          text: "brief description",
          url: window.location.href,
        });
      } else {
        //functionality for desktop
      }
    }
<input type="button" value="Share..." onclick="shareList()"/>

On iOS, the share dialogue pops up properly, but the share object is just text and not a URL. Here is a screenshot of the pop-up

Share dialogue screenshot

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It appears the issue was with my device. I tested on another device soon after posting and it worked fine, and after restarting my device it worked as intended.

about 4 years ago · Juan Pablo Isaza Report
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!