Native pluginsΒΆ
Important
Plugins are currently a beta feature, get in touch with support@trigger.io if you're interested in trying them out.
Native plugins allow you to write native Android and iOS code, compile it and include this compiled code in your app built using Forge. As part of this it also provides a method for your native code to communicate with your Javascript code.
Writing native plugins is obviously different for Android and iOS, however we have tried to keep the experience as consistent as possible. With that in mind these docs are split into the various tasks you might want to complete as part of writing a native plugin, with instructions for Android and iOS included in each section.
- The Basics
- Exposing native APIs to Javascript
- Triggering Javascript events
- Handling native events
- Communicating with native code
- Using external libraries
- Changing build configuration
- Including resources
- Working with files
- Testing your plugin
- API docs
- Common problems
- Toolkit error messages
- iOS/Android inspector not found
- iOS/Android inspector out of date
- The directory 'x' was expected to be a file
- The file 'x' was expected to be a directory
- The path 'x' is required and was not found
- The path 'x' was found but not expected
- File 'android/plugin.jar' is not a valid jar file containing a Forge Android plugin with name 'x'
- File 'ios/plugin.a' is not a valid static library file containing a Forge iOS plugin with name 'x'
- Validation for 'x' failed: ...
- Toolkit error messages