Open mtimofiiv opened 6 years ago
On iOS, the flow works perfect. But the same code breaks on Android:
// snippet from an action: async (token) => { try { const brainTreeOptions = { tintColor: config.color.brand, barBgColor: 'white', barTintColor: config.color.brand, bgColor: config.color.gradient[0], callToActionText: 'Save Card' } await BTClient.setup(token) const nonce = await BTClient.showPaymentViewController(brainTreeOptions) } catch (error) { // does not happen } }
I suspect this is to do with the setup() promise being resolved too early.
setup()
Indeed. Also have this issue, for now solved with timeout on Android platform
On iOS, the flow works perfect. But the same code breaks on Android:
I suspect this is to do with the
setup()
promise being resolved too early.