Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Empty phoneNumber string #97

Open
6 of 16 tasks
ravargash opened this issue Nov 10, 2021 · 1 comment
Open
6 of 16 tasks

Empty phoneNumber string #97

ravargash opened this issue Nov 10, 2021 · 1 comment

Comments

@ravargash
Copy link

ravargash commented Nov 10, 2021

Expected behaviour

Phone number field should give a valid data

Actual behaviour

Phone number field is emply

I'm seeing this behaviour on

  • iOS device
  • iOS simulator
  • Android device
  • Android emulator

I am using

  • cordova
  • ionic
  • PhoneGap
  • PhoneGap Developer App
  • Intel XDK
  • Intel App Preview
  • Telerik
  • Other:

Hardware models

Samsung Galaxy J7

OS versions

Android 8.1.0

I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).
  • I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?

Create Ionic/ng project
npm install cordova-plugin-sim
npm install @ionic-native/sim
add Sim to the provider list in app.module.ts
Inject Sim in the constructor of any module (ie: app.component.ts)
add something like

this.Sim.requestReadPermission().then( () => console.log('Permission granted'), () => console.log('Permission denied') ); ... this.Sim.getSimInfo() .then( info => { console.log(info); } )

ionic build
ionic cap add android
run android studio son gradle does its magic
ionic cap run android -l --host=0.0.0.0

That info object will have its phoneNumber field as an empty string

@AbuobaidaMustafa
Copy link

I am facing the same issue any suggestion please ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants