Hi
I'am have error with auto-renewable subscription verification (validation result 21004)
What this mean?
Also I cant find where in playFab I can set sharedsecret
Hi
I'am have error with auto-renewable subscription verification (validation result 21004)
What this mean?
Also I cant find where in playFab I can set sharedsecret
From the Apple docs, 21004 is "The shared secret you provided does not match the shared secret on file for your account.": https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html
However, PlayFab's iOS receipt validation is designed to validate in-app purchases of specific items. We go through a number of steps to confirm that the receipt is valid, is for your title, and has never been used in the past, and then place an instance of the item purchased (from your defined game catalog) in the player inventory. Subscriptions aren't fully supported yet by our system, though if you want to send the specific receipt to us at devrel@playfab.com, we can work with you on possible approaches.
I could have sworn that my iOS IAP with PlayFab validation was fully working, but when testing today with my first Beta build, the Apple part of the purchase works fine, but then I get the 21004 error about InvalidSharedSecret.
What's interesting is... I went to App Store Connect and PlayFab Apple Add-On settings, and the shared secret WAS different. I was missing 1 character at the end of the secret in the PlayFab Apple Add-On setting. Bundle ID was correct.
So I fixed that and have triple checked it a few times. A couple hours later, I am still getting the same error. Does it take many hours to "propagate" this change? If not, I wonder what the problem is?
There's a space in your shared secret (at the start of the string). If you get rid of that (assuming the rest of it matches your Apple secret), you should be good. I'll file a backlog item to have those input fields automatically remove leading/trailing spaces.
3 People are following this question.