UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

IAP 2: always loading....

Forums > Videos

Hi

At 26:35, Paul runs a demo, when he tried to create 4th project, the IAP sheet shows.

Mine shows too, but staying in "Loading...." forever.

If I set breakpoint, it seems productsRequest in UnlockManager.swift has never been called, so it has never change to .loaded state.

Does anyone know what could be wrong?

Thank you very much!

p.s. I haven't fully followed MVVM2, but it compiled ok.

I have verified productID is matched in configuration.storekit and Unlockmanager.swift

5      

I would check your code again as when i did worked fine. So maybe an error in your code.

6      

I found the reason when I rewatch video:

I didn't choose "Configuration.storekit" in Run scheme.

5      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.