openedx / openedx-app-ios

The mobile app for iOS for the Open EdX Platform.
Apache License 2.0
19 stars 14 forks source link

[iOS] There is no "Upgrade..." button for the course #488

Closed sergeymomot closed 1 month ago

sergeymomot commented 1 month ago

Found that for the course https://learning.edx.org/course/course-v1:HarvardX+MCB63X+1T2024c/home in OpenedX mobile app there is no "Upgrade to access more features button". At the same time this button is present on the Web and edX mobile app

Image

rnr commented 1 month ago

closed bug is on current edx app

forgotvas commented 1 month ago

from @saeedbashir - old app uses

if let courseModes = dictionary["course_modes"] as? [[String: AnyObject]]  {
            for mode in courseModes where mode["slug"] as? String == "verified" {
                verifiedModeAvailable = true
                if let sku = mode["ios_sku"] as? String {
                    iosSku = sku
                }
                lmsPrice = mode["min_price"] as? Double ?? 0
                break
            }
        }

verifiedModeAvailable isn't checking for the sku which it should be