appcelerator

Error 2500 when trying to get Facebook Email in Appcelerator Titanium

女生的网名这么多〃 提交于 2019-12-12 05:07:41
问题 I try to get email address of a user logged in via Facebook Module. But get error every time {"error":"An error code 2500 has occured. An active access token must be used to query information about the current user."} My code is: var viewClick = function() { fb.logout(); fb.initialize(); fb.authorize(); }; var facebookLogged = function(e) { fb.requestWithGraphPath("me?fields=name,email,first_name,last_name", {}, 'GET', function(result) { Ti.API.info(JSON.stringify(result)) // var data = JSON

“Register Device” fails in Preferences -> Studio -> Platforms -> iOS #appcelerator

自作多情 提交于 2019-12-12 05:01:21
问题 I tried to register a device in appcelerator per the path in the title. When I click "Register Device" it takes me to page that errors out: "The requested application was not found on this server." The URL, without the API key is https://daw.apple.com/cgi-bin/WebObjects/DSAuthWeb.woa/wa/login?&appIdKey=&path=%2F%2Faccount%2Findex.action So if this is not the way to Register a Device in Appcelerator, how do I do it? 回答1: You can register a device at: https://developer.apple.com/account/ios

How to limit duration limit recording and quality of a video with Appcelerator

耗尽温柔 提交于 2019-12-12 04:59:27
问题 I am making an application that allow users to post their videos. I just want to limit the duration and the quality of the videos. In iOS, no problem with different options. For Android, I use intent to launch camera. I saw that we have to possibility to set duration with (it's an example from android developer guide) : intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 8); I tried to do this, from different ways but impossible. Here is a part

How to access global value from commonJS module in Appcelerator?

陌路散爱 提交于 2019-12-12 04:47:17
问题 For long time I was creating apps by making global variable which was accessible via modules I load. var myApp = { windows: {} } myApp.windows.mainWindow = require('libs/pages/mainWindow').create(); myApp.windows.mainWindow.open(); By calling myApp.windows[windowName][functionName] I could manipulate other windows (for example update lists) from within the commonJS module. I could also close, open other windows I found that calling global variables from within commonJS module is not good

Branch.io - ContinueActivity not returning correct ActivityType

删除回忆录丶 提交于 2019-12-12 04:31:19
问题 Im currently implementing Branch.io to our Titanium iOS-app. Using the latest 4.8 Studio with Titanium SDK 6.0. Everything works fine with the integration so far, except that when I try to open the app, when it's "cold dead", we're not getting the correct activityType from the created Activity. The eventlistener of "continueactivity" is used, but the activityType is: "NSUserActivityTypeBrowsingWeb" and not the one I have specified in the Entitlements.plist-file. Here's our current code: var

Change event on TextField inside ListView Template

最后都变了- 提交于 2019-12-12 04:26:17
问题 I've a ListView Template, that has a title Label, 2 button Views (more and less) and a TextField with a value, I need to add a change event to this TextField. <ItemTemplate name="item" id="item" bindId="item"> <View id="row" bindId="row"> <Label bindId="title" id="title"/> <View id="options" bindId="options"> <View class="option" bindId="less" id="less"/> <TextField bindId="input" id="input"/> <View class="option" bindId="more" id="more"/> </View> </View> </ItemTemplate> In the change event I

Titanium Android Notification perform action when user clicks notification

陌路散爱 提交于 2019-12-12 04:17:06
问题 I haven't succeed in responding notification in Titanium Alloy. All working examples are classic ones. Although I have defined following activity in tiampl.xml As you see even though tiapp.xml contains notification.js activity AndroidManifest.xml does not contain this activity. It should add this! <id>alloyandroidnotification.example.com</id> <name>alloyandroidnotification</name> <activity url="notification.js"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <category

List view itemclick event appcelerator

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:55:02
问题 I have a JSON defined in the code with and image, a title, a date and a url. This will be used to populate the list view. On the click event of any list item, I need to navigate to a different controller and render the view in it having the videoplayer that plays the video according to the clicked list item's url and i want to display the date and title too. I am not understanding how to code this in the itemClick event. Please help! This is my .js file for DashboardController. Alloy

How to hide the soft navigation bar on Android with Titanium?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:39:59
问题 Please can someone point to an example of how to hide the navigation bar on android, using Appcelerator. NOT the action bar, nor the title bar. I can make these hide. I want to make a completely fullscreen app, and hide the navigation bar thanks 回答1: What you are trying to achieve is called immersive fullscreen mode, it is possible to do it from android 4.4, but it seems that Titanium don't support the flag; there is a module that does this thing, haven't personally tried it but probably will

Understand Google Play Developer Console's Crash Logs with Titanium

谁说胖子不能爱 提交于 2019-12-12 03:35:54
问题 I have an app published on Google Play. I have a few crashes. Below is one of the logs. By looking at it, I have no idea where to start to find the cause. I don't see crashes when I run the app on my devices or on the emulators. Any advice? Anyone understands it? Usually how are these crash logs useful to Titanium developers? *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'samsung/degasltezt/degaslte:4.4.2/KOT49H/T235YZTU1AOE1:user/release-keys' Revision: