Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fetch offering on real device when using Storekit file #3854

Open
8 of 10 tasks
Saykudan opened this issue Apr 26, 2024 · 4 comments
Open
8 of 10 tasks

Unable to fetch offering on real device when using Storekit file #3854

Saykudan opened this issue Apr 26, 2024 · 4 comments
Labels

Comments

@Saykudan
Copy link

Saykudan commented Apr 26, 2024

Describe the bug

Hello, I’m having really a weird problem that i cant seems to find a solution for it.
So i followed the docs and i duplicated the scheme and and i use storekit for 1 scheme and the other no. when i use storekit file i can do purchases on simulator and the products are fetched but not on real device the products are not fetched. Here is the logs for that

2024-04-26 20:02:14.035805+0100 AIGenerator[5130:1099057] [offering] ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). 
More information: https://rev.cat/why-are-offerings-empty
2024-04-26 20:02:14.035812+0100 AIGenerator[5130:1098800] [error] ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used). 
More information: https://rev.cat/why-are-offerings-empty

But when I don't use store kit ii can fetch the offering on my real device and make purchases but i cant make purchase on simulator ( products fetched).
I hit subscribe,

  • The popup appears, I write password and hit subscribe,
  • It says done (without the tick appearing, just a circle) and the whole popup disappears, but after 3 seconds, the purchase popup (Sandbox) reappears again and again.
  • No matter how many times I hit subscribe, it says done and re-appears.

logs

INFO: 💰 Purchasing Product 'animeart.monthly'
VERBOSE: application/scene willResignActive
DEBUG: Application Backgrounded started
DEBUG: TimeProcessor <OSUnattributedFocusTimeProcessor: 0x6000002919a0> for session attributed 0
DEBUG: sendOnFocusCall unattributed with totalTimeActive 14.922146
DEBUG: OSBaseFocusTimeProcessor hasMinSyncTime getMinSessionTime: 60 activeTime: 14.922146
DEBUG: unattributed influence saveUnsentActiveTime 14.922146
DEBUG: OSBackgroundTaskManagerImpl:beginBackgroundTask: OPERATION_REPO_BACKGROUND_TASK
DEBUG: OSBackgroundTaskManagerImpl:endBackgroundTask: OPERATION_REPO_BACKGROUND_TASK with UIBackgroundTaskIdentifier 12
VERBOSE: application/scene didBecomeActive
DEBUG: Application Foregrounded started
DEBUG: cancelFocusCall of {
    "NOT_ATTRIBUTED" = "<OSUnattributedFocusTimeProcessor: 0x6000002919a0>";
}
DEBUG: shouldStartNewSession:timeSinceLastClosed: 14.528371
DEBUG: shouldStartNewSession:timeSinceInitialization: 113.465627
VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
DEBUG: OneSignal SessionManager attemptSessionUpgrade with entryAction: 1
DEBUG: OneSignal SessionManager attemptSessionUpgrade try UNATTRIBUTED to INDIRECT upgrade
DEBUG: OSChannelTracker for: notification_id lastChannelObjectReceived: (null)
DEBUG: OSChannelTracker for: iam_id lastChannelObjectReceived: (null)
DEBUG: Trackers after update attempt: (
    "OSChannelTracker tag: notification_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)",
    "OSChannelTracker tag: iam_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)"
)
DEBUG: OneSignal SessionManager sendSessionEndingWithInfluences with influences: (
)
my foreground
APP Active

VERBOSE: application/scene willResignActive
DEBUG: Application Backgrounded started
DEBUG: TimeProcessor <OSUnattributedFocusTimeProcessor: 0x6000002919a0> for session attributed 0
DEBUG: sendOnFocusCall unattributed with totalTimeActive 16.927728
DEBUG: OSBaseFocusTimeProcessor hasMinSyncTime getMinSessionTime: 60 activeTime: 16.927728
DEBUG: unattributed influence saveUnsentActiveTime 16.927728
DEBUG: OSBackgroundTaskManagerImpl:beginBackgroundTask: OPERATION_REPO_BACKGROUND_TASK
DEBUG: OSBackgroundTaskManagerImpl:endBackgroundTask: OPERATION_REPO_BACKGROUND_TASK with UIBackgroundTaskIdentifier 13

something like this (not my photos but same process issue)

7c776671-123c-42c9-83f7-07ea921af3cd
e787f09a-65a2-40e5-a26e-ba703de048d0
80ca0de2-7973-4451-a095-05e80feffe16

thats why our app got rejected cuz apple reviewer couldn't finish the purchase at his end i’m really confused. anyone can help please?

  1. Environment
    1. Platform:
    2. SDK version: 4.36.0
    3. StoreKit version:
      • StoreKit 1
      • StoreKit 2 (enabled with usesStoreKit2IfAvailable(true))
    4. OS version:
    5. Xcode version: 15.2
    6. Device and/or simulator:
      • [ x] Device
      • [x ] Simulator
    7. Environment:
      • Sandbox
      • TestFight
      • Production
    8. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
@Saykudan Saykudan added the bug label Apr 26, 2024
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@Saykudan
Copy link
Author

anyone can help please ?

@vegaro
Copy link
Contributor

vegaro commented May 6, 2024

Hi @Saykudan

But when I don't use store kit ii can fetch the offering on my real device and make purchases but i cant make purchase on simulator ( products fetched).

This is expected and it's how simulators work. You can only make purchases on simulators if a StoreKit file is configured. If you try to run an app without Storekit config file in a simulator, the products will be fetched, but trying to make a purchase will fail. So it looks like your app got rejected for another reason different to that. Are you listening to customer info changes correctly?

@Saykudan
Copy link
Author

Saykudan commented May 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants