appcelerator

Appcelerator Titanium JS - Is it possible to create the native iOS 7 sharing dialog and experience?

99封情书 提交于 2019-12-13 04:42:11
问题 I was a little disappointed that there seems to be no mention of native iOS7 sharing controls with Titanium, as pictured below. And an internet search only turned up a custom solution called social, which opens a web view to authorise. Am I missing it or can this not be done with Titanium? 回答1: Native Sharing module iOS https://github.com/viezel/TiSocial.Framework Thanks 来源: https://stackoverflow.com/questions/22757192/appcelerator-titanium-js-is-it-possible-to-create-the-native-ios-7-sharing

Titanium view being pushed up when keyboard shows up

∥☆過路亽.° 提交于 2019-12-13 03:48:42
问题 I have a window (vertical layout) that looks like this: -Window -View1 -View2 -ScrollView1 -ScrollView2 -TextArea (contained in the scrollView2) When I focus in on the textarea the keyboard comes up, but when this happens View1 and View2 scroll up and out of the window. So it looks like this now: -Window -ScrollView1 -ScrollView2 -Textarea -Keyboard I need these two views to stay put and only have the content inside scrollView1 and scrollView2 ( scrollView2 because it contains the textarea

Titanium - Passing Variable to new window

笑着哭i 提交于 2019-12-13 02:50:57
问题 I am having a problem passing variables in my iphone titanium App. Below is my AppTabGroup.js file. There is an event listener called 'grantEntrance'. When this is fired I need the variables event.name and event.email passed to all the new tabs. For some reason this is not working for me. I end up getting undefined errors. I think my question is how do I set global variables? Like event.name so it shows up anywhere in the application. function AppTabGroup() { //declare module dependencies var

Titanium - Facebook login doesn't show on device

只谈情不闲聊 提交于 2019-12-13 00:58:12
问题 I'm trying to create a login with Facebook using the Facebook modules that comes in Titanium framework. When I do a button click on the iphone emulator I get the login screen to Facebook. But when I install on the device I don't get the login screen - as if doesn't do anything (no errors). I've placed an alert to see that that place of code is called when the button clicks - it does. here's my code on button click: Alloy.Globals.Facebook.permissions = ['public_profile', 'user_friends', 'email

Sending email through Appcelerator Cloud API

你说的曾经没有我的故事 提交于 2019-12-12 18:46:53
问题 I was trying to send email through Appcelerator Cloud Service, in my Titanium app. The code I'm using is the standart one, given at the documentation site. But the email is not being sent. Cloud.Emails.send({ template: 'welcome', recipients: '*******@gmail.com' }, function (e) { if (e.success) { Titanium.API.info('Email sent successfully.'); } else { Titanium.API.info('Error:\\n' + ((e.error && e.message) || JSON.stringify(e))); } }); It give the this error, 'Email template welcome is not

Appcelerator Titanium: Code Sign error: No codesigning identities found

心不动则不痛 提交于 2019-12-12 10:55:49
问题 This is driving me crazy, I have spent about 10 hours now deleting and regenerating Apple keys and provisioning profiles for my Appcelerator Titanium iPad app. I had this all working and compiling 1 year ago, then my Mac crashed and I had to reformat and start over. I cannot get past this error: "Code Sign error: No codesigning identities found (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings ('Okland Construction 2014') were found.

Get Phone Number(android) in Titanium

自古美人都是妖i 提交于 2019-12-12 05:56:33
问题 How can I get phone number in android? Sample Code: var contacts = Titanium.Contacts.getAllPeople(); Titanium.API.log(contacts[0].phone['mobile'][0]); //in iOS, returns "01012345678" fine :) Titanium.API.log(contacts[0].phone['mobile'][0]); //in Android, returns "" :( Titanium.API.log(contacts[0].fullName); //in Android & iOS, returns "test Name" fine :) Titanium.API.log(contacts[0].phone); //in Android, returns "" :( 回答1: Try the following code, It worked with me //Getting all the contacts

Appcelerator: Webview on iPhone with an iFrame and width

我的未来我决定 提交于 2019-12-12 05:53:37
问题 Good evening, I've been having some issues with a view that has a webview inside. The webview is inserting an iframe with an external source (an html on another domain). I'm using an iframe since I need to use the external HTML and I need to communicate with click/touch events with my application. The main issue is that the webview is inserting unwanted horizontal scroll bars (because the iframe content is too big) The code looks like: Webview: var webview = Titanium.UI.createWebView({ url: "

Add a Native Calendar with Titanium

℡╲_俬逩灬. 提交于 2019-12-12 05:39:53
问题 For an app developed in Titanium, it is required to be possible to add Events into the Native Android Calendar. While the docs specify plenty of methods to add Events to the native calendar (selectable ones), it does not provide the methods to create a new Calendar (conceptually a layer that holds events) Has anyone been able to create a new Calendar on Android and how, specifically on Titanium, can one do that? 回答1: Creating a new calendar for Android is not currently supported in Titanium.

SQLite Titanium Syntax Error

蹲街弑〆低调 提交于 2019-12-12 05:32:16
问题 The following SQL code works fine in SQLite Manager and in other SQLite systems, however when I use it in Titanium I get an "Uncaught SyntaxError: Unexpected String." If my syntax is wrong, how should it be coded for Titanium? SELECT Date, Content FROM MYDATABASE WHERE strftime('%m%d', Date) = strftime('%m%d', date('now')) 回答1: Did you call your table MYDATABASE? Are you stepping through the debugger and confirming that var rs = db.execute("SELECT Date, Content FROM MYDATABASE WHERE strftime(