pbakondy / cordova-plugin-sim

:cherries: A cordova plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, etc)
MIT License
163 stars 100 forks source link

plugin not working, reported not installed under iOS #85

Open whisere opened 5 years ago

whisere commented 5 years ago

Expected behaviour

It works under Android, but under iOS it reports plugin not installed. although on xcode build phrase - compiled libraries the Sim.m is included, plugin folder also exists.

Actual behaviour

WARN: Ionic Native: tried calling Sim.requestReadPermission, but the Sim plugin is not installed. Install the Sim plugin: 'ionic cordova plugin add cordova-plugin-sim' Your phoneNumber is ERROR: ERROR Error: Uncaught (in promise): plugin_not_installed

I'm seeing this behaviour on

I am using

Hardware models

iPhone xs

iOS versions

12.2, 12.1

I've checked these

So how can we reproduce this?

Provide the steps to reproduce the issue. ionic cordova plugin add cordova-plugin-sim npm install --save @ionic-native/sim@4 run successfully build and run without problem under xcode.

Any idea will be much appreciated.