Implement Android SDK
This native SDK enables Android developers to use the PolygonID solution in Android project.
How to use the SDK
Follow the steps from the up to date README GitHub repository prerequisites.
The SDK needs to be initialized before being used:
PolygonIdSdk.init( context = context, env = EnvEntity( blockchain = "polygon", network = "mumbai", web3Url = "https://polygon-mumbai.infura.io/v3/", web3RdpUrl = "wss://polygon-mumbai.infura.io/v3/", web3ApiKey = "theApiKey", idStateContract = "0x134B1BE34911E39A8397ec6289782989729807a4", pushUrl = "https://push-staging.polygonid.com/api/v1" ) )
envparam is optional but you need to set it up at some point via
Once initialized, you can use the SDK through his singleton
Under the hood
This SDK is calling the Flutter SDK through
MethodChannel, that's why each method has a
Context param to initialize the get
You don't need to install or know anything about Flutter.
New Polygon ID Documentation Website Available!
We've released a new version of our documention. Head to devs.polygonid.com to check it out.