Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

How to get incoming caller name/number using ionic 3/4/

$
0
0

@gokujy wrote:

Hello,
How can i get incoming caller name or number using ionic. I tried this code but i am not able to get number.

//phone calls
phonecalls() {
if (window.PhoneCallTrap) {
window.PhoneCallTrap.onCall(function (state) {
alert("CHANGE STATE: " + state);
switch (state) {
case “RINGING”:
console.log(“Phone is ringing”);
break;
case “OFFHOOK”:
console.log(“Phone is off-hook”);
break;

      case "IDLE":
        console.log("Phone is idle");
        break;
    }
  });
}

}

please help if possible :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>