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
Running in a browser, the constructor prints in console:
'Native: InAppBrowserOriginal is not installed or you are running on a browser. Falling back to window.open.'
so by example is not possibile to use any feature of the original plugin.
By example:
observable is undefined following the execution of const observable = browserRef.on("beforeload").
Expected behavior:
Using plugin browser proxy would expose more features, like the ".on()" method.
EDIT:
According to the latest doc: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/
Passing target "_blank" is required to use addEventListener and I do, but the problem is that iab.create prints in console:
'Native: InAppBrowserOriginal is not installed or you are running on a browser. Falling back to window.open.'
so the _objectInstance will stay undefined and the "on" method will not do anything, even if according to the "Browser Quirks" of the "addEventListener" section of the doc only states that: 'loadstart, loaderror, message events are not fired.' letting think that others may work.
EDIT 2:
Changed title and description of the bug
The text was updated successfully, but these errors were encountered:
fansanelli
changed the title
in-app-browser: on method returns undefined
in-app-browser: actually support browser platform
Apr 9, 2024
I'm submitting a ... (check one with "x")
Current behavior:
Running in a browser, the constructor prints in console:
'Native: InAppBrowserOriginal is not installed or you are running on a browser. Falling back to window.open.'
so by example is not possibile to use any feature of the original plugin.
By example:
observable is undefined following the execution of const observable = browserRef.on("beforeload").
Expected behavior:
Using plugin browser proxy would expose more features, like the ".on()" method.
Steps to reproduce:
Related code:
Other information:
Similar discussion on ionic forum:
https://forum.ionicframework.com/t/question-regarding-awesome-cordova-plugins-in-app-browser/233322/1
The possibile reason why is not working
ionic-team/capacitor#3813
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):EDIT:
According to the latest doc: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/
Passing target "_blank" is required to use addEventListener and I do, but the problem is that iab.create prints in console:
'Native: InAppBrowserOriginal is not installed or you are running on a browser. Falling back to window.open.'
so the _objectInstance will stay undefined and the "on" method will not do anything, even if according to the "Browser Quirks" of the "addEventListener" section of the doc only states that: 'loadstart, loaderror, message events are not fired.' letting think that others may work.
EDIT 2:
Changed title and description of the bug
The text was updated successfully, but these errors were encountered: