appcelerator

How to create a header bar with buttons in Titanium JS?

时光怂恿深爱的人放手 提交于 2019-12-04 02:04:04
问题 I'm using Titanium Alloy to build an app and I'm trying to create a header bar with buttons in it, similar to the contacts app, as pictured below: This header has the title in the middle and buttons either site. I've been looking everywhere for a way to do this in Titanium but I can't find anything yet. It seems that this is not in the documentation, do I need to create something completely custom? I have tried to add a button inside a navigation view, but it doesn't work - it comes up with

Facebook module is no longer 64 bit in appcelerator 5.2GA

吃可爱长大的小学妹 提交于 2019-12-04 02:04:00
问题 The Facebook module has stopped working. I am working on a tituanium app in appcelerator. When I try to build my app, I get the following error: [INFO] : Invoking xcodebuild [ERROR] : * BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : Ld build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/armv7/Game normal armv7 [ERROR] : Ld build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/arm64/Game normal arm64 [ERROR] : (2 failures) I

How do cross-platform mobile app development frameworks work?

冷暖自知 提交于 2019-12-04 00:42:59
How are Rhodes, Phonegap, and Appcelerator able to take Javascript or Ruby, and compile them into binaries for app SDKs that normally require apps to be written in Obj-C, Java, and others? Erik Phonegap uses the default browser rendering engine, and uses that to display your application. The javascript is then handled by the native (compiled) part of the framework. Appcelerator uses something simular, but compiles the whole application if i remember correctly. MoSync uses a somewhat simular setup as javaME. Rhodes uses local server. It uses this to communicate with the device. jipiboily Jeff

How to Call a WebService in titanium using javascript

给你一囗甜甜゛ 提交于 2019-12-03 16:41:16
I am new to titanium and and want to call a web service from my titanium app. The webService returns the json response. As I am aware of calling the webService using XMLRPC but very confused regarding json. Until now, I know that we have to create the HTTPClient . var request = Titanium.Network.createHTTPClient(); request.open("POST", "http://test.com/services/json"); request.onload = function() { var content = JSON.parse(this.responseText);//in the content i have the response data }; request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); //did not understand this line

Titanium Android module upgrade to SDK 6.0.0

一曲冷凌霜 提交于 2019-12-03 08:07:48
I am trying too recompile my old modules to 6.0.0.GA sdk as its mandatory to make it work on 6 and above sdk. But I am not able to build it as its giving error. Development environment: Android NDK r13b Titanium SDK 6.0.0.GA Appcelerator studio 4.8.0 CLI version 5.0.10 Android SDK 23 I am getting this error : BUILD FAILED /Users/krishna/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/module/android/build.xml:347: The following error occurred while executing this line: /Users/krishna/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/module/android/build.xml:302: exec

Should I connect directly to CouchDB's socket and pass HTTP requests or use node.js as a proxy?

余生颓废 提交于 2019-12-03 06:51:13
问题 First, here's my original question that spawned all of this. I'm using Appcelerator Titanium to develop an iPhone app (eventually Android too). I'm connecting to CouchDB's port directly by using Titanium's Titanium.Network.TCPSocket object. I believe it utilizes the Apple SDK's CFSocket/NSStream class. Once connected, I simply write: 'GET /mydb/_changes?filter=app/myfilter&feed=continuous&gameid=4&heartbeat=30000 HTTP/1.1\r\n\r\n' directly to the socket. It keeps it open "forever" and returns

You are using an unsafe implementation of X509TrustManager

假如想象 提交于 2019-12-03 04:32:37
问题 I've an app in Google Play, today I received a mail from Google saying that: Google Play warning: You are using an unsafe implementation of X509TrustManager It says something about the SSL certificate issues and a way to solve the issue. I'm asking this question because of curiosity, Actually what is this warning all about ? I'm not using any network related activities in my app (it's a local database driven app), so why this warning occurred for my app? More Details: My app was built using

Should I connect directly to CouchDB's socket and pass HTTP requests or use node.js as a proxy?

巧了我就是萌 提交于 2019-12-02 19:26:38
First, here's my original question that spawned all of this . I'm using Appcelerator Titanium to develop an iPhone app (eventually Android too). I'm connecting to CouchDB's port directly by using Titanium's Titanium.Network.TCPSocket object . I believe it utilizes the Apple SDK's CFSocket/NSStream class. Once connected, I simply write: 'GET /mydb/_changes?filter=app/myfilter&feed=continuous&gameid=4&heartbeat=30000 HTTP/1.1\r\n\r\n' directly to the socket. It keeps it open "forever" and returns JSON data whenever the db is updated and matches the filter and change request. Cool. I'm wondering,

Appcelerator/ Titanium: Getting Android credentials to push notifications

痴心易碎 提交于 2019-12-02 18:41:16
问题 I want to be able to send push notifications using Titanium on Android. However I get a back-end error whenever I try this, which I believe is to do with invalid credentials. I tried following the docs but they seem out of date. Here's what I did: I went to the Google API manager and enabled "Google Cloud Messaging". Under Credentials > OAuthConsentScreen, I added an email, product name and urls Under Credentials > Create credentials > OAuthClientID > Web Application, I gave it a name and put

You are using an unsafe implementation of X509TrustManager

这一生的挚爱 提交于 2019-12-02 17:43:39
I've an app in Google Play, today I received a mail from Google saying that: Google Play warning: You are using an unsafe implementation of X509TrustManager It says something about the SSL certificate issues and a way to solve the issue. I'm asking this question because of curiosity, Actually what is this warning all about ? I'm not using any network related activities in my app (it's a local database driven app), so why this warning occurred for my app? More Details: My app was built using Appcelerator Titanium and google says this implementation is in ti.modules.titanium.network