cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-12412) Cordova plugin-dialogs not working on iOS
Date Tue, 07 Feb 2017 19:50:41 GMT

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

jcesarmobile closed CB-12412.
-----------------------------
    Resolution: Not A Problem
      Assignee: jcesarmobile

This is not an error, cordova-ios apps need gap: protocol on the CSP to make plugins work.
(It depends on the iOS version, Apple became stricter with the CSP and * doesn't cover all
cases and blocks the plugins from working if you don't include the gap:)

See the CSP that the default Cordova app includes, with the comment where it explains some
of them, and the most important, the gap:
{code}
<!--
        Customize this policy to fit your own app's needs. For more guidance, see:
            https://github.com/apache/cordova-plugin-whitelist/blob/master/README.md#content-security-policy
        Some notes:
            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native
communication
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack
to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities.
To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->
        <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap:
https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src
'self' data: content:;">

{code}

> Cordova plugin-dialogs not working on iOS
> -----------------------------------------
>
>                 Key: CB-12412
>                 URL: https://issues.apache.org/jira/browse/CB-12412
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Dialogs
>    Affects Versions: 6.4.0
>            Reporter: Lintang
>            Assignee: jcesarmobile
>             Fix For: 6.4.0
>
>
> I cannot use Cordova Dialogs (cordova-plugin-dialogs) on iOS.
> My setup:
> Node version: v6.9.4
> Cordova version: 6.4.0
> cordova-plugin-dialogs 1.3.1 "Notification"
> Xcode: 8.2.1
> iPhone: 6S
> iOS: 9.3.4
> When I tried the plugin (either on deviceready or manual trigger), it does nothing at
all, either on simulator or real iPhone.
> But with the same code (without any modification), I tried running it on Android, it
works.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message