Hello,
When I build my application with cordova, a js script that starts when the page is loaded must execute the call from the backendless api but it is still an error that is issued, as shown below:
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script src="//api.backendless.com/sdk/js/latest/backendless.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#BtnBloLdId').hide();
$('#BtnBloLxId').hide();
$('#H3YeResLdId').hide();
$('#H3YeResLxId').hide();
var APP_ID = 'XXXXXXXX-XXXX-XXXX-FF08-XXXXXXXXXXXX';
var API_KEY = 'XXXXXXXX-XXXX-XXXX-FFE1-AXXXXXXXXXX';
Backendless.serverURL = 'https://api.backendless.com';
Backendless.initApp(APP_ID, API_KEY);
var profilStorage = Backendless.Data.of( "Profil" );
var queryBuilder = Backendless.DataQueryBuilder.create();
queryBuilder.setWhereClause( "mobile = 0645331012" );
profilStorage.find( queryBuilder )
.then( function( profilArray ) {
alert(profilArray.length);
if (profilArray.length == '0') {
$('#BtnBloLdId').show();
$('#H3YeResLdId').show();
} else {
$('#BtnBloLxId').show();
$('#H3YeResLxId').show();
}
});
});
</script>
The white list of cordova is enabled on all domains in config.xml:
<universal-links> <host name="api.backendless.com" scheme="https" /> </universal-links>The result is always the same no response, what to do?