Community Questions & Answers
Ti.Contacts.requestAuthorization callback always returns success :-(
Hi, following the code from the official documentation: ~~~ var performAddressBookFunction = function(){...}; var addressBookDisallowed = function(){...}; if (Ti.Contacts.contactsAuthorization == Ti.Contacts.AUTHORIZATION_AUTHORIZED){ ...
Twitter SSO authorisation
Hi, With Titanium mobile, Facebook authorisation can be done with Single Sign On which launches the native facebook app, allowing user to authorise an application without entering his username and password. Is there a way which allows doing the same for...
camera roll authorization for iOS 6
Is there camerra roll authorization like for contacts in titanium ? Ti.Contacts.contactsAuthorization Thanks.
Basic Authorization Android Distribute Problem
I wrote this code: var xhr = Ti.Network.createHTTPClient(); xhr.onerror = function(e){ alert(this.status); } xhr.onload = function(){ //Titanium.API.info("risposta = " +...
Contact Authorization
I am having difficulty getting contact authorization to work in the simulator. It works fine on the device, but simulator always returns authorized and my app does not show up under privacy settings? I went through and reset location and privacy, which...
Facebook Timeout on Authorization loading webview
I need a feature for the Facebook module - a timeout on the loading screen. This is essential because sometimes with low network connectivity, the Facebook window will continue to try to load forever. On Android it effectively times out after 30 seconds...
SOAP with login/password
Hi, in my case the communication to server uses Basic Authorization.For this I [patched suds.js](http://pastie.org/4042824). This was easy ;-) ~~~ if (config.username && config.password) { xhr.setRequestHeader('Authorization', 'Basic ' ...
Facebook authorize doesn't detect if user has revoked permission
I'm pretty new to the game, but as far as I can tell Ti.Facebook.authorize doesn't go back to facebook to check every time it is called. So if I request "publish_stream" permission and authorize, in the app I log in and get authorization....
Problems with HTTPClient GET request with Basic Authentication
Ok - so i have been bashing my head on this one. Testing a REST API call to Urban Airship through a Chrome Extension (Advanced REST Client) and all works fine. However, when moving into Titanium Studio (iPhone Simulator) I always get a 401 Authorization...
Facebook App Authorization trigger.
Hi everyone. I need to fire an event after the user has authorized(first time login) my app. I tried to catch the trigger at the 'login' listener, but no useful data returned showing the authorization. Thank you for reading. ~~~ Titanium.Facebook.appid =...
SDK 1.6.x Android: Facebook & Heavyweight Windows
Is there any way to not have the Facebook authentication window opened below/behind any heavyweight window I might have open?
Facebook.authorize works on iPhone, nothing on Android
I'm trying to do do a Titanium.Facebook.authorize(), and it works on iPhone, but I get no reaction on Android. The login event never get fired. :-/ Nothing gets printed to the log after 'Time to log in'. Am I missing...
Geolocation, endless stream of no authorization alerts
Help needed quick, I use this code to get GPS coordinates, it's not that neat but it worked on my device: http://pastie.org/1786359. Now when installing the app on other devices it shows a endless stream of pop-ups saying the app is not authorized to use...
HTTPClient "302 Found" Bug
Here is the bug. The Titanium.Network.HTTPClient correctly follows a "302 Found" redirect. On the iPhone however it does not put the http authorization header in the next request (ending in a 401 response from the server). I have not had this a...
Facebook Login Problem "Safari can not open the page because the address is invalid"
After I click on the "Login With Facebook" button in my app, it takes me to safari and asks me to authorize the app. I click "Allow" and instead of returning me to my app it shows an alert box saying... "Cannot Open Page Safari...
Bug discovered: Base64 line breaks
Hello all, apparently the base64encode method per default inserts line breaks into strings which encoded are longer than 72 chars, which may not always be desirable. Example: ~~~ var xhr = Ti.Network.createHTTPClient(); xhr.open('GET',...
XHR authorization
Hi, Are you storing login and password credentials on device (Titanium.App.Properties) to prevent need of loggining each time application starts?
sha1 algorithm not working, missing last 8 characters
I'm trying to create an SHA-1 hash, and the built-in function is only returning 32 characters instead of the required 40. The first 32 characters are correct, but I need to have the last 8 as well. Any help on this would be greatly appreciated. NOTE:...
Showing 1-18 of 18