The getActivePublicKey function fetches the public key of the active web wallet.
The ACCESS_PUBLIC_KEYpermission must be granted either while calling connect() or getPermissions() in order to successfully use this function. Read more about permissions .