Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Purchasing on iOS for auto-renewable subscriptions
Forum Update on Monday, May 27th 2025

Qt Purchasing on iOS for auto-renewable subscriptions

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 876 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by
    #1

    Hi

    I need to implement monthly and yearly subscriptions for an iOS application written with Qt/QML. The closest in-app purchase seems to be auto-renewable subscription, however the Qt Purchasing API currently only supports Consumable and Non-Consumable types. Is there a way to still use Qt Purchasing on iOS with auto-renewable subscriptions ?

    thanks
    Bogdan

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cristeab
      wrote on last edited by
      #2

      I have found that auto-renewable subscriptions can be registered using as type either Consumable or Non-consumable (Unlockable) types. So type argument in registerProduct method seems to be ignored.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        h00bs
        wrote on last edited by
        #3

        Hey Bogdan,
        there is a Qt plugin for subscriptions available with Felgo that you can check out: https://felgo.com/updates/release-3-2-0-qt-5-12-3-subscriptions

        Developer at Felgo - https://felgo.com/qt

        Develop mobile Apps for iOS & Android with Qt
        Develop Games with Qt

        Felgo is an official Qt Technology Partner

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bogong
          wrote on last edited by bogong
          #4

          The Felgo plugin is working only if used Felgo from begin, but if you using something Qt native or original there might be a troubles because Felgo require in main function a lot of specialised and developed by Felgo team:

          QApplication app(argc, argv);
          	FelgoApplication felgo;
          
          	// Use platform-specific fonts instead of Felgo's default font
          	felgo.setPreservePlatformFonts(true);
          
          	QQmlApplicationEngine engine;
          	felgo.initialize(&engine);
          
          	// Set an optional license key from project file
          	// This does not work if using Felgo Live, only for Felgo Cloud Builds and local builds
          	felgo.setLicenseKey(PRODUCT_LICENSE_KEY);
          
          	// use this during development
          	// for PUBLISHING, use the entry point below
          	felgo.setMainQmlFileName(QStringLiteral("qml/Main.qml"));
          
          	// use this instead of the above call to avoid deployment of the qml files and compile them into the binary with qt's resource system qrc
          	// this is the preferred deployment option for publishing games to the app stores, because then your qml files and js files are protected
          	// to avoid deployment of your qml files and images, also comment the DEPLOYMENTFOLDERS command in the .pro file
          	// also see the .pro file for more details
          	// felgo.setMainQmlFileName(QStringLiteral("qrc:/qml/Main.qml"));
          
          	engine.load(QUrl(felgo.mainQmlFileName()));
          
          	// to start your project as Live Client, comment (remove) the lines "felgo.setMainQmlFileName ..." & "engine.load ...",
          	// and uncomment the line below
          	//FelgoLiveClient client (&engine);
          
          	return app.exec();
          

          If you using already written on pure QT there are huge chance to get conflict.

          Beside all of it another point Felgo reassigning the Qml Application main component on their own that is beside by version of pure Qt. Just tried to implement theirs plugin for subscription and got failed because of conflict to my own components and application architecture.

          Another 5 cents ... After opening in Felgo version of Qt Creator original *.pro.user file rewritten and do not working on original Qt Creator. Need to reconfigure project from scratch.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved