odemolliens / react-native-sim-cards-manager

React Native plugin to manage Sim card(s) & eSim
MIT License
63 stars 27 forks source link

Inquiry Regarding Installation of eSIM Using activationCode #62

Open dzenankosuta opened 8 months ago

dzenankosuta commented 8 months ago

I am currently exploring the functionality of your repository and I am interested in installing an eSIM card using the activationCode provided by my eSIM provider.

I noticed that the current method in the repository does not have a property for activationCode. Could you please provide guidance on how I can achieve this alternatively? Are there any specific steps or modifications I can make to the existing code to accommodate the activationCode during the eSIM installation process?

Thanks!

faezmurshidi commented 7 months ago

the param confirmationCode is the activationCode

dzenankosuta commented 7 months ago

@faezmurshidi Thanks. But I always get an error: "EMBEDDED_SUBSCRIPTION_RESULT_ERROR - Can't add an Esim subscription" Do you know what should be the problem?

faezmurshidi commented 7 months ago

@dzenankosuta have you checked with your RSP esim provider whether they have set up the configuration for your app - as carrier privileged. This include setting up your app package and sha signing key in the esim profile metadata.

alternatively, you might want to debug the device itself when doing the setup esim call - to get more logs. adb logcat | grep "Euicc"