Friday, April 14, 2017

Clean reinstall Appcelerator Studio to the Mac.

At first, remove the Studio from Applications plus the following for a clean state
  • sudo rm -rf ~/.appcelerator
  • sudo rm -rf ~/.titanium
  • sudo npm uninstall -g titanium
  • sudo npm uninstall -g alloy
  • sudo npm uninstall -g acs
  • sudo npm uninstall -g appcelerator
Check your node version and java version then make it compatible according to the doc link
 Then install CLI manually via the terminal respectively
  • sudo npm install -g appcelerator
  • appc use latest
  • appc setup -l trace
  • sudo npm install -g alloy
Finally, take a fresh copy of Appcelerator Studio and install it in your machine. It will automatically install all dependencies.
  • https://web.appcelerator.com/product/studio
Then open the studio and let me know how it goes.

Thursday, April 13, 2017

Error: return binding.mkdir(pathModule._makeLong(path)

This can be happen if the username included a ~, and I think this breaks some internal code. Setup code can not handle the user's local enviroment path like that and as is obvious from the error message, it tries to create a directory called "c:\users\c:"

So create a fresh new user to you system.

Hope this helps.

Friday, March 31, 2017

How to open an app from my app?

If you would like to open any app from your app then you can use openURL method. You can check out this doc link and sample code

LiveView file server unavailable error.

To resolve this issue, clean the project and terminate all node instances :

  •  From the menu bar, select Project >Clean.... Make sure your project is selected and click OK.
  •  From a terminal, run "killall node"
  •  Rerun the project.
If the issue persists then disable the LiveView button (small eye icon) from the top menu bar of the Studio.

Hope this helps.

Wednesday, March 1, 2017

Invalid Appcelerator ID and password combination

This can happen if you have an environment variable such as NODE_ENV set to development. To check this run echo $NODE_ENV and if it returns a value then run NODE_ENV= to unset it. 

echo $NODE_ENV 
- NODE_ENV= 

Now try to login 
  • appc logout
  • appc login
Hope this helps.

Tuesday, January 17, 2017

Clean uninstall then reinstall CLI to the windows PC.

At first, uninstall the Studio from the control panel then delete the following folder
 . Appcelerator
 .titanium, 
 .android 
 .eclipse from your root directory "c:\Users\pcName”  then run the following commands


- npm install -g appcelerator
- appc use latest
- appc setup
Hope this helps.

Friday, January 13, 2017

ArrowDB corresponding tag for Key

For development

 <property name="acs-api-key-development" type="string">App key</property>

<property name="acs-oauth-secret-development" type="string">OAuth Secret </property>

    <property name="acs-oauth-key-development" type="string">OAuth Consumer Key</property>

For production use  production name like
<property name="acs-api-key-production" type="string">App key</property>


Hope this helps.

Friday, December 30, 2016

How to displays a back arrow on the home area of the action bar.

Here is the sample code. Please take a look

var win = Ti.UI.createWindow({
title : "Old Title",
navBarHidden : false
});
var actionBar;
win.addEventListener("open", function() {
if (Ti.Platform.osname === "android") {
if (!win.activity) {
Ti.API.error("Can't access action bar on a lightweight window.");
} else {
actionBar = win.activity.actionBar;
if (actionBar) {
actionBar.backgroundImage = "/bg.png";
actionBar.displayHomeAsUp = true;
actionBar.onHomeIconItemSelected = function() {
alert("Home icon clicked!");
};
}
}
}
});
win.open()


Check out this link as well 


Hope this helps.

Wednesday, December 21, 2016

Fixing npm permission for the Mac.

Just run this below command to do that

- npm config set prefix /usr/local
- sudo chown -R `whoami` /usr/local/

https://docs.npmjs.com/getting-started/fixing-npm-permissions

Hope this helps.

Android or iOS permission issue for the Appcelerator App.

Please have a look on this code sample, if you use any of that API then make sure the permission.
Thanks.