Certain share API from Chrome for Android


Paolo Lops
Hi David,do you now the way to implementthe share with...like if (navigator.share) { navigator.share({ title: 'Web Fundamentals', text: 'Check out Web Fundamentals — it rocks!', url: 'https://developers.google.com/web', }) .then(() => console.log('Successful share')) .catch((error) => console.log('Error sharing', error)); }with AB?regards Paolo

DecSoft

Hello Paolo,

Apparently you are trying to use some Javascript code. Certainly, we can use Javascript code in our apps, for example, just by place the Javascript code between the "StartJS" and "EndJS" actions. However, if I am not wrong, you must include some thirdparty code in your app, that is, the Javascript that defines the "share" object that you are trying to use. If so, you can do it by adding the script file or URL from the app's file manager.

On the other hand, I want to ask this to you: are you try the "Share1" and "Share2" examples? Please, try these samples, since may can be useful for you. If you have any other question related with this thread, please, don't hesitate to post it here and we will try to help you.



Paolo Lops

David,

the result should will be like this

https://codeburst.io/the-web-share-api-is-here-cb651d84eccd




DecSoft

Hello Paolo,

If I am not wrong, the API that you want to use is only available in Chrome for Android... apparently is more or less simply to use, we can place the below code in a Button control Click event, for example:


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.