hub icon indicating copy to clipboard operation
hub copied to clipboard

Limited UX customization for apps

Open code3z opened this issue 4 years ago • 2 comments
trafficstars

I'd like apps to have a very limited ability to modify the hub UX, like when the popup opens the app can display a customized welcome message, or when triggering a transaction the app can be able to skip the account choosing process.

code3z avatar Jul 09 '21 20:07 code3z

Can you tell us a bit more about for what usecase you would display a message, and what happens after?

For the address-selection skipping: the signTransaction method has no account-selection, and for the checkout method the account selection can be skipped by setting the sender and maybe forceSender options in the request (https://nimiq.github.io/hub/api-reference/checkout#options).

sisou avatar Jul 13 '21 11:07 sisou

Here is a use case for checkout API:

Replace the “Imagine if paying with crypto was easy” screen with one that better relates to the app (in this case a subscription platform). Below the custom message, have a button for login/sign up/connect ledger.

Doing this wouldn’t be a high priority but it can improve the experience for first-timers.

code3z avatar Jul 24 '21 13:07 code3z