Creating [object] in a different context than the calling function. This warning occured when a JS callback function is passed to Objective-C as KrollCallback and then executed on non-JS thread. Problem with this warning is, if the JS callback create Ti.Network.HTTPClient instance, then that instance is null. To fix, get krollContext instance of current module/proxy […]
Pada hari ini, 11 Ogos
SDK: 3.5.1.GA, CLI: 4.0.1 Calling Ti.Network.registerForPushNotifications() has no response, whether success, error or callback, basically no response at all. Turned out that the build script can’t detect the method and add USE_TI_NETWORKREGISTERFORPUSHNOTIFICATIONS to defines.h during app compilation. I created with a plugin that append the macro definition to *.pch file, here it is: Create plugin […]
Location: TITANIUM_SDK/mobilesdk/osx/3.5.1.GA/iphone/cli/commands/_build.js (TITANIUM_SDK is commonly at ~/Library/Application Support/Titanium)1. Cannot change CFBundleVersion CFBundleVersion is the build version number, available to developer and beta testers. CFBundleShortVersionString is the release version number, what the users see on App Store CFBundleVersion is automatically assign to value of <version> in tiapp.xml, but for beta testing purposes, need to change this […]
Location: TI_SDK/mobilesdk/osx/3.5.1.GA/android/dev_keystore Alias: tidev Password: tirocksReference: http://developer.appcelerator.com/question/162225/what-is-default-password-used-for-titanium-android-keystore-
This Titanium Android module provide a place where you can run your JS script when the device receives BOOT_COMPLETED broadcast intent. By simply adding boot_completed.js into your Resources folder, this JS file will be run when the broadcast intent received.
Android Progress Notification module is a module to display notification in Android notification area which contains progress bar. In addition, it also support setting the number of notification, useful if you have a number of grouped notifications.
Color values are represented in hexadecimal value: #000000 0 – red, 0 – green, 0 – blue color = black #ffffff 255 – red, 255 – green, 255 – blue color = white ‘ff’ in hexadecimal is 255 in decimal, (2 ^ 8) – 1 = 255. In CSS, to represent color with alpha channel, […]
In NodeJS project, usually modules are loaded at the beginning of the file: When this NodeJS application being run, it loads all of the dependencies & start executing the program. In large application, there will be delay before the application can start operating, because of the dependencies loading. For desktop or server application, this won’t […]
For example, I’m creating a module com.mymod, which include MillennialMedia SDK, that has 2 custom frameworks: MillennialMedia.framework SpeechKit.framework Copy the frameworks into <module folder>/platform/iphone/custom_frameworksOpen the module in Xcode & include the framework – you can choose to include into any folder, for example the root of projectEdit module.xcconfig. Choose a unique variable name to set […]