问题标签 [appcelerator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
282 浏览

iphone - 将粉丝页面流发布到 iPhone 应用程序

我想在 iphone 应用程序中显示 facebook 粉丝页面的流。我知道可以使用 twitter 流来执行此操作,但不确定是否可以使用 facebook 粉丝页面流来执行此操作。

0 投票
2 回答
2347 浏览

iphone - Titan webview - 单击链接时转到默认浏览器

在钛中,我使用 webview 来显示一个已经为移动浏览器格式化的 wordpress 博客页面。而不是编写我自己的界面,这是一个很好的解决方法。应用程序唯一关注的不是浏览器。

但我的问题在于,当用户单击初始显示域之外的链接时。我只希望主域显示在应用程序浏览器中。如果单击任何其他链接,将用户带到该域之外,我希望在手机默认浏览器中打开它。

谁能指出我的方向。我尝试添加一个侦听器来尝试捕获链接点击,但是,我没有成功。

谢谢

0 投票
1 回答
1712 浏览

push - Titanium .如何使用城市飞艇自动注册设备令牌以进行推送通知?

嗨钛开发人员。打开应用程序后如何注册设备令牌?像任何支持推送通知的常规应用程序一样。我检查了厨房水槽示例和城市飞艇,但这需要单击按钮来注册设备。谢谢。

0 投票
1 回答
2082 浏览

android - Android 无法检索我的当前位置(Appcelerator Titanium)

我将 Titanium SDK 1.5.1 用于 iPhone 和 Android 开发。我有一个应用程序可以在 iPhone 上完美地加载我当前位置的地图。但是,对于 android,除了 Geolocation API 的错误外,什么都没有显示。

我在 tiapp.xml 文件中添加了我的 Android Map API 密钥和其他属性:

然后,在我的 js 文件中,我添加了两行:

而且,对于调用,这里是代码:

Titanium.Geolocation.getCurrentPosition(function(e){

在我的设备上,即使我允许 Android 访问我的位置(在 Android 设置中),该应用程序也会返回上述警报。

那么问题是什么?

提前感谢!

0 投票
1 回答
320 浏览

javascript - 是否有使 Appcelerator 桌面应用程序窗口固定大小的属性?

我在 API 文档中找不到可以使 Appcelerator 桌面应用程序窗口固定大小的属性。换句话说,我不希望用户能够调整窗口大小。

有谁知道这样的属性是否存在?

0 投票
3 回答
878 浏览

iphone - Best Platform for building iPhone app?

Im looking into writing a fairly simple iPhone app and need some advice on the choice of platform. I have the following constraints:

App Requirements:

  1. The app should be able to receive strings via a wifi network, process these and then display either a message, or show a preset photo from the library, or change the background color (or any combination of these).
  2. Once started the app will be running continuously on the device, and be a display only client (ie no user interaction on the device itself) - just processing instructions as received over wifi.
  3. Speed: once the strings are sent to the device, the app has to respond quickly (either display image, change color or show preset text as soon as possible.)

My Current Situation:

  1. No previous iOS development experience.
  2. I need to do this within the next 2 months.
  3. I am very comfortable with: HTML, JS, CSS, Python & PHP.
  4. I am familiar with other languages e.g. C++ but have not touched these in a long while.

Question: Choice of Platform:

I know that the best choice would be to use the native iPhone SDK, but given my time constraints and knowledge of existing tech, could tools such as Appcelerator Titanium or PhoneGap be proficient for this kind of application?

Note: At this stage I do not foresee the app being listed on the app store, its meant for personal use only, although this may change in the future.

0 投票
1 回答
1052 浏览

javascript - 从javascript中的函数访问变量?

我如何访问在函数中初始化的变量,但是 main.name 给了我一个空值,我知道该值是在函数中初始化的,或者在 main 上,但不在提要中!!这是我的例子,

对不起,如果这似乎是一个愚蠢的问题,但我是 javascript 的新手,所以告诉我删除它。我想知道你是否可以把它变成一个 gloab 什么的。

0 投票
1 回答
614 浏览

macos - 如何在 mac osx 上修复 Titanium 损坏的菜单栏

我开始使用 Titanium Appcelerator for mac 开发桌面应用程序。一切都很好,除了破碎的菜单栏。所以我启动应用程序并得到这个看起来很奇怪的菜单栏,每个项目都放置了两次。我没有创建菜单,它是一个默认项目。

有谁知道如何解决这个问题?

谢谢。

0 投票
2 回答
1102 浏览

titanium - Titanium Mobile:执行从网络加载的代码

我在 Appcelerator 的 Titanium Mobile 的帮助下编写移动应用程序。

我需要从我们的服务器加载 javascript 代码(业务逻辑)并在设备上执行它。所以这基本上是将代码动态注入到 Titanium Mobile 应用程序中。附加说明:此代码需要调用一些 Titanium 的方法。

这可以做到吗?

谢谢,彼得

0 投票
4 回答
10551 浏览

titanium - 在哪里存储我的数据在 appcelerator?

假设我们想为 android 做一个简单的应用程序,而对于这个应用程序,我们需要一些数据。当我在本地电脑上测试我的示例时,这些数据我将它们保存在一个 json 格式的文件中。假设该应用程序不需要互联网连接,因此我们无法向某处的服务器发送请求。

现在,如果我移动到 android 设备(在我的情况下是钛模拟器),我没有服务器,所以我无法获取我的 json 数据文件。

那么秘诀是什么?我将如何做这项工作?所有这些原生应用程序如何在没有服务器、没有数据库、没有获取 xml 或 json 数据文件的方式的情况下工作?

谢谢