Search Unity

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

Discussion in 'UGUI & TextMesh Pro' started by yanivng, Nov 11, 2019.

  1. yanivng

    yanivng

    Joined:
    May 21, 2017
    Posts:
    43
    Hi,

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

    upload_2019-11-11_16-11-9.png

    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
     
  2. yanivng

    yanivng

    Joined:
    May 21, 2017
    Posts:
    43
  3. yanivng

    yanivng

    Joined:
    May 21, 2017
    Posts:
    43
    Any help is appreciated here...
     
  4. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    @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.
    https://github.com/mopsicus/UnityMobileInput

    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.
     
    yanivng likes this.
  5. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    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.
     
    wjpeters likes this.
  6. yanivng

    yanivng

    Joined:
    May 21, 2017
    Posts:
    43
  7. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
  8. vasanthbalaji

    vasanthbalaji

    Joined:
    Nov 15, 2014
    Posts:
    34
    @Stephan_B
    Any Updates on one-time code content type in textmeshpro for IOS
     
    ROBYER1 and yanivng like this.