1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

content / test / data / android / installedapp.html [blame]

<!DOCTYPE html>
<html>
    <head>
        <title>getInstalledRelatedApps</title>
        <script>
            function doGetInstalledRelatedApps() {
                if (navigator.getInstalledRelatedApps === undefined) {
                    window.document.title = 'Fail: navigator.getInstalledRelatedApps === undefined';
                    return;
                }

                navigator.getInstalledRelatedApps().then(r => {
                    window.document.title = 'Success: ' + r.length + ' related apps';
                }).catch(e => {
                    window.document.title = 'Fail: ' + e;
                });
            }
        </script>
    </head>
    <body>
    </body>
</html>