appcelerater Titanium Interview Questions

1. What are the different types of app developement approach?
2. How Appcelerator Titanium works?
3. How Javascript API get compiles to native in Titanium ?
4. What all things we have to keep in mind before developing cross plateform apps ?
5. What will be your approach while developing app for Android & IOS or Web ?
6. Images used in Ios and Android are of what types ?
7. How will you going to map the Javasript API Code with Native Code
8. What are proxies in Titanium ?
9. How will you read the crash report of IOS ?
10. Provide the difference between the Android and IOS UI/UX ?
11. How will you do unit testing in Titanium ?
12. How will you come to know which line of Javascript corresponds to which code in native ?
13. Memory Management tools both in Android and Ios ?
14. How will you do Memory Management and avoid memory leaks ?
15. Performance and Optimization Tips to keep in mind while developing application ?
16. How will you seperate your code on basis of plateform ?
17. How will you going to architect your project ?
18. What is Appcelerator Cloud Services and how will your use it ?
19.How to integrate module in your project ? And what are the 2- ways to do it
20.What is Alloy framework ? Do you support it ? Yes : No ? Why ?
21.What is CommonJS and how to use it ?
22.Describe some Android and Ios specific API’s ?
23. What are types of notifications ?
24. What is push notification and how to achieve it in Android and IOS ?
25. How to integrate Facebook and Twitter in your project ?
26. Can we access mobile hardware using Titanium API ?
27. Splash screen and Icons ?
28. How will you achieve backward navigation in IOS ?
29. What things we have to keep in mind while structuring the Javascript in developing apps ?
30. How we can avoid global variables in javascript ?
31. What are Intent, Activity and Services in android ?
32. How will you support multiple devices of various size, shape, resolution for android ?
33. What was there in Apple WWDC and Google I/O for the developers ?
34. What are the methods or mode of getting user location ?
35. Which one is your favourite mobile app ? And why ?
36. Animations ?
37. How can your provide security to your application?
38. How to publish Android and IOS app to app store ?
39. How will you support your app on lower version of Android OS ?
40. Which technique your support ? open source or license ?
41. Name various type of data storage available on devices ? And how to retrive or submit data into it ?
42. How to achieve orientation (portrait or landscape or both) ?
43. What challanges do you face while developing the app ?
44. What is push notification ? And procedure to set ACS push notification on android ?
Ans :
Push Notification :
Push notification allows an app to notify you of new messages or events without the need to actually open the application, similar to how a text message will make a sound and pop up on your screen.This is a great way for apps to interact with us in the background, whether it be a game notifying us of some event occurring in our game world or simply the iPad’s mail application beeping as a new message appears in our inbox.

Push Notification in Titanium Using Cloud Service
We can achieve Push Notification in Titanium using Appcelerator Cloud Service in 5 steps.
Cloudpush Module Implementation
Retrieve Device Token
Cloud User Login
Subscribe a Channel
Push Configuration
1)Cloudpush Module Implementation
Cloudpush provides methods for accessing Android push notifications from ACS using the MQTT protocol. require cloudpush in your app and add module in your tiapp.xml





// add this line in tiapp.xml


// add this line in app.js

var CloudPush = require(‘ti.cloudpush’);

2)Retrieve Device Token

You can Retrieve Device Token using below code:


success: function deviceTokenSuccess(e) {

alert(‘Device Token: ‘ + e.deviceToken);

deviceToken = e.deviceToken


error: function deviceTokenError(e) {

alert(‘Failed to register for push! ‘ + e.error);



3)Cloud User Login
Before subscribe for Push Notification, cloud user should logged in.
So create a test user in Appcelerator Cloud Console
My Apps -> Manage ACS -> DEVELOPMENT -> Users
and login with credential. Use below code for cloud user login

* Here we have to take care that the the login credentials (username/email) we have to use for the user created in ACS and who has give the admin rights.


login: ‘push123’,

password: ‘push123’

}, function (e) {

if (e.success) {

alert(“login success”);

} else {

alert(‘Error: ‘ +((e.error && e.message) || JSON.stringify(e)));



4)Subscribe a Channel
Add following code for channel subscribtion”:


channel: ‘alert’, // “alert” is channel name

device_token: deviceToken,

type: ‘android’

}, function (e){

if (e.success) {

alert(‘Subscribed for Push Notification!’);


alert(‘Error:’ +((e.error && e.message) || JSON.stringify(e)));



5)Android Push Configuration
It is final step. In Appcelerator Cloud Console go to
My Apps -> Manage ACS -> DEVELOPMENT -> Settings/Android Push Configuration and enter the Application Package in the text box. Your pakage name should be similar Here xxx is company name and androidpush is Application name

Cool.., You have completed Android Push Notification setup. This time for testing, run the application in android device and click the button “Android Cloud Push Notification”. You will get 3 alerts continuously.

Then go to My Apps -> Manage ACS -> DEVELOPMENT -> Push Notifications

you can see “1 Android clients subscribed to push notifications” under push notification section .

It is time to send push notification, enter the values and hit the button “Send Push Notification” instantly you will receive notification in your Android device(with default icon and sound)

Here you can download the complete working project from my Github

Appcelerator Titanium Android Push Notification


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s