I am creating an application for Android and am trying to pass a array JSON an element called phoneNumber
, and I am using this plugin below, which brings this element into array : TelephoneNumberPlugin
but the code I'm modeling is as follows:
<script type="javascript">document.addEventListener("deviceready",onDeviceReady,false);function onDeviceReady(){window.plugins.sim.getSimInfo(successCallback, errorCallback);}function successCallback(result) {document.getElementById("tesouro").innerHTML=JSON.stringify(result);}function errorCallback(error) {document.getElementById("tesouro").innerHTML=JSON.stringify(result);}</script><a onclick="ph()">clique</a><p id="nada"></p>