appcelerator-titanium

Android app hangs on restart (Appcelerator Titanium)

梦想与她 提交于 2019-12-11 08:02:07
问题 I am making an app for Android. I encountered strange issue. Application works perfectly until it is closed with back button. If so, than after restart it is showing splash screen and becoming non-responsive. After some time dialog (if I want to close the app) may show. It happens with any code. For example: var myApp = {}; alert(1); alert(2); If app is closed in hard way (third button and swiping app out) than everything is fine. Problem occurs on every Android version both on device and

How to configure Android Push Notifications (GCM) in Appcelerator Titanium Dashboard?

不羁的心 提交于 2019-12-11 05:17:42
问题 I've tried to following the instructions Configuring push services for Android devices However, the steps mention 'Click Push Notifications on the left-side navigation' but they don't exist... Once you've created a Google API project with GCM enabled, you need to update your application's settings page in Dashboard with the API key and sender ID you generated. To configure Arrow for push notifications using Dashboard: Open Dashboard and select your application from the Apps drop-down menu.

Appcelerator Live View Console.Log not working

与世无争的帅哥 提交于 2019-12-11 05:05:39
问题 Odd one this. Ever since upgrading to iOS10 and the latest Appcelerator SDK (5.5.0), I can't get even a simple console.log("hi!") to show anything in the console when I'm testing on an iPhone 6s Plus connected to my Mac via USB, using LiveView. I've tried changing it to Ti.API.info("hi!") - which I believe is the old way to do it - to no avail. If I change it to alert("hi!") , that works fine. However, it's not as useful as console.log used to be when developing things which MUST be tested on

Duplicate entry: org/appcelerator/titanium/gen/bindings.json in custom Android module

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 13:52:49
问题 Setup / Problem I've create a custom Android module for Titanium to display Gif animations inside Ti. The module source code can be found here: https://github.com/m1ga/com.miga.gifview The actual module is working fine but when I use it with a second module (with the same problem) I receive the following error: java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json The problem is inside the gifimageview.jar file: My two modules each have a bindings.json file

Appcelerator Facebook module doesn't fire login event

只谈情不闲聊 提交于 2019-12-08 12:59:58
问题 Appcelerator 5.2.0 Facebook Module (Android) doesn't fire 'login' event after successful logged in. What could it be? var FB = require('facebook'); FB.initialize(); FB.permissions = ['public_profile', 'email', 'user_events']; FB.forceDialogAuth = false; FB.addEventListener('login', function() { alert('login'); }); FB.authorize(); Thanks! 回答1: Hello Oxana, Additional Android Setup Steps Since Facebook module v4.0.0, for the Android platform, you need to: Add the Facebook Login activity to the

Unable to Open Appcelerator Studio after fresh Install

吃可爱长大的小学妹 提交于 2019-12-06 05:26:31
I am stuck with an issue. I have installed the Appcelerator studio on my Macbook from Appcelerator dashboard and it was installed successfully. But when I try to open it, below message appears. I also tried to install using the command-line but no success. After opening the log file mentioned in the message I found below log !ENTRY org.eclipse.osgi 4 0 2018-03-06 23:19:28.145 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "com.appcelerator.titanium.rcp.application" could not be found in the registry. The applications available are: com.aptana.commandline.launcher

Apply Blinking border to a tableview in appcelerator

泄露秘密 提交于 2019-12-04 20:54:13
I have a doubt in appcelerator. Does any body know how to apply a blinking border to a table view in appcelerator. I applied a border color to tableview, but i need to blinking it with other color. Any help will be deeply appreciated. Thank you. try using javascript setInterval. setInterval(function() { if (table.borderColor == '#F00') { table.borderColor = '#0F0'; } else { table.borderColor = '#F00'; } }, 500); First set a borderColor in tableView and interchenge it with other color with setInterval(). set the time in milisecond as how first you want it to blink. 来源: https://stackoverflow.com

Titanium Android module upgrade to SDK 6.0.0

心已入冬 提交于 2019-12-04 12:55:44
问题 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

Facebook installs tracking for Android

不想你离开。 提交于 2019-12-04 05:58:16
问题 We are still in process of investigation, why our installs do not get tracked. I have opened another support ticket with Facebook to clarify if install and login are equal or different events, but I also want to dig more into the Ti.Facebook module. We've been testing on Android because of the ease of updates. This is the explanation on Facebook SDK, what needs to be done, to track installs: https://developers.facebook.com/docs/app-ads/sdk#install-tracking And this is the code to log in

Appcelerator Could not find method android.app.Activity.checkSelfPermission

假装没事ソ 提交于 2019-12-04 05:53:25
问题 I cant seem to get geo location to work on Android just seem to get the following bug. [INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.geolocation.GeolocationModule.hasLocationPermissions [WARN] : dalvikvm: VFY: unable to resolve virtual method 32: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I [INFO] : dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method