The main purpose of the change was to add support for cli-9.0.0, which is required all new apps submitted to the Google Play Store after August 1, 2019. Existing apps have till November 1 to update.
The version of cli is set in Project Properties, in the PhoneGap section, under Version.
Here is what we have found in testing so far:
cli-6.1.0 is no longer supported
cli-6.5.0 is supported, but has errors for some projects
cli-8.0.0 is supported. Some projects work, some do not
cli-9.0.0 has problems
Weāre looking at solutions now, and will keep you posted.
We were able to update all our samples and get them working in the new release. We will be releasing the updated samples tomorrow.
Build like you always have. There is a bug in PhoneGap Build which causes it to fail intermittently. If you get the message āError: Android linking failedā, just build again. It will probably work the next time (or the time after that). PhoneGap say they are working on this.
George - before the update (last night) the Make Native App with PhoneGap Build worked fine, now I get this with the new update - tried multiple times.
Error: Source path does not exist: icons/android/ldpi.png
that is not one of my images - something else has changed as well. I was on the version from 2 weeks ago, pretty sure it was the prior.
It seems there are a couple of major issues at the moment with PhoneGap build related to the CLI 9.0.0 rollout.
Firstly there are issues with Installing the app which include the āPlay Protectā feature.
The main issue relates to the complete falling down of Ajax support.
My apps generally have a Deploy feature which involves populating tables at the start.
This has completely failed.
I have noted various items in forums including the Adobe PGB support community one where this is flagged.
I realise this is probably an Adobe issue, but it is an app killer for me.
No Ajax, no appā¦
@Neil_HNF, have you ruled out CSP as a factor? Ajax calls wonāt work if your CSP doesnāt list the sites you need to access.
To test this, run on an Android device and hook up the Chrome Remote dev tools. If there is a CSP problem, you will see error message on the Chrome Console tab.
Hi, I spent an hour trying to getting Chrome Remote working but with no success. I can connect the phone and it shows the phone as connected on the PC chrome browser, but thatās as far as I got. I seem to be missing the step where the output of the phone screen is actually sent to the PCā¦if you can point me to a full step by step I can try that. I have used a generic ā fully openā CSPā¦but itās possible I missed something thereā¦
Okā¦ making progress.
Iām now debugging the phone app on my PC via USB.
There are some issues with CSP and Iām getting through them. WIll report back on eventual success or otherwise!
Thanks
Ok, I got all the errors out of the app, (and there were a few relating to it! However, there still seems to be an issue with Ajax calls.
Iāve got an alert on error and itās popping up with : error : Not Found
The first message ācould not find cordova.jsā can be ignored.
There are two messages referring to debug2.phonegap.com. Do you have PhoneGap Debugging turned on? Turning that off should get rid of them - but these should not affect your execution.
Are you using Ajax() without a callback function? That has been deprecated, as the message says. You should change your code so a function gets called when the Ajax() function finishes.
Hi,
Ok, sometimes itās easy to miss the simple things.
I HAD the whitelist plugin in the config but must have removed it when i was doing trial and error.
I put that back in and NOWā¦itās working.
The Ajax is working okā¦
Howeverā¦ there are 2 issues outstandingā¦ which are probably Adobe issues:-
There are various prerequisites to doing updatesā¦
(This taken from the Phonegap Build community support Forum (and found to be correct by me))
To install a new apk you must :-
a) bump the version number and build
b) uninstall (exisiting app from phone)
c) install. it should work
d) you cannot install this version number again but must instead bump the version number
During this process the āPlay Protectā popup appears every timeā¦
The second item is strange.
On initial loading up of app from install, the Ajax calls donāt work.
However, on closing the app and opening again all is now working. (i tested my whole app and it all works)
While itās great to have the app working, the user experience will be a bit strange for our customers.