You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "supriyamalusare (via GitHub)" <gi...@apache.org> on 2024/08/13 11:50:30 UTC
[I] Unable to get events for _system as target [cordova-plugin-inappbrowser]
supriyamalusare opened a new issue, #1066:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1066
# Bug Report
We are not able to get events in case of target system . We are able to get browser events for target as blank.
## Problem
We are not able to get events in case of target system . We are able to get browser events for target as blank.
### What is expected to happen?
We need to get events for the system target. As we are opening a payment gateway which requires a system browser.
We have to get back to app based on received events.
### What does actually happen?
Currently system browser not sending any events to plugin so unable to get back to app.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Environment - Cordova , platform- android
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Unable to get events for _system as target [cordova-plugin-inappbrowser]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1066:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1066#issuecomment-2286228599
This is intentional and [documented](https://github.com/apache/cordova-plugin-inappbrowser?tab=readme-ov-file#inappbrowseraddeventlistener).
> Adds a listener for an event from the InAppBrowser. (Only available when the target is set to '_blank')
`_system` loads the user's preferred browser app. Despite plugin name, it's not really an "in-app" browser with this option. Cross communication is limited if not completely restricted thus event propagation cannot be facilitated, because there are no observable events to begin with.
OAuth vendors have started to block webviews because of their nature to modify the loaded content making them untrustful when it comes to authentication. Presumably your payment gateway is requiring the system browser for the same reason. Native approach exposed by a cordova plugin might be necessary to integrate your payment gateway.
[Custom Tabs](https://developer.chrome.com/docs/android/custom-tabs) (not implemented by this plugin) behaves similar to an external "system" browser but is still within the app. I'm not 100% sure on the limitations of Custom Tabs but I believe it will still have a limitation of calling back to your app, so I'm not sure if it will be a sufficient solution. There is a third-party plugin called [cordova-plugin-safariviewcontroller](https://www.npmjs.com/package/cordova-plugin-safariviewcontroller) (Safari View Controller is the iOS equivalent API, but the plugin also implements Android's Custom Tabs). It could be a path worth exploring to confirm one way or another if it's suitable for your situation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Unable to get events for _system as target [cordova-plugin-inappbrowser]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #1066: Unable to get events for _system as target
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1066
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org