You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/09/08 13:19:17 UTC

[GitHub] [cordova-plugin-inappbrowser] Sroose opened a new issue #775: App intents are not supported

Sroose opened a new issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775


   # Bug Report
   
   ## Problem
   Since changing to WKWebView (mandatory for IOS), apps do not get opened anymore (links with any custom app intent, say whatsapp:// etc)
   The inappbrowser gives the error {"code":-1002,"message":"unsupported URL","type":"loaderror"}
   
   ### What is expected to happen?
   The app should open after clicking a link with their intent.
   
   ### What does actually happen?
   Nothing, an error is raised (unsupported URL)
   
   ## Information
   After opening (succesfully) a web page, this page holds buttons that open apps. These buttons dont work anymore.
   
   Note: I am able to use [this ](https://github.com/apache/cordova-plugin-inappbrowser/issues/592#issuecomment-644512070) workaround to add the intent manually in a forked version of the in-app-browser.
   
   I would prefer the solution to use the allowed intents from the cordova-plugin-queries-schemes plugin (or any intent)
   
   ### Command or Code
   ```
   const browserOptions = 'location=no,hardwareback=no,toolbar=yes';
   const browser = this.iab.create(this.paymentUrl, '_blank', browserOptions);
   const listener = browser.on('loadstart').subscribe((event: any) => {
     this.logger.debug('browser is opening url ' + event.url);` // log: browser is opening url intentname://bla
   }
   const errorListener = browser.on('loaderror').subscribe((event: any) => {
     this.logger.error('ERROR: ', event); // log: "ERROR: {"code":-1002,"message":"unsupported URL","type":"loaderror",...
   }
   
   ### Environment, Platform, Device
   IOS, cordova Ionic
   
   
   ### Version information
   cordova-plugin-inappbrowser 4.0.0
   <preference name="WKWebViewOnly" value="true" />
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] 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.

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


[GitHub] [cordova-plugin-inappbrowser] fbrun commented on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
fbrun commented on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-698316277


   Hi,
   Same error under latest iOS 14, but with iOS 13, it's work


----------------------------------------------------------------
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.

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


[GitHub] [cordova-plugin-inappbrowser] fbrun commented on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
fbrun commented on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-701199384


   I have make some tests with different custom schemes : one is open inside the inappbrowser view with a `window.open`, the other with a `window.location.replace`.
   
   With the first nothing happen. The 'loadstart' event isn't detected too.
   I see also that `customscheme` event is never used under ios, with `cordova-plugin-inappbrowser@4.0.0`. It's seem that the window.open in the web site displayed in the inapp web view not function, but i don't know why.
   
   With the second, the event 'loadstart' is sended. As `customscheme` event is never used under ios, i can test the url to determine if it's a custom scheme in the `loadstart` event, then open it with `iab.create(event.url, '_system') (iab is from '@ionic-native/in-app-browser'`. It open successfully the app called.


----------------------------------------------------------------
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.

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


[GitHub] [cordova-plugin-inappbrowser] oborudko edited a comment on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
oborudko edited a comment on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-700148140


   > Hi,
   > Same error under latest iOS 14, but with iOS 13, it's work
   
   it seems that nothing with _system target seems to work on  ios14, at least for me.
   
   I managed to make it work, by fixing the deprecated openUrl method, at least on ios14, haven't tried anything else.
   
   https://github.com/oborudko/cordova-plugin-inappbrowser


----------------------------------------------------------------
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.

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


[GitHub] [cordova-plugin-inappbrowser] fbrun commented on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
fbrun commented on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-698316277


   Hi,
   Same error under latest iOS 14, but with iOS 13, it's work


----------------------------------------------------------------
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.

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


[GitHub] [cordova-plugin-inappbrowser] oborudko commented on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
oborudko commented on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-700148140


   > Hi,
   > Same error under latest iOS 14, but with iOS 13, it's work
   
   it seems that nothing with _system target seems to work on  ios14, at least for me


----------------------------------------------------------------
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.

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


[GitHub] [cordova-plugin-inappbrowser] oborudko removed a comment on issue #775: App intents are not supported

Posted by GitBox <gi...@apache.org>.
oborudko removed a comment on issue #775:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/775#issuecomment-700148140


   > Hi,
   > Same error under latest iOS 14, but with iOS 13, it's work
   
   it seems that nothing with _system target seems to work on  ios14, at least for me.
   
   I managed to make it work, by fixing the deprecated openUrl method, at least on ios14, haven't tried anything else.
   
   https://github.com/oborudko/cordova-plugin-inappbrowser


----------------------------------------------------------------
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.

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