question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cordova plugin not working: cordova-plugin-inapppurchase

See original GitHub issue

cordova-plugin-inapppurchase has a hardcoded (native layer) requirement of a file existing at www/manifest.json, but when using Capacitor the location is at public/manifest.json.

Native layer code:

context.getAssets().open("www/manifest.json");

Could Capacitor add a symlinked dir (www -> public) for better compatibility or maybe a way to configure the Android webdir to www?

Edit: I guess in my case I can easily add the symlink myself and check it into version control, but maybe other cordova plugins relies on assets being located in www and it would be an easy way to make those plugins compatible out of the box.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
farzammalekzadcommented, Oct 24, 2021

for solving this issue you must change node-modules, in this regard go to file “inAppBillingV3.java” and search “manifest”. in line 69 change “www/manifest.json” to “public/manifest.json”. rebuild ionic

0reactions
ionitron-bot[bot]commented, Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · j3k0/cordova-plugin-purchase - GitHub
In-App Purchase for Cordova on iOS, Android and Windows - Issues ... Failed to resolve entry for package "cordova-plugin-purchase".
Read more >
Cordova Plugin Purchases (RevenueCat Plugin) not working ...
I have installed cordova-plugin-purchases on my app which works fine on the Android version. On iOS while I am following all the ...
Read more >
iOS IAP cordova-plugin-inapppurchase - Apple Developer
I keep getting the following error when I try to pay() (using inapppurchase plugin for cordova) for an IAP in the App store:....
Read more >
cordova-plugin-purchase - npm
Cordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP). ... Start using cordova-plugin-purchase in your project by running `npm i ...
Read more >
In App Purchase 2 | Ionic Documentation
Don't waste precious time on plugin issues. ... npm install cordova-plugin-purchase $ npm install @awesome-cordova-plugins/in-app-purchase-2
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found