Automatically enter name/phone/email etc - ios

I may be searching for the wrong thing, which might explain why I can only find information on setting up password autofills.
I'm looking for the ability to for a user to enter email, phone, first + last names in an app, the same way some websites are able to do it, the options appearing above the keyboard.
I have the fields content type set in the storyboard (Name, Telephone Number, Email Address)
Can anyone advise if this is possible and how I go about doing this.

Password Autofill is the only feature that automatically does that on IOS Apps.
The other feature you are talking of "Contact Auto Fill" that you say happens on some websites on your mobile is a feature implemented in the Safari App.
If you go to your IOS settings and open Safari Settings, you'll see you can select a contact to use for contact and credit card autofill.
Safari Settings Screenshot Safari Settings Screenshot2
To get such a feature, you would have to manually implement.
Automatic availability of such feature would probably have privacy concerns to user (meaning you can auto extract true user contact information by just making such a form in your app).

Related

Can I use iOS AutoFill feature only in app without associated domain?

I am wondering if I can use AutoFill without implementing the Associated Domains?
So this means for example that when the user register in my app that I save the credentials.
And then when he tries to login offer this credentials as AutoFill option.
Is something like that even possible to achieve?
As far as I can tell, you can take advantage of AutoFill without setting up associated domains. The part you'll miss out on is that iCloud/1Password/etc. won't be able to suggest the right log in details for your app without the associated domains set up. Instead, it'll prompt the user to choose/search for the matching log in details and select them from a list. But it should fill it in for you fine, especially if you add the extra details like setting textContentType on your text fields so iOS knows what's a log in form in your app.
ETA: Actually, I ended up having issues with AutoFill in my app that seemed to be fixed by setting up associated domains. The documentation makes it seem like that step is optional, but I had trouble where 1Password would let me choose the log in details but not fill them into the text fields until I had associated domains set up, whereas iCloud seemed to work fine mostly.

Can iOS 8 native credit card scanning be utilized in a native app?

In iOS 8, a user can scan his or her credit card (takes a picture) in both Safari and Apple Pay. Additionally, a web form can prompt a user to scan a credit card to autofill a form asking for payment info. This is done in html by setting a tag / name on the field, e.g. "..." Safari will then automaticaly prompt the user to use their camera (see links below).
Is there a way to take advantage of this functionality in a native iOS app, either via an apple API or by setting some field type parameters on an input field?
Example use case: user opens my app and tries to buy something, I prompt user to enter a credit card, she or he can then scan a card.
If a user adds a card directly through Safari settings they might have this option:
https://9to5mac.files.wordpress.com/2014/10/2014-10-02-08-41-21.png
If a user hasn't added a card already, they might have this option:
http://photos2.appleinsidercdn.com/gallery/9512-1291-safari-140609-l.png
NOTE: I know about Card.io and will probably use that, but wanted to find out if there is an easier / more seamless way.
I don't think so, I never saw it outside of a webview.
Card.io is the best option in my opinion.

iOS Accounts Framework -- How to prompt user who hasn't entered account info to do so?

I am trying to get the Accounts Framework to give me a user's twitter handle.
This works if the user had previously logged on to twitter with their iPhone.
However, if they have never associated their account with their iPhone, I can't find a good way to prompt them to do so.
The method ACAccountStore.renewCredentialsForAccount does take them to settings to re-enter their password, but I don't see a way to take them to that settings screen to enter a new account.
As to me, the best solution for you right now is to make an UIAlert that tells something like:
"Please go to your Settings > Twitter and login...thanks"
As currently there is no URL to Twitter/Facebook settings page in iOS.
The only settings page in iOS Settings you can open from your app — is your app's settings page.
You can do that by calling:
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString))

Is it possible to send the user to the system settings?

If I want to send a user to the facebook settings page under "system preferences" from within my app, what is the best possible way to do that, if it is indeed possible:
A case where this is useful would be if a user is trying to use an app's SSO capabilities to register for something using their facebook account. They click to register using facebook, but no facebook account is configured on the iPhone. It would be useful to then display a UIAlertView explaining that there is no facebook account configured, and then send the user to the settings page for facebook.
Is this possible? If so, how?
Short answer, Its not possible.
There is no way to launch device default "Settings" app from within your app. All you can do is give user some instructions of how to go about and change certain settings by themselves. You can do this as either a pop-up alert message or some sort of tutorial with screenshots built in your app.

Rails - Add a button that goes to a user's default email with an address in place

I'm building an app and wish to allow users to provide continuous feedback while they demo it. I want to add a "feedback" button to the address bar that will take an iPad user directly to their default email with my team's support box already in the address. Maybe even some info about the site they are on in the body of the email. Any tips on where to get started?
Thanks.

Resources