TMP Input Field - Any Plans to support one time token on iOS?

Hi,

Currently the TMP Input Field supports the following list of content types:

In order to allow SMS authentication auto fill, we need support for content type = one time token.
See following https://tech.recruit-mp.co.jp/mobile/post-17980/ (translate from Japanese to English…) on the native iOS code changes required.

Any plans to support this new content type? It will allow the following:

So the user can easily click on from message and get the code filled.

Thanks,
Yaniv

Any help is appreciated here…

@Stephan_B

We too require this option to autofill Passwords In IOS Devices. Could you tell me when this option will come?

@yanivng
Please try below link for autofill passwords for ios, Unity InputField not TextMeshpro InputField. will be changed to IOS textfield.

Just change following things in MobileInput.mm in following function
(void)create: ( NSDictionary *)data {

textField.keyboardType = UIKeyboardTypeNumberPad;
if (@available(iOS 12.0, *)) {
textField.textContentType=UITextContentTypeOneTimeCode;
} else {
// Fallback on earlier versions
}
you can get passcode from ios device sms.

1 Like

I have reached out to the Mobile Platform team at Unity to get more information / plans on support for this functionality. Will provide an update as soon as I have more information.

1 Like

Thanks @vasanthbalaji , I will try your suggestion

@Stephan_B
Thank you.

@yanivng
just check whether it is working or not.

@Stephan_B
Any Updates on one-time code content type in textmeshpro for IOS

2 Likes