Comments (4)
You are right, the documentation could be improved a lot there.
You don't need a webapp to catch the token.
The callback URL you set there should be a URL that your app declares in the manifest.
The easiest way to do things is to use the Transports.sendExpectingResult()
along with the manifest declaration of IntentForwardingActivity
(like so:
This will allow you to get the callback as a simple onActivityResult()
which can be parsed using a ResponseParser.parseActivityResult()
Check out
Of course, the actual callback URL you use should be specific to your app. and it doesn't need to use https
as scheme. It can be app specific too.
The names of these methods or their location will probably change in a future release to increase discoverability.
from uport-android-sdk.
Thank you, it worked. Although, I was expecting it to just send me back and in fact, I have to select the app. Is it supposed to be like that or did I forgot anything?
Sorry about my ignorance, I'm a blockchain developer but I have little knowledge when it comes to android development.
So now, since the demoapp didn't work for me, I'll fix it and open a PR. then, if possible I would like to help with documentation. Maybe using the riot chat could help, right?
from uport-android-sdk.
You have to select the app because you are probably using a http(s)
scheme in the callback URL.
That will prompt the user to select between the browser and your app when the callback is launched.
To get around this there are 2 options.
- use an app specific scheme in the callback URL (for example:
myscheme:mydomain.com/callbacks
) - verify that you own the domain name by posting an
assetlinks.json
with the app signature by following the instructions here: https://developer.android.com/training/app-links/verify-site-associations
Remember to set the same URL in the AndroidManifest.xml
as well.
It's easier to use option 1. at first but if you plan to publish the app it's worth going through the second step too.
It's probably easier to keep the conversation here if the issue is easy to describe.
What exactly did not work for you in the demoapp?
from uport-android-sdk.
Hello, sorry for that. It eventually worked, I was just missing some steps. I'm not familiar with Android and kotlin, so I guess it was only my problem. Let's close it.
Thank you so much for your time.
from uport-android-sdk.
Related Issues (20)
- [bug] after first account creation defaultAccount is not updated
- [support] refactor callbacks into coroutines
- [feature] add support for multiple accounts HOT 1
- [research] easily configure networks HOT 1
- [bug] networkID/chainID is not included in the transaction object during signing
- [support] replace moshi with kotlinx serialization
- [feature] allow configuration of the JWT header & algorithm
- [support] signature recovery code should be imported from kethereum
- Move uport-android-signer into this SDK as a module HOT 1
- [feature] pre-derive keys during account creation
- Provide proguard configuration for android artifacts
- fingerprint protection fails with badpadding HOT 1
- improve documentation for signer in sdk context
- create selective disclosure request
- migrate to BiometricPrompt
- [bug] the test vector for SimpleSigner in DID-JWT does not pass tests
- Upgrade to kotlin 1.3 HOT 1
- Rename KPAccountCreator class and add comments class and add comments HOT 2
- Demo best-practice coroutine calling convention for SDK methods that use Context
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uport-android-sdk.