react-native-billing | React Native bridge to InApp Billing on Android | Android library

 by   idehub Java Version: v3.0.0 License: MIT

kandi X-RAY | react-native-billing Summary

kandi X-RAY | react-native-billing Summary

react-native-billing is a Java library typically used in Mobile, Android, React Native applications. react-native-billing has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However react-native-billing build file is not available. You can install using 'npm i react-native-billing_v3' or download it from GitHub, npm.

React Native bridge to InApp Billing on Android.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              react-native-billing has a low active ecosystem.
              It has 643 star(s) with 117 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              react-native-billing has no issues reported. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-billing is v3.0.0

            kandi-Quality Quality

              react-native-billing has 0 bugs and 0 code smells.

            kandi-Security Security

              react-native-billing has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-native-billing code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              react-native-billing is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-billing releases are available to install and integrate.
              Deployable package is available in npm.
              react-native-billing has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 568 lines of code, 44 functions and 15 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed react-native-billing and discovered the below as its top functions. This is intended to give you an instant insight into react-native-billing implemented functionality, and help decide if they suit your requirements.
            • Purchase an existing product
            • Puts promise
            • Reject Promise
            • Get the purchase transaction details for a given product
            • Map transaction details to a map
            • Closes the promise
            • Clears the cache
            • Opens the billing process
            • Check if Iab service is available
            • This method is called when an activity is available
            • Shortcut method for short circuit activity
            • Checks if a product is subscribed
            • Checks if the payment details are valid for a given product
            • Checks if a product was purchased
            • Checks if one timePurchase is supported
            • Loads owned accounts from the account
            • Request the subscription details
            • On product purchase
            • Gets details about a purchase
            • Subscribes to a user
            • Creates the native modules
            • Get the transaction transaction details for a given product
            • Consumes a purchase
            • Lists all owned subscriptions
            • List owned products
            • Update subscription
            Get all kandi verified functions for this library.

            react-native-billing Key Features

            No Key Features are available at this moment for react-native-billing.

            react-native-billing Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-billing.

            Community Discussions

            QUESTION

            android react-native avoiding "Background location access not declared" in Google approval process
            Asked 2021-May-25 at 14:40

            Okay, so Google is telling us "Background location access not declared" and not letting us publish our app. We have no use for background location, so we're trying to elimiate it completely.

            Of course my manifest doesn't have it:

            ...

            ANSWER

            Answered 2021-Mar-12 at 11:42

            I had this issue a few weeks ago, what a pain! In my case I had one dependency that was requiring background location without me noticing. Secondly, I had a wrong permission declaration on Google Play so my builds kept being rejected.

            1. Find the evil dependency

            To do this I used the Merged Manifest inspector in Android Studio. This shows you what your manifest looks like after all project dependencies have been taken into account. Find ACCESS_BACKGROUND_LOCATION and double click on it, this will bring you to the actual manifest where it's requested. Scroll to the top of this file and the package=some.package.name should help you identify what it is. In my case the permission was requested by an old dependency I didn't use anymore so I just uninstalled it.

            Note: if you're often working on different branches, make sure you have the correct dependencies installed and make a clean build before checking the merged manifest:

            Source https://stackoverflow.com/questions/66362196

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install react-native-billing

            With this, the linkcommand will do most of the heavy lifting for native linking. But, you will still need add your Google Play license key to the strings.xml (step 5). If you are using a React Native version less than v0.18 you will also have to do step 4.3 (override onActivityResult).
            npm install --save react-native-billing or yarn add react-native-billing
            react-native link react-native-billing
            React Native version >= 0.29 Edit MainApplication.java. React Native version < 0.29 Edit MainActivity.java. Step 4.3 is only required if you are using a lower React Native version than 18.0 and/or your MainActivity class does not inherit from ReactActivity.
            npm install --save react-native-billing
            Add the following in android/setting.gradle
            And the following in android/app/build.gradle
            Update MainActivity or MainApplication depending on React Native version.
            React Native version >= 0.29 Edit MainApplication.java. Add import com.idehub.Billing.InAppBillingBridgePackage; Register package: @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), // add package here new InAppBillingBridgePackage() ); }
            React Native version < 0.29 Edit MainActivity.java. Step 4.3 is only required if you are using a lower React Native version than 18.0 and/or your MainActivity class does not inherit from ReactActivity. Add import com.idehub.Billing.InAppBillingBridgePackage; Register package in ReactInstanceManager: .addPackage(new InAppBillingBridgePackage()) Override onActivityResult: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { mReactInstanceManager.onActivityResult(requestCode, resultCode, data); } Larger example: // Step 1; import package: import com.idehub.Billing.InAppBillingBridgePackage; public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler { ... @Override protected void onCreate(Bundle savedInstanceState) { ... mReactInstanceManager = ReactInstanceManager.builder() .setApplication(getApplication()) .setBundleAssetName("index.android.bundle") .setJSMainModuleName("index.android") .addPackage(new MainReactPackage()) // Step 2; register package .addPackage(new InAppBillingBridgePackage()) .setUseDeveloperSupport(BuildConfig.DEBUG) .setInitialLifecycleState(LifecycleState.RESUMED) .build(); ... } // Step 3: For RN < v0.18, override onActivityResult @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { mReactInstanceManager.onActivityResult(requestCode, resultCode, data); } ...
            Add your Google Play license key as a line to your android/app/src/main/res/values/strings.xml with the name RNB_GOOGLE_PLAY_LICENSE_KEY. For example:

            Support

            oneTimePurchaseSupported: Boolean
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries