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 101 forks source link

ionic native sim plugin iOS side not working #87

Open Jayprakashsingh opened 5 years ago

Jayprakashsingh commented 5 years ago

Expected behaviour

It works on android ionic native sim plugin but iOS side it reports plugin not installed. although on xcode build phrase - compiled libraries the Sim.m is included, plugin folder also exists

Actual behaviour

THREAD WARNING: ['Sim'] took '64.748047' ms. Plugin should use a background thread. 2019-05-02 10:59:34.219819+0530 MyApp[246:4197] WARN: Ionic Native: tried calling Sim.hasReadPermission, but the Sim plugin is not installed. 2019-05-02 10:59:34.220090+0530 MyApp[246:4197] WARN: Install the Sim plugin: 'ionic cordova plugin add cordova-plugin-sim' 2019-05-02 10:59:34.220319+0530 MyApp[246:4197] WARN: Ionic Native: tried calling Sim.requestReadPermission, but the Sim plugin is not installed.

I'm seeing this behaviour on

I am using

Hardware models

iPhone 6

OS versions

iOS 12.2

Hristijan95 commented 5 years ago

I am having the same issue. I've tried everything and I am getting the "Plugin not installed error" on iOS, while on android it works with no problems.