coinbase / coinbase-ios-sdk

Integrate bitcoin into your iOS application with Coinbase
https://www.coinbase.com/
Apache License 2.0
171 stars 66 forks source link

The authorization example does not jump to my Coinbase app for authorize #36

Closed jeremylu007 closed 6 years ago

jeremylu007 commented 6 years ago

I cloned the coinbase-ios-sdk project, then debug it on my real device through Xcode. When I click "Sign in with Coinbase" button, it jumped to Safari, instead of my Coinbase app.

The xcode log is :

2018-02-08 09:47:06.450807+0800 coinbase[9742:1951334] -canOpenURL: failed for URL: "com.coinbase.oauth-authorize:/oauth/authorize?response_type=code&client_id=f74b2d17b9af897e618efb1ca4d0c502fa7035e41260bef2c0e146c7b9c96b2d&scope=balance%20transactions%20user&redirect_uri=org.cocoapods.demo.coinbase.coinbase-oauth%3A%2F%2Fcoinbase-oauth" - 
error: "This app is not allowed to query for scheme com.coinbase.oauth-authorize"

I expect the authorize will deal by my Coinbase app instead of the safari.

Below is my device info:

If someone know why, please tell me.

Thanks!

jeremylu007 commented 6 years ago

Fixed, I need add com.coinbase.oauth-authorize to whilte list (through edit coinbase-Info.plist file).