I am using the latest AngularJS SDK.
I am using Angular to build a Hybrid Mobile app using Phonegap with the front end of ionic.
The issue is that at the launch of my app I see multiple http requests emerging from my App with respect to DSP. I don’t have a problem with that; may be that is the part of your DSP framework.
But my issue is that out of the many calls which happen by the framework some of them take a long time to complete. For example the call to System API takes almost 15-16 seconds.
Even that would not have been a problem for me as that is happening in the background, but the problem is that my REST API calls fail if I make them before these background calls end.
Some of the calls, I see happening in the background of Chrome Developer tool are as below:-
So, here are my questions:-
Why does DSP make calls to all these APIs even if I am not using them all. Please note that the only API I intend to use is my Remote SQL DB service, which also is one of the calls, but that is Ok, as that is the API I need.
It is also waste of bandwidth and time for my app to be able to make calls.
If there is no way that I can avoid this, and I have to wait for these calls to complete, in that case, can you please tell me if there is any way in Angular that I can know when these calls are all over, and now the framework is ready for firing API calls.
This is one of the calls, which fails DreamFactory.api.sql.getRecords(request); if made before the above calls complete. ‘sql’ is the name of my Remote SQL SB Service.
Since, I already know I dont need any of the APIs apart from my own Remote DB SQL service, is there a hack or something, where I can comment something off, and these unwanted calls don’t happen in the backend, and my app works normal, or has a short starting up delay as compared to 16-17 seconds now. I consider it huge as the User has to be forced to wait for this period.
Additional Info: I am enabling CORs and Guest User, which has only access to this sql service, and no other services or Apps.