Search code examples
iosfirebasecrashlyticsios-app-extensioncustom-keyboard

Firebase Crashlytics for iOS Custom Keyboard Extension


Is there any proper setup for iOS extensions?

I added another app with the bundle identifier of extension, but no luck. Can't send any crash report.


Solution

  • For most iOS extensions the best place to initialize Crashlytics is inside init() on your extension's principal class.

    However for security reasons, networks requests are initially disabled by default for Keyboard Extensions. In order to change that you will need to update RequestsOpenAccess to YES located under NSExtensionAttributes in your info.plist file. Then the user will have to "Allow Full Access" in the settings for your app, inside the keyboard category. This setting is visible only if the custom keyboard is switched on.

    info.plist

    Apple docs reference