Giter VIP home page Giter VIP logo

ios-swift-in-app-purchases-sample's Introduction

  • ๐Ÿ‘จโ€๐Ÿ’ป Senior Software Engineer at @myswimpro
  • ๐Ÿ“ฑ Mobile apps โŒš๏ธ Wearable apps
  • ๐Ÿ Swift/ObjC/C++
  • ๐Ÿ•น๏ธ Former gamedev
  • ๐Ÿ“ˆ Former statistical programmer/analyst

ios-swift-in-app-purchases-sample's People

Contributors

matthewberryman avatar maximbilan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ios-swift-in-app-purchases-sample's Issues

Makes no sense

Here is my debug output:

than sct data length
Fetching Products
Got the request from Apple
No products

Here is my
let unlockTestInAppPurchase1ProductId = "AppUnlock"

Here is my iTunes Connect
image

Please help this makes no sense

Check the subscription

which is the best way to check the validity of the subscription in a UIViewController class and to perform an action if the subscription is valid.

`class LoadScreenViewController: UIViewController {
     static let sharedInstance = LoadScreenViewController()
    
    //ActivityIndicator Declarieren
    var activityIndicator:UIActivityIndicatorView = UIActivityIndicatorView()
    
    override func viewDidLoad() {
        super.viewDidLoad()

   // from here check the subscription (InAppPurchase.swift) and do an actionon

        //ActivityIndicator Implementieren um das Ladesymbol anzuzeigen
        activityIndicator.center = self.view.center
        activityIndicator.hidesWhenStopped = true
        activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.white
        view.addSubview(activityIndicator)
        
        activityIndicator.startAnimating()
        
        DispatchQueue.main.asyncAfter(deadline: .now() + 12.0) { // Change `2.0` to the desired number of seconds.
            self.activityIndicator.stopAnimating()
            self.selectSubscription // select a subscriptionon
        }
        
    }`

Thank you!

Great!

Dear maximbilan.

Very thanks for your code.

But my product id is invalid.
I hope you check my settings.

BundleID : com.polaris.InAppTest
Product id: com.polaris.InAppTest.inviting

I want to know your email & skype.

Regards.

tvOS

I tried to use this code in an app for the Apple TV (tvOS) but it doesn't work. I don't get any build errors either.
Can someone please make a small tvOS demo?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.