Plug 0.5.2: DAB Contact Sync š Account Switching š§³ and More!
Today weāre dropping a user experience focused update for both your wallet & connecting to dApps through Plug.
Another release?! Yes, you heard right ā weāve been putting some extra elbow grease in behind the scenes to streamline the development process of Plug, and itās starting to pay off šŖ
For this update weāve been focusing on improving the user experience of Plug across dApps and devices by syncing your contacts & allowing dApps to elegantly handle account switching.
If thatās not enough, weāve also got some honorable mentions that span from subtle quality of life UI improvements to smaller but empowering developer features.
As always, you can download Plug v0.5.2 from the Chrome Web Store, & Firefox Add-on Store, or get it from GitHub!
Contact Syncing Ć la DAB ā²ļø
With our iOS app recently released (& Android getting close š¤«), your wallet in Plug is becoming accessible from more and more places, making continuity across wallet instances evermore important.
A few weeks ago, DAB released its on-chain private address book so that users could manage a private list of contacts that they can bring with them across dApps ā this is a no-brainer integration for Plug.
The move to a private synced contact list in Plug will go on behind the scenes. Once Plug updates to 0.5.2 on your device, all of your existing contacts in Plug will automatically be pushed to DABās Address Book, effectively syncing your contacts anywhere your wallet in Plug goes.
The best part? You donāt have to do a thing! š„
Account Switching šæ
Weāre also empowering dApps to create experiences that automatically adapt to account switches in this update.
No more need for refreshing the page and accepting a new whitelist pop-up when you switch your account! Account switching gives dApps the freedom to handle these switches in whatever elegant way they see fit.
If youāre a userā¦
When youāre switching your account, Plug will check to see if youāre connected to a dApp and prompt you to add whitelist permissions to the account youāre switching to (if you havenāt already connected to the dApp).
The rest is up to the dApp devs to add ā let your favorite dApp know about this update by sending them this blog so they can integrate it!
If youāre a developerā¦
Good news, this update is backwards compatible š¤
To enable account switching, Plugās in-page provider has received an update that adds a new optional parameter named onConnectionUpdate
to the requestConnect
method that is used to initiate connects to wallets in Plug.
This callback can be configured to do whatever your dApp wants, like say, get the principal of the new account and make requests for data that other canisters have saved against that principal (like token or NFT balances).
Ready to start integrating? Visit our updated docs and example code.
Honorable Mentions āØ
Plug v0.5.2 is also coming with a few smaller goodies, letās go over them in rapid fire.
ICScan Support
Weāve moved to ICScan as Plugās block explorer of choice. As a start, ICP transactions in Plug will link out to ICScanās expanded details page.
However, weāre also working with the ICScan team to expand their block-explorer beyond the ICP ledger by adding CAP history to the mix. This will allow for transaction history to also span all dApp & canister events logged to CAP.
NFT Focus View Changes
We changed a few small things on the NFT focus view layout that we thought made for better UX in preparation for more features coming to this view from future integrations with Jelly.
Can you spot them? š
Exporting .pem Files Fix
Finally, right!? Exports of .pem files from Plug are now importable to any version of DFX (latest at time of writing is 0.10.0).
Weāve been tackling a bug since DFX updated to 0.8.1, feels good to get this one off our chest.
DIP721v2 Sending Patch
The title says it all, we patched a š where NFTs built on the DIP721v2 standard couldnāt be transferred through Plug.
This means that Crowns are now able to be transferred.
Zoom / Multiple Screen Fix on Chrome
This is a weird one.. Chrome made an update that sometimes broke pop-ups, like Plug connection modals, if you had changed your zoom or screen settings.
Without getting into the semantics, weāve fixed the issue & users can get back to connecting to their favorite dApps with Plug!
Plug into the Internet Computer š
Thatās all from us today! This has been a quick update with powerful enhancements to the quality of life of both users & dApps that use Plug!
Got an idea, need help with anything (especially around account switching integration), or want to jam with the team? Then hop into our Discord!