Replies: 3 comments 20 replies
-
| Problem
 Root CauseThe field was not being set when  FixAdded fallback logic in  
 Result: Now correctly returns  | 
Beta Was this translation helpful? Give feedback.
-
| @hyochan I've upgraded react-native-iap to 14.4.24 and  this is object im receiving {
  "id": "com.arkadiuszchr.SmartWorkout.pro.yearly",
  "title": "SmartWorkout Pro",
  "description": "Pro",
  "type": "subs",
  "displayName": "SmartWorkout Pro",
  "displayPrice": "159,99 zł",
  "currency": "PLN",
  "price": 159.99,
  "debugDescription": null,
  "platform": "ios",
  "displayNameIOS": "SmartWorkout Pro",
  "isFamilyShareableIOS": false,
  "typeIOS": "auto-renewable-subscription",
  "introductoryPriceAsAmountIOS": "0",
  "introductoryPriceIOS": "0,00 zł",
  "introductoryPriceNumberOfPeriodsIOS": "2",
  "introductoryPricePaymentModeIOS": "empty",
  "introductoryPriceSubscriptionPeriodIOS": "week",
  "subscriptionPeriodNumberIOS": "1",
  "subscriptionPeriodUnitIOS": "year",
  "discountsIOS": []
}
 {
  "attributes": {
    "description": {
      "standard": "Pro"
    },
    "editorialArtwork": {},
    "icuLocale": "pl_PL@currency=PLN",
    "isFamilyShareable": 0,
    "isMerchandisedEnabled": 0,
    "isMerchandisedVisibleByDefault": 0,
    "isSubscription": 1,
    "kind": "Auto-Renewable Subscription",
    "name": "SmartWorkout Pro",
    "offerName": "com.arkadiuszchr.SmartWorkout.pro.yearly",
    "offers": [
      {
        "assets": [],
        "buyParams": "productType=A&price=159990&salableAdamId=1578674504&pricingParameters=STDQ&pg=bruno_pln&offerName=com.arkadiuszchr.SmartWorkout.pro.yearly&appAdamId=1510802814",
        "currencyCode": "PLN",
        "discounts": [
          {
            "modeType": "FreeTrial",
            "numOfPeriods": 1,
            "price": 0,
            "priceFormatted": "0,00 zł",
            "priceString": "0",
            "recurringSubscriptionPeriod": "P14D",
            "type": "IntroOffer"
          }
        ],
        "price": 159.99,
        "priceFormatted": "159,99 zł",
        "priceString": "159.99",
        "recurringSubscriptionPeriod": "P1Y",
        "type": "buy"
      }
    ],
    "releaseDate": "2009-06-17",
    "subscriptionFamilyId": "20857400",
    "subscriptionFamilyName": "Subskrypcja",
    "subscriptionFamilyRank": 8,
    "supportsRuntimePricing": 0,
    "url": "https://sandbox.itunes.apple.com/pl/app/smartworkout-pro/id1510802814?l=pl"
  },
  "href": "/v1/catalog/pl/in-apps/1578674504?l=pl",
  "id": "1578674504",
  "type": "in-apps"
} | 
Beta Was this translation helpful? Give feedback.
-
| @hyochan in 14.4.26 I still see  | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
After migrating from react-native-iap versions 12/13 to version 14, the
introductoryPricePaymentModeIOSfield returns"empty"instead of the expected"free-trial"value for iOS subscriptions with free trial periods, which prevents the production app from correctly identifying which subscriptions have free trial periods.Environment
Expected vs Actual Behavior
Expected:
Actual (after migration):
jsonRepresentationIOS field:
{"attributes":{"description":{"standard":"Essential"},"editorialArtwork":{},"icuLocale":"pl_PL@currency=PLN","isFamilyShareable":0,"isMerchandisedEnabled":0,"isMerchandisedVisibleByDefault":0,"isSubscription":1,"kind":"Auto-Renewable Subscription","name":"SmartWorkout Coach Essential","offerName":"com.arkadiuszchr.SmartWorkout.coach.essential.monthly","offers":[{"assets":[],"buyParams":"productType=A&price=39990&salableAdamId=6479899453&pricingParameters=STDQ&pg=bruno_pln&offerName=com.arkadiuszchr.SmartWorkout.coach.essential.monthly&appAdamId=1510802814","currencyCode":"PLN","discounts":[{"modeType":"FreeTrial","numOfPeriods":1,"price":0,"priceFormatted":"0,00 zł","priceString":"0","recurringSubscriptionPeriod":"P1M","type":"IntroOffer"}],"price":39.99,"priceFormatted":"39,99 zł","priceString":"39.99","recurringSubscriptionPeriod":"P1M","type":"buy"}],"releaseDate":"2009-06-17","subscriptionFamilyId":"20857400","subscriptionFamilyName":"Subscription","subscriptionFamilyRank":6,"supportsRuntimePricing":0,"url":"https://sandbox.itunes.apple.com/pl/app/smartworkout-coach-essential/id1510802814?l=pl"},"href":"/v1/catalog/pl/in-apps/6479899453?l=pl","id":"6479899453","type":"in-apps"}Beta Was this translation helpful? Give feedback.
All reactions