Phone Gap Windows Build access rule
Asked Answered
L

2

8

When I build cordova build for windows the access rules are failing, following are the information in the console

Access rules must begin with "https://", the following rule will be ignored: .*

Basically it saying it require to begin with https,

Anybody face the same issue.

Thanks Mohsin

Lamina answered 7/8, 2015 at 11:3 Comment(1)
This blogger has information on using Windows with Phonegap Build - WorkflowYalu
L
1

The warnings can be ignored... sort of.

Windows builds break on non-https access rules, so in order to prevent Windows builds from failing while still allowing other platforms to use non-https rules, cordova filters out the non-https rules while preparing a windows build.

Those "rule will be ignored" messages appearing in your console are to let you know the rule has been filtered out before building the Windows project. If the app depends on access granted by a rule that is being filtered out, add another one that meets the Windows rule requirements.

More specifically:

Lott answered 5/5, 2016 at 10:35 Comment(0)
Y
0

If you are using white-list rules, and you did NOT provide phonegap-version in your config.xml, you get the latest version. It is good to add version to your config.xml and all your plugins

EXAMPLE additions

::
<preference name="phonegap-version" value="3.5.0" />
::
<gap:plugin name="org.apache.cordova.device" version="0.2.12" />

In addition, you need to use the white-list plugin. Please read the following "official" form post: Notes for upgrading to cli-5.1.1 on PGB
http://community.phonegap.com/nitobi/topics/notes-for-upgrading-to-cli-5-1-1-on-pgb

Yalu answered 7/8, 2015 at 21:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.