D
D
Danandavi2019-08-05 17:08:45
JavaScript
Danandavi, 2019-08-05 17:08:45

How to choose an application for building a route?

Good afternoon! Is there a way that by clicking on the "Build a route" link on a mobile device, the choice of opening the route in a particular application, for example, in Yandex maps or in Yandex navigator, is offered?
ps I found the usual links to the map and navigator.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bQ1, 2019-08-05
@bQ1

I advise you to read here
For example, if you need to share a link through the choice of applications:

function share(){
        if (navigator.share) {
          navigator.share({
            url: 'ТВОЙ ЮРЛ',
          })
          .then(() => console.log('Successful share'))
          .catch((error) => console.log('Error sharing', error));
        }
      }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question