Third-party keyboards
  • 24 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Third-party keyboards

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

Custom keyboards can be installed on an iOS device. Some of these third-party keyboards might have access to the internet and maliciously act as a keylogger to record sensitive data. You can protect against these keyboards by blocking their use in your app. This is done at the code level in your AppDelegate class.

For Objective-C apps, use the following function:

- (BOOL)application:(UIApplication *)application
shouldAllowExtensionPointIdentifier:(UIApplicationExtensionPointIdentifier)extensionPointIdentifier {
    return extensionPointIdentifier != UIApplicationKeyboardExtensionPointIdentifier;
}

For Swift, use the following function:

func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier
extensionPointIdentifier: UIApplication.ExtensionPointIdentifier) -> Bool {
return extensionPointIdentifier != .keyboard
}


Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle