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

Issue with purchasing iOS subscription after migration from @awesome-cordova-plugins #137

Closed
mtrnik opened this issue Oct 23, 2023 · 1 comment

Comments

@mtrnik
Copy link

mtrnik commented Oct 23, 2023

Hello, I used these packages to have in app purchases in my application:
"@awesome-cordova-plugins/purchases": "^5.45.0",
"cordova-plugin-purchases": "^2.4.0",

There is a deprecation of Google Play Billing library version 4 usage and I see that this plugin is now the default one for capacitor connections to RevenueCat. I followed migration steps in https://github.com/RevenueCat/purchases-capacitor/blob/main/migrations/v6-MIGRATION.md and it looks that on Android is everything working fine but on the iOS I am getting some weird errors when I call the purchasePackage method.

It looks like the app doesn't do anything for a while (approx. 20 seconds) and then I get this message:

2023-10-23 12:56:18.541535+0200 App[2188:1222523] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

After some additional time I get this message:

2023-10-23 12:56:49.469955+0200 App[2188:1223533] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2023-10-23 12:56:49.470137+0200 App[2188:1223533] [ProcessSuspension] 0x10d021020 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=2200, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2023-10-23 12:57:19.454555+0200 App[2188:1222523] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

I am testing on a real device with iOS 16.

Could anyone help me how to fix the issue?

@tonidero
Copy link
Contributor

Hi @mtrnik, sorry for the delay!

I was taking a look at this issue. In order to be able to reproduce, could you:

  • Add more information about your setup? Please include what framework you're using (React/Angular/Vue/....), what version of the capacitor plugin you're using and any other relevant information
  • Send logs from the revenuecat SDK up to the time the issue happens. You can enable logs by calling setLogLevel BEFORE you call configure.
  • A snippet of code of how you're calling purchasePackage and how you're calling getOfferings

Please let me know if you need any help with these!

@mtrnik mtrnik closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants