react-native-sim-data icon indicating copy to clipboard operation
react-native-sim-data copied to clipboard

App gets Sim data on second load

Open shrikantr-iprogrammer opened this issue 5 years ago • 5 comments

Install the app on your phone and you wont get the Sim details at first load. Kill the app and reopen or reload it then only you will get the Sim data.

shrikantr-iprogrammer avatar Jan 31 '20 13:01 shrikantr-iprogrammer

I am facing the same problem. Did anyone got solution for that?

gypsicoder avatar Feb 16 '20 09:02 gypsicoder

im using react-native-restart for this problem.

after granted permission, then rnrestart.

edoofx avatar Apr 07 '20 01:04 edoofx

Did you find any solution ?

tinydiv333 avatar Aug 08 '20 08:08 tinydiv333

Same problem here to

codeword7 avatar Aug 19 '20 18:08 codeword7

it's a chicken / egg problem: the code (which is a constant) is evaluated on app load, but if the permissions were not granted, it fails to update. the code could be changed to re-evaluate at every call

pocesar avatar Aug 19 '20 21:08 pocesar