Open ghost opened 8 years ago
declare var PhoneCallTrap:any;
PhoneCallTrap.onCall(...)
This method I have tried but not working.I want to know by using this plugin can I create one window popup when I will get incoming call(like true caller:caller name,State etc...).please suggest me.
Here is my package.json
"dependencies": { "@angular/common": "8.2.13", "@angular/core": "8.2.13", "@angular/forms": "8.2.13", "@angular/platform-browser": "8.2.13", "@angular/platform-browser-dynamic": "8.2.13", "@angular/pwa": "~0.803.20", "@angular/router": "8.2.13", "@angular/service-worker": "~8.2.13", "@capacitor/core": "1.4.0", "@capacitor/ios": "^1.4.0", "@ionic-native/barcode-scanner": "^5.19.1", "@ionic-native/core": "5.0.0-beta.15", "@ionic-native/fcm": "^5.21.5", "@ionic-native/file": "^5.19.1", "@ionic-native/in-app-browser": "5.0.0-beta.15", "@ionic-native/local-notifications": "^5.21.5", "@ionic-native/network": "^5.19.1", "@ionic-native/sms": "^5.19.1", "@ionic-native/splash-screen": "5.0.0-beta.15", "@ionic-native/status-bar": "5.0.0-beta.15", "@ionic/angular": "^4.11.6", "@ionic/storage": "^2.1.3", "angular-svg-round-progressbar": "^3.0.1", "cordova-android": "^8.1.0", "cordova-ios": "^5.1.1", "cordova-plugin-badge": "^0.8.8", "cordova-plugin-device": "^2.0.3", "cordova-plugin-fcm-with-dependecy-updated": "^4.1.1", "cordova-plugin-file": "^6.0.2", "cordova-plugin-inappbrowser": "^3.2.0", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-ionic-webview": "^4.1.3", "cordova-plugin-local-notification": "^0.9.0-beta.2", "cordova-plugin-network-information": "^2.0.2", "cordova-plugin-splashscreen": "^5.0.3", "cordova-plugin-statusbar": "^2.4.3", "cordova-plugin-whitelist": "^1.3.4", "cordova-sms-plugin": "^1.0.0", "core-js": "^3.4.1", "io.gvox.plugin.phonecalltrap": "^0.1.2", "ionic4-star-rating": "^1.1.1", "phonegap-plugin-barcodescanner": "^8.1.0", "rxjs": "^6.5.3", "sw-toolbox": "3.6.0", "tslib": "^1.10.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/architect": "^0.803.20", "@angular-devkit/build-angular": "^0.803.20", "@angular-devkit/core": "^8.3.20", "@angular-devkit/schematics": "^8.3.20", "@angular/cli": "8.3.21", "@angular/compiler": "8.2.13", "@angular/compiler-cli": "8.2.13", "@angular/language-service": "~8.2.14", "@capacitor/cli": "1.4.0", "@ionic/angular-toolkit": "^2.1.1", "@ionic/lab": "^2.0.18", "@types/jasmine": "3.5.0", "@types/jasminewd2": "2.0.8", "@types/node": "^12.12.17", "codelyzer": "^5.2.0", "jasmine-core": "^3.5.0", "jasmine-spec-reporter": "4.2.1", "karma": "4.4.1", "karma-chrome-launcher": "^3.1.0", "karma-coverage-istanbul-reporter": "2.1.1", "karma-jasmine": "2.0.1", "karma-jasmine-html-reporter": "1.4.2", "protractor": "^5.4.2", "puppeteer": "^2.0.0", "ts-node": "8.5.4", "tslint": "^5.20.1", "typescript": "~3.5.3" }, "cordova": { "platforms": [ "ios", "android" ], "plugins": { "cordova-plugin-device": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-whitelist": {}, "cordova-plugin-ionic-webview": { "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" }, "cordova-plugin-statusbar": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-network-information": {}, "phonegap-plugin-barcodescanner": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-file": {}, "cordova-sms-plugin": {}, "cordova-plugin-fcm-with-dependecy-updated": {}, "cordova-plugin-local-notification": {}, "io.gvox.plugin.phonecalltrap": {} } }
Getting PhoneCallTrap undefined on the window scope. Using cordova 6.2 Ionic 2 Angular 2, typescript.
thanks.