[ 
https://issues.apache.org/jira/browse/CB-11846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lex Mourek updated CB-11846:
----------------------------
    Description: 
{{window.open('mailto:f...@bar.com')}} is inconsistent among platforms. On iOS 
it opens native email app, on Android and WP it silently fails and do nothing. 

On the other hand window.open('tel:650-349-9067') works on Android and iOS but 
not on WP. 

I know now that one can add second parameter {{_system}} to window.open to 
enforce opening link in native browser but the main problem is that it is not 
evident for the first look. It took me two hours on my project to find out that 
it is the InAppBrowser plugin which causes that my email links don't work on 
Android while it works on iOS.

I suggest we fix {{mailto:}} links opening on Android and Windows to make it 
consistent and I'm able to provide pull request for this.  

  was:
{{window.open('mailto:f...@bar.com')}} is inconsistent among platforms. On iOS 
it opens native email app, on Android and Windows it silently fails and do 
nothing. 

On the other hand window.open('tel:650-349-9067') works on all mentioned 
platforms. 

I know now that one can add second parameter {{_system}} to window.open to 
enforce opening link in native browser but the main problem is that it is not 
evident for the first look. It took me two hours on my project to find out that 
it is the InAppBrowser plugin which causes that my email links don't work on 
Android while it works on iOS.

I suggest we fix {{mailto:}} links opening on Android and Windows to make it 
consistent and I'm able to provide pull request for this.  


> window.open mailto: consistency
> -------------------------------
>
>                 Key: CB-11846
>                 URL: https://issues.apache.org/jira/browse/CB-11846
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Plugin InAppBrowser
>    Affects Versions: 1.5.0
>            Reporter: Lex Mourek
>            Priority: Minor
>             Fix For: Master
>
>
> {{window.open('mailto:f...@bar.com')}} is inconsistent among platforms. On 
> iOS it opens native email app, on Android and WP it silently fails and do 
> nothing. 
> On the other hand window.open('tel:650-349-9067') works on Android and iOS 
> but not on WP. 
> I know now that one can add second parameter {{_system}} to window.open to 
> enforce opening link in native browser but the main problem is that it is not 
> evident for the first look. It took me two hours on my project to find out 
> that it is the InAppBrowser plugin which causes that my email links don't 
> work on Android while it works on iOS.
> I suggest we fix {{mailto:}} links opening on Android and Windows to make it 
> consistent and I'm able to provide pull request for this.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to