You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we initiate a client library association with a user's wallet by way of firing off an Intent targeting a receiver Activity included in the wallet app. Unfortunately, this exposes the initiating dApp to potential destruction by the Android OS - The Android documentation explicitly calls this out as documented here.
While this sort of cleanup hasn't become a problem yet, we would do well to try and come up with a method of handling this dApp -> Wallet communication in a way that is more aligned with the Android operating system's operations.
There are a couple of potential options:
Rework the Intent flow, waiting for result codes from the Wallet to initiate any client actions. Interestingly, if we do a complete rework and utilize the AndroidX activity result libraries, we can choose which class receives the result which could help with encapsulation link.
Make the association intents and responses operate through IntentService classes.
There may be other options as well. No matter what, we should investigate and come up with a plane to improve this.
The text was updated successfully, but these errors were encountered:
Right now we initiate a client library association with a user's wallet by way of firing off an Intent targeting a receiver Activity included in the wallet app. Unfortunately, this exposes the initiating dApp to potential destruction by the Android OS - The Android documentation explicitly calls this out as documented here.
While this sort of cleanup hasn't become a problem yet, we would do well to try and come up with a method of handling this dApp -> Wallet communication in a way that is more aligned with the Android operating system's operations.
There are a couple of potential options:
IntentService
classes.There may be other options as well. No matter what, we should investigate and come up with a plane to improve this.
The text was updated successfully, but these errors were encountered: