Titanium 1.0 features support
Hi team,
I am using the 1.0 general version of Titanium.
I have a few queries related to the Titanium framework. I need to ask these queries
so that i can check the feasibility of my project whether to built on Titanium or not.
I am building the app targeting both iphone and android.
1) How can i get the device id using Titanium namespace. What is the code to get the device id for iphone and android.
2) Does the Titanium 1.0 support paypal integration. i want to have a paypal payment process in my app. how will i accomplish that?
3)I have seen the geoloacation namespace. now it gives me current location in latitude and longitude form. i need the current address.
how will i get it using titanium. Will it be done as shown in this post
http://support.appcelerator.net/discussions/titanium-mobile-discuss…
Please help me with this queries as this will help me to decide the features possible using Titanium in my application.
Thanks,
Hirva
4 Answers
-
Just in case someone finds this thread while searching for 'device id', you can now access it by using:
Ti.Platform.id
-
There is this call
Titanium.App
but I don't think you are able to get the device ID.
Someone found any?
-
To get the platform ID try this:
Titanium.Platform.name == 'android' Titanium.Platform.name == 'iPhone OS'
I Think its possible to integrate paypall support, just do it liek you normally do on a website using html and stuff, and then just load that content in a so called webView. You create a webview like this:
var webview = Titanium.UI.createWebView({ url:'www.google.com' });
Getting the name from a lat/lon coord is also possible, altho it only works with US coords (europe ones did not work for me)
Titanium.Geolocation.reverseGeocoder(latitude,longitude,function(evt){ var places = evt.places; Ti.API.debug("reverse geolocation result = "+JSON.stringify(evt)); });
-
@Peter
For fetching the device id use:
Titanium.Platform.id
check this
https://developer.appcelerator.com/apidoc/mobile/1.1/Titanium.Platform