Has anyone figured out how to access the close button (the X in the top right) programmatically within the webview?
I'd like to hook up the Android back button to call this close button. This is to handle the case where the user is on the connected page, after linking their account, but instead of hitting X or Continue, they hit back. As the user has connected their account, the application needs access to the metadata of the successfully linked account. This data is only provided if the user hits X or Continue. If the user closes using the back button, the app never receives this data.
Has anyone figured out how to access the close button (the X in the top right) programmatically within the webview?
I'd like to hook up the Android back button to call this close button. This is to handle the case where the user is on the connected page, after linking their account, but instead of hitting X or Continue, they hit back. As the user has connected their account, the application needs access to the metadata of the successfully linked account. This data is only provided if the user hits X or Continue. If the user closes using the back button, the app never receives this data.