Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Added browser platform support #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neilrackett
Copy link

This update implements the plugin's API methods for browser platform, all of which are hard coded to return a rejected Promise.

This means that no code changes or workarounds are required to test apps using this plugin in a browser, no more Uncaught ReferenceError: inAppPurchase is not defined errors being displayed, and a more graceful workflow for developers targeting the browser platform.

@neilrackett
Copy link
Author

If anyone else out there wants to test their in-app purchase user journey using browser platform, iOS simulator or Android emulator, I've put together an alternative solution and made it available via NPM:

cordova-plugin-inapppurchase-simulator

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

Successfully merging this pull request may close these issues.

1 participant