Community Questions & Answers
How to send Push notification not to all but to one indentifiant
Hi from france ... I want create a very simple notification app ... but i try to found information for send a push notification no to all app but to only one user of this app ... like what'sapp for exemple .. it's for send message between user of the app...
Sending stringified JSON via HTTPClient
Hello, I'm trying to send a stringified json to my server. The problem is: Case 1 - if I send it with a name - e.g: client.send({'myjson':jsonAnswers}); - it returns "Internal Server Error". Also tried without the single quotes: ...
send file or image to server with php and httpclient
Hi, i am doing an app for send an image or file to server with a php script, but when i pass the file or image parameter, the script dont found the file parameter. this is my code: ~~~ var xhr = Titanium.Network.createHTTPClient({ timeout :...
HttpClient.send() crashing on Android
I am trying to send a GET request to a rest web service using HttpClient. On iOs everything works fine, but when I run it in Android Emulator, it is crashing with an exception. SDK: Titanium 2.0.2 (2012/05/30 10:21 2ff31a3) Platform: Android 2.2 Device:...
HTTPCLIENT PUT Body
Hi, I see that httpClient can send a PUT request. I also see that the send() method supports sending data with POST requests. Can the send() method also send data with PUT requests?
How To send data (form) POST, just like in HTML
Hello all ! it's not a question but an answer ! you can see the code below, let a comment if this helps :) ### TitaniumJS File ~~~ //XHR OBJECT var xhrURL = "http://www.mydomain.fr/scripts/contactFrom.php"; var xhr_object =...
The method of send and receive an image file
I have no idea the method of send and receive an image file between two ios device. TCP socket? Server side upload/download? anyone can introduce? thanks.
Send and receive image file
how can i send and receive a image file from A device to B device? I have tried Titanium.Network.Socket.createTCP and convert image to base64 string, but i look like doesn't work, anyone have idea? thanks
TCP Socket write and read
Hi, have a question about how to wait to read and write using sockets. I need establish connection with a server using sockets, then send some data and wait for response, (read data), then send data again again. Now i use setTimeOut, something like...
XHR Send
Hello All, I have a question regarding sending data with an xhr connection. I have successfully made connections and sent data using the below code. ~~~ xhr.send({my_username: variable_username ,my_password: variable_password }); ~~~ I am now making a...
httpclient send() with parameters
I'm trying to use send() with parameters. For this reason, I create the httpclient, and I make the object the send function needs in order to work with parameters. I use the following code: ~~~ xhr.open('POST', PropertyNames.serviceUrl +...
Exporting Contacts to WebService, how to wait a response
Hi everybody. I have this working code that wanna improve. The things is that i check for the contacts in the address book of the phone and send the info to a remote web service in php that reads the info and save that in a db. The code works perfect but...
Sending messages: How to select contacts for Android?
I hope to make an app to send SMS and/or email alerts to friends and family based on GPS location. Am I right in saying that sending SMS messages requires the SMS module (requiring Indie pricing plan)? Does that module give an easy way to select phone...
XHR Send data from array, but how do i loop it?
Hi Guys, Im sending some data from sqllite > an array > xhr... This is all working, but how do i loop the array and send it via XHR? Ive tried this: ~~~ xhr.send({ for (d=1;d<nod;d++) { var vehicle =...
send a email without emailDialog?
Hi all, I have to sand a email with attachement but i I want to use the mail user agent of iPhone/android and not the emailDialog. How can i do? Thank you
Navigation: get the previous page
Hello Does anyone know how you can see which page navigated to the current page? So which the previous page was (the sender)? I have an application where you have to choose a person and you get a list of topics related to that person. When there is only...
HTTPClient - Google Calendar - request body
Hi, (Android, API 1.4, TD 1.2.1) I'm trying to create an event in the Google calendar with HTTPClient. I got through with authentication, I got a list of calendars, but when trying to create an event, I get a wrong response. I get a HTTP status 200 (OK),...
XHR Send Photo from Gallery - iPad 4.2
I am having trouble sending an image from the gallery in iPad. This seems limited to iOS 4.2 -- 3.2 works fine. After selecting the image, I attempt to send it through a new HTTPClient and immediately receive this error. ~~~ IN ERROR Error...
Network.createHTTPClient() fails to call URL
I am using the Network.createHTTPClient() to make an external URL call. The URL is valid and works in a browser but in the Titanium mobile API it fails to even do the call to the server. Also the onload and error do not get called. Now if I change the URL...
Socket Send Timeout
I figure this will probably be fixed in the 1.2 release next month, but wanted to ask whether there was a workaround. I implemented a socket client, which connects to a server and sends commands and responds to commands. When it first connects, it sends...
Showing 1-20 of 20