No Twitter accounts yet on iOS Device - ios

If a user does not have a Twitter account installed on their device is there a good way to prompt them to install one and take them to the Settings panel to do so? I know before iOS 5.1 there was a URL to take them to the settings screen, but I think that no longer works. It seems pretty sloppy to tell them they do not have an account and just leave 'em hanging.

openURL has not been deprecated. At least not according to the API documentation.
Just use a UIAlertView to ask whether the user would like to add an account. If they say yes, call the following line:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=TWITTER"]];

Related

iOS Verify App Installation success

I want to create a cross promotion on my app, and give bonus stuff after user installs and runs my other applications. Is there any easy way to do this? I have looked at the iOS8 plugins functions, but this also needs to work on iOS7. Any suggestions?
Use custom URL schemes in both your apps and after that just check if the iOS system has the URL scheme registered. If so, then the user had installed the other app.
Here's an example on how to do it.
For this to work across multiple devices I'd probably say you'd need to implement a webservice that stores the users information such as a unique identifier for that user (Not device) so something like the users username and update it with the new app that they have just downloaded and installed and signed in using that username.
If this is just on a per device basis you could probably do it using Custom URL Schemes. Each of your apps would have a Custom URL Scheme and when the user opens the app you can do a check to see if any of the other Custom URL Schemes are installed on that device by using [[UIApplication sharedApplication] canOpenURL:] and if this returns true then that app is installed.
Here's the Apple Documentation for Inter-App Communication

Launch phone calls and show a call screen from guided access?

I have a "home screen-replacement" app on Android for people with eyesight problems and I'm considering making a similar App for iOS.
Since home screen replacements don't exist in iOS, I'm thinking of optimizing my app for "guided access" or "single app" mode. That way someone can set the phone up from a senior, and he can call his favorite contacts and receive calls on a more controlled and simpler enviroment.
The problem is that I don't know whether it's possible now how to do this. Can calls be launched and answered from guided access? If not any ideas on how to do it will be appreciated
To the best of my knowledge, this isn't possible with current APIs. Guided Access will prevent users from switching away to another app, including Phone. Similarly, incoming calls will be missed silently.
Edit: You could, of course, implement your own call feature over VOIP, but that's not what you asked.
May be this help you, to make phone calls using existing API:
NSString *phoneNumber = #"tel://911";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
mere about calls here How can I make a phone call programmatically on iPhone?
Nothing, just tried it. You're completely sandboxed in Guided Access.

Call with skype within my IOS app and then return

I am developing an iPad app and want to make a call using Skype. I have successfully launched Skype client using an example from Skype with the following code:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"skype:echo123?call"]];
which can be found here http://developer.skype.com/skype-uris/skype-uri-tutorial-ios.
I have also read about Skype Buttons, which Skype provides for placing in a webpage and email, but cant find out how to place then in an app, if it's even possible.
When call ends, I want to return to my app. Any information guiding me in the right direction is appreciated!
Some applications on iOS do support going back to your application after you launch them. For example, Chrome supports this via the x-callback-url scheme: https://developers.google.com/chrome/mobile/docs/ios-links
Unfortunately, Skype does not seem to be among the apps supporting this approach: http://x-callback-url.com/apps/
This likely means you're out of luck. Sorry!

Calling a number on the iPhone

So,
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:#"tel: 14165551212"]];
calls a phone number on the iPhone.
What other things can we do, though? I'm trying to make a simple app that has a list of phone numbers. It dials the first one in that list, and re-dials if it is engaged. Is this possible?
You can certainly open a link in Safari. It should also be possible to go to the Mail app and create an email. I heard that you can also go to the Messages app.
And, I don't think that what you described is possible. Your app can't do much from the background. And I'm pretty sure that it can't control/monitor any other apps(including Phone), so it will not be possible to re-dial it.
Hope it helps
What you are describing is partially possible starting with iOS 4.0 and even better with iOS 5. You may initiate dialling a number from your app with telprompt URL schema and when iOS finishes with the call it will open your app again, see Stackoverflow answer
What is problematic is getting the result of the call: whether it was successful or engaged, etc. You may want to have a look at CTCallCenter class reference.

redirect iphone app to apple store

I have an iphone app, and when there are upgrades available, I want to prompt the user to upgrade, and if they click upgrade, I want to redirect them to the apple store. How is this done?
Thanks
Apple documents the process here: http://developer.apple.com/library/ios/#qa/qa2008/qa1629.html
The basics boils down to using an NSURL to open an iTunes link:
NSString *iTunesLink = #"http://itunes.apple.com/us/app/warehouse51/id364201184?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
However, I don't believe there is a way to direct to the upgrade tab.
Note: phobos links are generally outdated, so ignore that your link won't look like the example in Apple's doc. It will generally look like the one in my updated example here.
Just open the appropriate iTunes URL for your application. Users will have to go to the update tab on their own, though.
You'll either want to use a Push notification, or have your app check somewhere online (that you can update) so when an update is available you can present an alert. Then, upon an OK from the user, simply send 'em to your app in the store using the itunes URL.

Resources