cordova-issues mailing list archives

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


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:
        Customize this policy to fit your own app's needs. For more guidance, see:
        Some notes:
            * gap: is required only on iOS (when using UIWebView) and is needed for JS->native
            * 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: 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src
'self' data: content:;">


> Cordova plugin-dialogs not working on iOS
> -----------------------------------------
>                 Key: CB-12412
>                 URL:
>             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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message