Can a website (HTML5,JavaScript) access a mobile device's (android/iPhone) contact list, SDCard files

后端 未结 8 1233
春和景丽
春和景丽 2020-12-10 10:58

Can a website (HTML5,JavaScript) access a mobile device\'s (android/iPhone)
contact list, SDCard files? A website as in one opened in a browser not a phonegap applicatio

8条回答
  •  心在旅途
    2020-12-10 11:19

    Am not so sure if the author of this question will still be interested in a solution but I use this on my apps, its really a handy way of access native api from html5 apps. http://bridgeit.mobi/bridgeit.html#features

    BridgeIt enables any web application to access a wide range of mobile device capabilities using a simple JavaScript API.

    Using this tool is as easy as 1, 2, 3…

    1. Include the BridgeIt JavaScript in your page

      
      
    2. Attach a BridgeIt call to some action element on your page, and provide a callback to handle returned values from BridgeIt. For instance, a button to retrieve a contact from the address book...

      bridgeit.fetchContact('element_ID', callback_Function);
      
    3. Access the page from your mobile browser. If the BridgeIt utility app is not already installed, you will be prompted to do so. Once the BridgeIt utility app is installed, your application can access all of BridgeIt's native features.

    Example code can be found here https://github.com/bridgeit/bridgeit.js/wiki/Contact-List-Tutorial

提交回复
热议问题