Android native share menu: Detect supporting browsersJavaScript for detecting browser language preferenceIs there a way to detect if a browser window is not currently active?Detect when browser receives file downloadLaunch custom android application from android browserDetect whether there is an Internet connection available on AndroidAndroid Options Menu in FragmentHow to detect Safari, Chrome, IE, Firefox and Opera browser?Detecting a mobile browserStarting Android app from browser: How to feature-detect “Intent” support?share content of html meta tags in android webview/ android

Give function defaults arguments from a dictionary in Python

Is there a limit on how long the casting (speaking aloud part of the spell) of Wish can be?

Co-author responds to email by mistake cc'ing the EiC

Don't these experiments suggest that locality has to be abandoned in the quantum realm?

Which household object drew this pattern?

Is it best to use a tie when using 8th notes off the beat?

How to write triplets in 4/4 time without using a 3 on top of the notes all the time

Why were movies shot on film shot at 24 frames per second?

How to refer to a regex group in awk regex?

How do I make distance between concentric circles equal?

If all stars rotate, why was there a theory developed, that requires non-rotating stars?

Why is 日本 read as "nihon" but not "nitsuhon"?

IndexOptimize - Configuration

How much code would a codegolf golf if a codegolf could golf code?

What is the hex versus octal timeline?

Why didn’t Doctor Strange stay in the original winning timeline?

How to create a summation symbol with a vertical bar?

Was Switzerland really impossible to invade during WW2?

Three Singles in Three Clubs

Is it appropriate for a prospective landlord to ask me for my credit report?

System to validate run time complexity requirements

If the first law of thermodynamics ensures conservation of energy, why does it allow systems to lose energy?

Can a character spend multiple hit dice at level 1?

Why don't electrons take the shorter path in coils



Android native share menu: Detect supporting browsers


JavaScript for detecting browser language preferenceIs there a way to detect if a browser window is not currently active?Detect when browser receives file downloadLaunch custom android application from android browserDetect whether there is an Internet connection available on AndroidAndroid Options Menu in FragmentHow to detect Safari, Chrome, IE, Firefox and Opera browser?Detecting a mobile browserStarting Android app from browser: How to feature-detect “Intent” support?share content of html meta tags in android webview/ android






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am developing an Android app that uses a webview, which contains code as posted below.



A function shareArticle() is meant to filter browsers according to support for navigator.share (Google's API to call the native share menu) and do stuff accordingly. However nothing happens when clicking the button that calls the function, at the very least an alert prompt would be handy.



Any idea how can I make so I can share content using the native Android share screen?



export const shareArticle = () => 
return AndroidNativeShare("Title", "www.google.com", 'description');
;

async function AndroidNativeShare(Title, URL, Description)









share|improve this question
































    2















    I am developing an Android app that uses a webview, which contains code as posted below.



    A function shareArticle() is meant to filter browsers according to support for navigator.share (Google's API to call the native share menu) and do stuff accordingly. However nothing happens when clicking the button that calls the function, at the very least an alert prompt would be handy.



    Any idea how can I make so I can share content using the native Android share screen?



    export const shareArticle = () => 
    return AndroidNativeShare("Title", "www.google.com", 'description');
    ;

    async function AndroidNativeShare(Title, URL, Description)









    share|improve this question




























      2












      2








      2








      I am developing an Android app that uses a webview, which contains code as posted below.



      A function shareArticle() is meant to filter browsers according to support for navigator.share (Google's API to call the native share menu) and do stuff accordingly. However nothing happens when clicking the button that calls the function, at the very least an alert prompt would be handy.



      Any idea how can I make so I can share content using the native Android share screen?



      export const shareArticle = () => 
      return AndroidNativeShare("Title", "www.google.com", 'description');
      ;

      async function AndroidNativeShare(Title, URL, Description)









      share|improve this question
















      I am developing an Android app that uses a webview, which contains code as posted below.



      A function shareArticle() is meant to filter browsers according to support for navigator.share (Google's API to call the native share menu) and do stuff accordingly. However nothing happens when clicking the button that calls the function, at the very least an alert prompt would be handy.



      Any idea how can I make so I can share content using the native Android share screen?



      export const shareArticle = () => 
      return AndroidNativeShare("Title", "www.google.com", 'description');
      ;

      async function AndroidNativeShare(Title, URL, Description)






      javascript android html reactjs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 15:35









      MarsAndBack

      2,8953 gold badges15 silver badges33 bronze badges




      2,8953 gold badges15 silver badges33 bronze badges










      asked Mar 27 at 15:22









      MizlulMizlul

      4991 gold badge7 silver badges42 bronze badges




      4991 gold badge7 silver badges42 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0













          Checking for existence of navigator.share is the recommended and logical solution. Unfortunately this does not seem to work in webviews. See the filed bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=765923






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55380807%2fandroid-native-share-menu-detect-supporting-browsers%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0













            Checking for existence of navigator.share is the recommended and logical solution. Unfortunately this does not seem to work in webviews. See the filed bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=765923






            share|improve this answer





























              0













              Checking for existence of navigator.share is the recommended and logical solution. Unfortunately this does not seem to work in webviews. See the filed bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=765923






              share|improve this answer



























                0












                0








                0







                Checking for existence of navigator.share is the recommended and logical solution. Unfortunately this does not seem to work in webviews. See the filed bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=765923






                share|improve this answer













                Checking for existence of navigator.share is the recommended and logical solution. Unfortunately this does not seem to work in webviews. See the filed bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=765923







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 8 at 18:39









                MendelMendel

                1117 bronze badges




                1117 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55380807%2fandroid-native-share-menu-detect-supporting-browsers%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript