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
I am using this plugin (version 13.10.1) in a capacitor project (version 5.7.3) along other capacitor plugins. For this issue report I will focus on the official Share plugin that utilizes the startActivityForResult and onActivityResult mechanism (but the same is happening to many others).
Observed behavior
Issue is that after initiating the purchase flow the plugin intercepts any onActivityResult calls from other plugins for their first call.
So when I initiate the purchase flow and dismiss the payment sheet, either by buying a product or closing it (the onActivityResult is not called), and then calling a capacitor plugin (the Share plugin in this case) that utilizes startActivityForResult and onActivityResult, the capacitor plugin never gets to return its payload back to the app as this plugin has set the activityResultCallback property to capacitor bridge.java and thus captures the result.
Notice that Share plugin onActivityResult works as expected at first, but then after invoking the purchase flow of this plugin, the share plugin onActivityResult is not invoked anymore.
Expected behavior
System Info
Output of cordova info.
The text was updated successfully, but these errors were encountered:
I am using this plugin (version 13.10.1) in a capacitor project (version 5.7.3) along other capacitor plugins. For this issue report I will focus on the official Share plugin that utilizes the startActivityForResult and onActivityResult mechanism (but the same is happening to many others).
Observed behavior
Issue is that after initiating the purchase flow the plugin intercepts any onActivityResult calls from other plugins for their first call.
So when I initiate the purchase flow and dismiss the payment sheet, either by buying a product or closing it (the onActivityResult is not called), and then calling a capacitor plugin (the Share plugin in this case) that utilizes startActivityForResult and onActivityResult, the capacitor plugin never gets to return its payload back to the app as this plugin has set the activityResultCallback property to capacitor bridge.java and thus captures the result.
Here is a video demonstrating the issue and the flow:
https://www.youtube.com/watch?v=SRxTy1jfD84
Notice that Share plugin onActivityResult works as expected at first, but then after invoking the purchase flow of this plugin, the share plugin onActivityResult is not invoked anymore.
Expected behavior
System Info
Output of
cordova info
.The text was updated successfully, but these errors were encountered: