Pada hari ini, 11 Ogos

Tahun lalu:

2 tahun lalu:

Artikel tular

Ti.Network.registerForPushNotifications no response


Khamis, 11 Jun 2015, 3:27 pm

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 […]

Titanium iOS builder script


Khamis, 11 Jun 2015, 10:01 am

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 […]

Lazyloading JS modules in Titanium app


Sabtu, 1 November 2014, 1:03 pm

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 […]

Add custom framework to Titanium iOS module


Sabtu, 11 Oktober 2014, 11:23 am

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 […]