'How to change the order of list of in-app purchases in appstore app information section?
I have more than 20 in-app purchase subscription plans inside my app. I want to show few selected plans inside the Appstore information section and also I need to reorder that based on my subscription plans. Right now it's showing randomly from the in-app purchase list.
Is there any way I can customize this and show the plans based on my requirement?
Thanks,
Solution 1:[1]
I guess the only way is to sort it alphabetically or by price amount.
here is an example with react native while its not swift you cane create similar results products.sort((item,item2)=> item.price > item2.price ) // will sort the products ascending based on price.
where products is a jason that contains an array of JavaScript objects
Object { "description": "best service for one great price", "price": "$24.82", "priceAmountMicros": 24820000, "priceCurrencyCode": "USD", "productId": "one_session", "subscriptionPeriod": "P0D", "title": "one session", "type": 0, }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |