Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16202] ACS: Appcelerator Cloud Services are not available on Mobile Web

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T23:06:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsacs, cors, proxy
ReporterJeff Abele
AssigneeEric Merriman
Created2013-12-12T20:36:00.000+0000
Updated2017-08-16T01:09:18.000+0000

Description

It doesn't appear that Appcelerator Cloud Services work on Mobile Web projects. All httprequests fail on mobile web unless a proxy or CORS are used. In the case of ACS it doesn't appear that either of those are setup since it fails.

Comments

  1. Mauro Parra-Miranda 2013-12-13

    Hello Jeff! In this case, is part of the limitations of the Mobile Web platform. If you need access to the ACS, you will need to setup either CORS or a proxy in order to be able to pass by the cross domain limitations. Check this document with all the needed info: http://docs.appcelerator.com/titanium/latest/#!/guide/Mobile_Web_Limitations Best, Mauro
  2. Jeff Abele 2013-12-16

    I setup a test new project in 3.1.3 for mobile web with a slimmed down app.js. Using a site validated for CORS I still get 'Can't Reach Host'. Here is the code:
       Titanium.UI.setBackgroundColor('#000');
        
       var win1 = Titanium.UI.createWindow({  
           backgroundColor:'#fff'
       });
        
       win1.open();
        
       var button = Ti.UI.createButton({width:200,height:50,title:'TEST'});
       win1.add(button);
        
       button.addEventListener('click',function(){
           var xhr = Titanium.Network.createHTTPClient();
           xhr.open('GET', 'http://remysharp.com/demo/cors.php');
           xhr.onerror = function(e){ 
               alert('Error ='+e.error);
           };
           xhr.onload = function(){
               alert('Response ='+this.responseText);
           };
           xhr.send(); 
       });
       
  3. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.

JSON Source