Skip to content

[iOS14] StoreKitTest Framework #65082

Closed
Closed

Description

@Thorbenl

Use case

I would really like to be able to test In App Purchases with a unit test :) IOS 14 comes with a new Framework to test IAP locally with a storekit file.
See more here, here and here.

Proposal

I would like to be able to use the StoreKitTest class and the SKTestSession in order to mock my in app purchases locally
Could be a good idea to implement it alongside the official In App Purchase plugin for Flutter!

Activity

  1. added
    a: tests"flutter test", flutter_test, or one of our tests
    platform-iosiOS applications specifically
    c: proposalA detailed proposal for a change to Flutter
    on Sep 2, 2020
  2. Thorbenl commented on Feb 11, 2021

    @Thorbenl
    Author

    Is there any update on this @pedromassango ? This is a pretty big deal to why we havent actually launched the app

  3. cyanglaz commented on Apr 7, 2021

    @cyanglaz

    @jmagman Not yet.

    @Thorbenl
    We have set up StoreKitTest to run the example app on simulator thanks to @mvanbeusekom's flutter-team-archive/plugins#3772
    We do want to incorporate SKTestSession in our UnitTests in our code base, or even set up XCUITests for our example app.
    I'm not clear what are you asking here. Did you want the plugin's iOS coded tested with SKTestSession so you have more confidence to use the plugin? Or did you want the SKTestSession to be expose to as a dart API in the plugin?

  4. kpradeepkumarreddy commented on Apr 17, 2021

    @kpradeepkumarreddy

    StoreKit is for testing with the data that is configured locally. How to test with the consumables created on app store connect using simulator ?

  5. mvanbeusekom commented on Apr 17, 2021

    @mvanbeusekom

    StoreKit is for testing with the data that is configured locally. How to test with the consumables created on app store connect using simulator ?

    @kpradeepkumarreddy Unfortunately you can't. If you want to test your consumables configured in the AppStore you will have to test on a real device.

  6. added
    P3Issues that are less important to the Flutter project
    on Aug 16, 2021
  7. github-actions commented on Apr 8, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttere: OS-version specificAffects only some versions of the relevant operating systemp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions