Check user status sandbox or production in iOS

Hello Guys,

As title of this question, I want to check the current Apple user that is going to purchase IAP/subscription within my app. I attached an image of Apple alert that says [Environment: Sandbox].

Is it possible to check the logged in user is sandbox user or real user?

 

I guess my question is why is this important? Apple IAP is designed to connect to the sandbox during testing and production with live builds without you making any code changes.

Rob

Thanks Rob. I have to change the url of validation from Apple in case of subscriptions. It’s a headache to upload same build again after testing.

Usman

I guess my question is why is this important? Apple IAP is designed to connect to the sandbox during testing and production with live builds without you making any code changes.

Rob

Thanks Rob. I have to change the url of validation from Apple in case of subscriptions. It’s a headache to upload same build again after testing.

Usman