GithubHelp home page GithubHelp logo

bitpay / bitpay-app Goto Github PK

View Code? Open in Web Editor NEW
62.0 12.0 45.0 54.43 MB

BitPay App (formerly Copay) is a secure Bitcoin and other crypto currencies wallet platform for IOS/Android.

Home Page: http://bitpay.com/wallet

License: MIT License

JavaScript 1.02% TypeScript 97.70% Java 0.71% C 0.01% Objective-C 0.45% Swift 0.03% Ruby 0.09% Shell 0.01%
bitcoin bitpay blockchain wallet wallet-service

bitpay-app's Introduction

BitPay App v2

Welcome to BitPay App v2!

Get Started

Install dependencies with yarn >= 14.15.0

IOS

  1. Install Pods cd ios && pod install && cd ..
  2. yarn start to start dev server
  3. Build and deploy to simulator yarn ios or device yarn ios:device

Android

  1. yarn start to start dev server
  2. Build and deploy to simulator or device yarn android

Accessing your local server

To make requests to your local server, first take your local BitPay server cert and copy it into android/app/src/main/res/raw folder in either .pem or .der format.

  • To convert .crt to .der, run: openssl x509 -in your_cert_name.crt -out your_cert_name.der -outform DER

Then open android/app/src/main/res/xml/network_security_config.xml and add your local IP to the domain-config and your cert to the trust-anchors (without the file extension).

For example if your local IP is 123.0.0.7 and your cert is in res/raw/lbitpay.der:

<domain-config>
  ...
  <domain includeSubdomains="true">123.0.0.7</domain>
  <trust-anchors>
    <certificates src="@raw/lbitpay" />
  </trust-anchors>
</domain-config>

Redux Dev Tools

This project uses react-redux https://react-redux.js.org/ for state management. To take advantage of the tooling available, go to https://github.com/jhen0409/react-native-debugger and install the debugger.

  1. To enable - make sure debugger is open - tap D in the hosting terminal window or shake the device
  2. A menu will popup - tap Debug with Chrome(IOS) or Debug(Android)
  3. The logs should move from the terminal to the debugger

Storybook

  1. In src/contants/config.ts change APP_LOAD_STORY_BOOK=false to APP_LOAD_STORY_BOOK=true
  2. Run yarn <platform> ex: yarn ios. Since we set APP_LOAD_STORY_BOOK=true, this runs Storybook instead of your actual app.

Deeplinking

Test deeplinking via command line with these commands (note: ampersand must be escaped for multiple params):

iOS

npx uri-scheme open "bitpay://your/deeplink/path?params1=foo1\&param2=foo2" --ios

Android

npx uri-scheme open "bitpay://your/deeplink/path?param1=foo1\&param2=foo2" --android

Modifying the intent prefix

If you want to associate the app with a different intent prefix eg. myapp://:

  1. Open src/constants/config.ts
  2. Modify APP_DEEPLINK_PREFIX to your desired prefix eg. myapp:// (with colon and slashes)
  3. Update the OS specific configs:

iOS

1. Open `ios/BitPayApp/info.plist`
2. Find `CFBundleURLSchemes` and modify the value to your desired prefix (without colon and slashes) eg. `myapp`

Android

1. Open `android/app/src/main/AndroidManifest.xml`
2. Locate `<intent-filter><data android:scheme="...">` and modify the value to your desired prefix (without colon and slashes) eg. `myapp`

bitpay-app's People

Contributors

cmgustavo avatar cnguyen812 avatar gabrielbazan7 avatar gamboster avatar johnathanwhite avatar kajoseph avatar lanchana avatar msalcala11 avatar rastajpa avatar travishoglund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitpay-app's Issues

Provide apk in releases

Can the official bitpay apk be provided as part of the version releases here on the github so people who dont use Google Play Store can update their app from a reliable source?

Build a small business plan

