AlexDisler / cordova-plugin-inapppurchase

A lightweight cordova plugin for in app purchases on iOS/Android
316 stars 191 forks source link

iOS change order getProducts #105

Open Seoptics opened 7 years ago

Seoptics commented 7 years ago

Your code / steps to reproduce

// Add your product Ids here (non-consumable)
var productIds = [ncProductProVer, ncProductNoAds];

// LOAD all available products
loadProducts = function () {
    $ionicLoading.show({ template: spinner + 'Loading...' });
    inAppPurchase
        .getProducts(productIds)
        .then(function (products) {
            alert(product.productId);
            $ionicLoading.hide();
            // Load all products by ID
            products.forEach(function (product) {

On Android, the order of available products is as I define in my array above (ncProductProVer, ncProductNoAds). If I change it and put ncProductNoAds as first, it will display as first. BUT iOS whatever order I put my product in the array of available product, the .getProducts always return an array where the ncProductNoAds is first. This behavior only occurs in iOS. It worked some weeks ago like expected..

Version of cordova

6.4.0

Version of iOS/Android

Android 5.01 iOS 10.2

peterel commented 6 years ago

Issue for me too...no news on this?