#[iOS] Can't test promotions

1 messages · Page 1 of 1 (latest)

dense ruin
#

I always get an unexpected error when testing promotions locally.

Native popup appears saying "Can't purchase successfully. Contact developers"

zealous gorge
#

Can you share how you are testing the promotions? Do you mean about Appstore promoted promotions?

dense ruin
#

Just applying an offer to a product when BuyProduct() it shows native popup with the right offer but when paying with Sandbox shows other popup with that error.

dense ruin
#

"Can't make purchase. Contact with developer"

zealous gorge
#

Ok, are the offer redeem details proper?

dense ruin
#

Yes, when the native popup shows payment periods they are right

zealous gorge
#

Ok. Can you please share the logs if any info available?

dense ruin
#

Yes, it fails with errorCode 0

#

I will share logs

dense ruin
#

Purchase did not return a transaction: Error Domain=ASDServerErrorDomain Code=3903 "No se ha podido realizar la compra" UserInfo={NSLocalizedFailureReason=No se ha podido realizar la compra, AMSServerErrorCode=3903, client-environment-type=Sandbox, storefront-country-code=ESP}

#

Can it be because I just can set a promotional offer to upgrade to a subscription in a better level than the one I have?

dense ruin
#

I could make it work with one promotion

#

I think it is because the eligibility

zealous gorge
#

Did you try with multiple promotions on iOS? Actually, it doesn't support on iOS. Am I missing something here?

dense ruin
#

But it should return a failed transaction with erroCode OfferNotApplicable or OfferNotValid, instead I get a errorCode 0

zealous gorge
#

Can you please share your implementation related this specific part - pseudo code is fine too

dense ruin
#

As I read on apple documentation, promotional offers are just for already subscribed user to upgrade subscription to a other subscription that is level up or for user with a cancelled subscription to subscribe again

#

I think that why I can't use any promotion offer

#

But I expected an OfferNotApplicable errorCode when an offer can't be redeemed by that logic

zealous gorge
#

Let me see if thats the error code can be handled.

dense ruin
#

Or maybe I get errorCode 0 because I'm on sandbox tester environment

zealous gorge
#

Let me share a note,
As of now, Offers available on iOS and Android are all subscription offers only. I think thats where the confusion is.

We intentionally moved the offers part out of the subscriptions and made it generic because, we may see offers for consumable and non-consumable too in the future.

dense ruin
#

I'm using Introductory offers and promotional offers

#

But, as I read I can't apply a promotion offer to a user that has no subscription yet

#

For those I need to apply introductory offer

zealous gorge
#

For a product, if it's a subscription thats when only the offers list gets filled up.

#

Ok, yes. What you are heading towards is right.

dense ruin
#

On Android it's easy because I can just apply the offers on the product, but on iOS I receive a lot of offers but I can't apply all of them, they need to follow logic about promotional offers eligibility

#

Except of introductory ones that you remove if is not eligible

#

Apple docs:
"You can use these offers to help win back subscribers who canceled their subscriptions or promote an upgrade to a higher-ranked subscription at a special price."

#

So, what work for me was subscribing to a lower-ranked subscription and then upgrade to a higher-ranked subscription with a promotional offer applied

#

Now, i'm going to subscribe to a lower-ranked level, unsubscribe and try to subscribe to a higher-ranked level with a promotional offer applied

dense ruin
#

This last logic is not working

#

So it just work if I'm subscribed to a low level-ranked subscription and upgrade to high level-ranked subscription

zealous gorge
#

Ok, you want us to filter it so that it will be more intutive on iOS. Right?
Let me check once. I just forwarded the subscriptions I got from the storekit but didn't add any additional conditions to them other than for introductory offers.

I need to double check once if such option exists (similar to IsEligibleForIntroductoryOffer api for other promotional offers too).