Using code to create a brand new website for e-commerce. Worldwide cultivation, distribution, and customer service of cannabis products.

x_B_THERRIAULT______________

Trouble building releases above v14.11.3

Starting with the v14.11.4 release I've been having trouble building the iOS version of the app. I install node modules and pods and that goes as expected but build fails with one of 3 usual errors but usually involving 'module not found' on the pod it errors on; usually only shows one error at a time and changes on builds.

I've tried the usual cleaning of build folder, deleting derived data and reboots and no change.

Building on a 2020 M1 Mac mini, macOS Ventura 13.4 with Xcode version 14.3.
Any help or direction is appreciated, thanks.

Screenshot 2023-06-07 at 11 06 44 AM
Screenshot 2023-06-07 at 11 04 54 AM
Screenshot 2023-06-07 at 11 03 49 AM

iOS app stuck on importing seed phrase

After entering my phrase the app goes back to the home screen where the My Crypto section appears to be loading, but after 10+ minutes it still hasn't loaded.

What I have tried:

  • Uninstall/reinstall
  • Force closing and restarting the app
  • Canceling import and then re-importing
  • Entering a wrong seed, which correctly gave me an error, so my seed doesn't seem to be the issue.

Happy to provide any other details, hope this gets fixed soon I'd really like to start using the app!

Android Biometrics Security

Trying to add biometric security to a Pixel 4 running Android 13 which has face detection as its biometric. It is set up on the device and working but whenever you try to enable it the error modal pops up and shows "Biometry hardware not present". My guess is it's looking specifically for fingerprint since the biometric icon is for fingerprint; I will mention same build works on iOS with Face ID.

Question - When running in debug mode, it gets stuck on the initial screen and freezes.

Hello, I have downloaded the master branch of this project, installed the relevant dependencies, and successfully run the Android application. Everything works fine, except that I cannot debug it. Whenever I try to debug, I get stuck on the blue "bitpay" screen and cannot proceed. As for the changes I made to the project:

I generated a bundle JS file using "npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res".
I modified the network-security-config file and changed the "cleartextTrafficPermitted" attribute to "true".
I have not made any other changes to the project. I would appreciate any help you can provide when you are available. Thank you very much.

[bug] - When using the Chinese language setting, the wallet crashes upon entering.

When using Chinese language setting, the wallet crashes upon entering.

Reproduction steps:

1.Go to the homepage
2.Click on "MyKey"
3.Enter any wallet
4.The system will then crash, and the app will exit.
This issue exists on both Android (built from source code) and iOS (downloaded from the App Store).

Error log:
com.bitpay.wallet E Error: Requiring unknown module "./locale/zh"., js engine: hermes
com.bitpay.wallet E Error: Requiring unknown module "./locale/zh"., js engine: hermes
com.bitpay.wallet E Error: Requiring unknown module "./locale/zh"., js engine: hermes
com.bitpay.wallet E Error: Requiring unknown module "./locale/zh"., js engine: hermes

Android device:
Error: Requiring unknown module "./locale/zh"., js engine: hermes

Cannot send Bitcoin Cash: 500 - “min relay fee not met (code 66)”

Description

When trying to send Bitcoin Cash, the app shows the following error:

500 - “min relay fee not met (code 66)”

I am not sure what the relay fee refers to or if it’s something I am able to change in the app.
The payment confirmation screen shows “miner fee”, which seemingly cannot be changed.
The miner fee section shows “NORMAL” with the sum 0.000001 BCH. Below that, it says
“0.00 EUR (0.00% of total amount)”.

App and system information

  • app version: 14.11.3 (the latest from Google Play)
  • operating system: Android 13
  • device: Galaxy S22

Could not find com.google.android.gms:play-services-tapandpay:18.2.0

I am trying to compile the android version, but I keep getting the following error

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-tapandpay:18.2.0.

I am trying to understand where this module is suppose to be?

I tried on both MacOS 16.2 and Ubuntu 22.04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.