#dipeshdulal-AppleReview

1 messages · Page 1 of 1 (latest)

verbal mirage
#

It's all depends on the secret key used. If you setup a Live mode publishable then it's on Live mode

pastel dust
#

I would require a setup that changes the key if the application is under review and if it is already published right?

verbal mirage
#

Do you want to flexible changing the key during and after the review?

#

You should make an endpoint to your backend that return publishable key. So you can control it from your backend, either returns the Test key or the Live key

pastel dust
#

Thank you. I understand.

How is it done generally in the industry? Any ideas? Is it the same way?

verbal mirage
#

Yeah it's a common pattern. We also have some guide using that approach (I don't have the link right now but I have seen it)

pastel dust
#

Thank you. Got it.
I will search for the guide.

verbal mirage
#

Good luck

#

I think you can just go ahead implement that endpoint, then you have dynamic Publishable Key

#

It's also useful when you want to update Publishable Key to all your customer. If you hardcode it in the client then you need to submit a new version, and wait for all your customers to download the new app version to have it.

#

Instead if you control it from an endpoint, you can disable and switch to a new key any time

#

Instantly