appcelerator-titanium

Ti.UI.WebView on Android: webpage is not being displayed

限于喜欢 提交于 2021-01-28 20:12:38
问题 I am using a WebView in my app. This WebView must display an external webpage. It works fine on iOS, but on Android I get a white screen. In the console I see this warning: W/cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid I added debug messages inside the load event of the WebView. When I call the getHtml method there I see that the html is being retrieved. I have no idea why it is not being displayed? I find some similar issues on stackoverflow

iOS 12 enterprise apps crash upon launch

北城以北 提交于 2020-01-24 00:35:38
问题 Whenever I run my iOS 12 app, the launch screen shows, and it closes immediately. I've tried creating a new project and run it on my device via USB, it crashes as well. However, if I run it on iOS 12 simulator, everything is working fine. Below is the details of my build properties and environments: OS: 10.14 macOS Mojave Appcelerator Studio: build 5.1.1 Titanium SDK: 7.4.1.GA iOS SDK Version: 12 Xcode: 10.0 The iPad that I am using has iOS version 12.0.1. It's not an issue with provisioning

How to show details from ArrowDB for individual objects #appcelerator

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-17 05:08:06
问题 I have queried from ArrowDB and gotten a list of events, now I want each individual event details when the specific view is clicked. My code as shown below works except that it puts the details from all the queried events on the opened window, and it shows the last queried event at the top. How can I do this please? My brain just can't fix this. Cloud.Events.query(function (e) { if (e.success) { alert('Success:\n' + 'Count: ' + e.events.length); for (var i = 0; i < e.events.length; i++) { var

Which version of NDK should I use with a Titanium Android module?

心不动则不痛 提交于 2020-01-07 04:40:27
问题 According to the source and wiki, Titanium requires r9 of the Android NDK. But in the Android archives, the oldest version available is r10e (May 2015). The current version is r14b. With r14b (and r13b) I get compilation failures from ndk-build involving a C++ type mismatch. [ERROR] /Users/jdee/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] I can compile a

Unable to make an Image Blob JSON Serializable

强颜欢笑 提交于 2020-01-07 03:42:05
问题 JIRA Ticket created due to base64encode failure: https://jira.appcelerator.org/browse/TC-5876 My Current CFG: Titanium SDK 5.1.2.GA Testing on an iPhone iOS 9.1 I'm stuck in a problem in a project for a client that requires images took on device (using the camera) to be sent to a WebService and afterwards be seen on any device using the app (both Android and iOS devices). Titanium provides a Ti.Blob object (event.media) after taking a picture (which is not JSON serializable) and I need

Android Multi window support using Titanium/ Appcelerator Alloy

萝らか妹 提交于 2020-01-07 01:22:28
问题 In titanium how do I add multi window support as described here: https://developer.android.com/guide/topics/ui/multi-window.html Going into multi-window mode means the height of the app can change. Therefore I need to react to this, so I can show/hide/modify elements as appropriate. I presume that I need to add an event for when the app is resized, but I cannot seem to find out how to do this. In the docs, I have only found information regarding changing orientation: http://docs.appcelerator

Select dynamically generated element by id in Titanium Appcelerator

六月ゝ 毕业季﹏ 提交于 2020-01-06 20:02:08
问题 I am working with the latest Tianium Appcelerator and my project is using Alloy. I have a TableView with the id: tblResults In my controller, I populate this table view with rows like this: // Dummy data var results = []; results.push({ title: 'Hello World', value: '123456' }); results.push({ title: 'Bye World', value: '654321' }); // Build result data var resultData = []; for (var i = 0; i < results.length; i++) { resultData.push(createResultRow( results[i].title, results[i].value )); } //

Get network operator name in Appcelerator Titanium

人盡茶涼 提交于 2020-01-06 19:57:32
问题 I am looking to get the name of the operator for the user's Android device. E.g. "Verizon" or "Vodafone", I think I have found the Android equivalent documented here called getSimOperatorName() from http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperatorName() I am scanning over the documentation for Appcelerator Titanium, but can't seem to find a way of doing this in the docs (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network). Is