Skip to content

Cordova Plugin for detecting call state on android and ios

Notifications You must be signed in to change notification settings

arvindder/tektician-call-intercept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

PhoneCallIntercept.onCall(function(state) {
    console.log("CHANGE STATE: " + state);

    switch (state) {
        case "RINGING":
            console.log("Phone is ringing");
            break;
        case "OFFHOOK":
            console.log("Phone is off-hook/Ongoing Call");
            break;

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

About

Cordova Plugin for detecting call state on android and ios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published