Get the mobile number from iPhone settings in titanium appcelerator - iphone

I want to fetch the user's phone number from her iPhone settings. I have found so far that this is not supported with any Titanium API. Is there any module or a way to get the phone number that is entered in user's iPhone settings.
Thanks! :)

You can't access that information. Even when you are using Objective-C to create your app, Apple doesn't provide API for that. Take a look on this question.
If you want to collect users phone numbers, you have to ask them for it explaining why you need it.

Related

Display on Webpage Number of iPhone app downloads

I would like to put on a webpage how many downloads of an iPhone app have happened.
I would like this to be automatic. By the way, I built the app.
Is this possible? Is there a JSON REST API I should know about?
Thanks!
This needs to be an enterprise application, hosted on your website. If the iPhone app is in the Itunes Store, this is not possible.
If it is on your website, then making a counter is pretty easy. See this Stackoverflow post.
You can of course find the number of downloads of your app in Itunes Connect for your personal app, but this would be of no use to an automatic counter.
There is also a way to roughly estimate the amount of downloads based on the application rank. See this paper (d_iPad=9,525*rank^(-0.903) d_iPhone=52,511*rank^(-0.944)), although the methods might change based on the number of apps in the App store.

Twitter / Facebook integration

I am on a mid way of porting an iPhone application to Windows Phone 7. In that iPhone application it is providing provision for submitting score details through Facebook / Twitter mail etc. So I need to implement the same functionality in WP7, too. How can I implement this functionality in my Windows Phone project?
While searching I found some methods with the help of web browser. But that is not useful in my case. In my app I need to log in through the the designed page and need to update the score status to the social networks through my own view.
Please help me to achieve the functionality in my app. (If anybody has sample apps or links please attach that information, too.)
You can use the ShareStatusTask to post to facebook, twitter msn etc.
ShareStatusTask shareStatusTask = new ShareStatusTask();
shareStatusTask.Status = "My Score: xxxx";
shareStatusTask.Show();
I don't know if it's exactly what you're looking for, but ScoreLoop provides a free high score system as well as social network integration for Windows Phone games. I'm currently migrating my homegrown scores systems to ScoreLoop, looks good so far.

iPhone Private distribution

I am new to iPhone world.
I have developed an application, which I would like to send to all the iphones come under the vicinity of a particular wi-fi access point. (It is meant for a shopping mall)
With my limited knowledge in this, I understand, I cannot distribute the application through my webserver. I even cant use the 'Ad hoc mode' suggested by Apple, as registering of all the mobile phones is impractical.
I would like to know whether the only solution is 'distribution through appstore'? Or any other solution available?
Expecting your help.
Thanks.
If you mean that the application would automatically be loaded onto phones when they move into a certain shopping mall, then yes, I can see that you are new to iPhone development! :)
For security reasons, the user has to specifically choose to download the app.
If the app is not iPhone-specific but simply a web page made up to look like an app, then you could use SMS to send a URL to the phone. But that would require you to know the phone number, which is also not made available through any kind of local wireless communication, again for obvious security reasons.
The simplest approach would be to put a poster up in the mall, telling iPhone users that they can find the mall's app on the iTunes App Store.
Another possible solution is to make a web app instead of a native app.

detecting email account from within an iPhone application

Is there a way to know the email addresses to which the user has linked his iPhone to from within an iPhone application?
Yes, you can use the AccountEmailAddresses function of ABGetMe for iOS. Make sure to read and understand the Limitations section of the README.

Is the list of Apps on my iphone available for reuse in a different display?

I have an idea to use the apps on my iphone as a list for a different way to launch the program. But I have no idea if I can see the apps in something I can display? Is this possible? If it is possible, can I launch the listed app from my app? What do I need to access to get this done?
There is no way using the official SDK to enumerate the list of applications the user has installed.
Unofficially, with a jailbroken phone you can check the contents of the applications folder.
It is true there is no specific way to do this with the normal SDK. However if specific apps you had used URL schemes you can invoke them programatically. Google maps, mail, safari, sms have it. Any application can choose to implement their own custom one. This obviously doesn't help with any random app but if you have specific apps your targeting you might be able to integrate that way.