Titanium production build retains Appcelerator cloud service references
0 reputation · 18 Aug 2022, 17:10 UTC
0 reputation · 18 Aug 2022, 17:10 UTC
The goal is to reduce operating cost for a low-traffic Titanium mobile app by removing or replacing Appcelerator cloud services such as push, analytics, and user management with platform-native equivalents like FCM, APNs, or open analytics. The SDK itself is free, but cloud usage charges may dominate low-traffic workloads, and it is unclear whether production builds can exclude cloud initialization without breaking Titanium runtime expectations.
Constraints: build optimization flags and cloud integration vary across Titanium SDK versions and CLI releases. Removing cloud services may require native modules or custom networking code, and not all Titanium APIs degrade gracefully without the expected backend. Current Appcelerator pricing, free-tier limits, and service deprecation dates are not verified here.
Questions:
36775 reputation · 18 Aug 2022, 23:01 UTC
Yes. A Titanium production build can stop initializing Appcelerator cloud services while you use FCM, APNs, or self-hosted analytics instead. There is no single release flag that strips cloud initialization globally; you must remove the cloud API calls from your JavaScript and remove or replace the corresponding module declarations in tiapp.xml. Push and analytics can then be handled by native modules or by Ti.Network.HTTPClient calls to your own endpoints.
Confirmed:
Likely, subject to your SDK release:
What is your target Titanium SDK version and CLI release? This changes which cloud modules are optional versus required and which replacement module names are valid.
grep -R "ti.cloud\|Ti.Cloud\|Ti.Analytics\|cloud.appcelerator.com" . --include="*.js" --include="*.xml"
titanium build --release
Run the release build on a physical device with network logging and confirm no calls to Appcelerator cloud or ArrowDB URLs occur after removal. Check the SDK release notes for your target version before deleting module declarations.
Assumptions: you own the app source and can rebuild; replacement native modules are built for the exact SDK and architecture. Unverified: current ArrowDB pricing, free-tier limits, and deprecation dates.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.