Feature Request
Currently we have a feature to add custom widget extensions on iOS with the ios.widget_extensions setting in Dioxus.toml however this would be better if it had general support for all iOS extensions. So we could use things such as BADownloaderExtension or other extensions.
Implement Suggestion
We could update the schema so that you can specify the frameworks and extension_point so that you can customize the extensions compilation. We can rename the schema to be ios.app_extensions. Then just update the framework linking to loop over the requested frameworks and update the plist to be set by the extension point.
Most of the code to do all this is already there it's just allowing this to be customized. We can make it backwards compatible to where it defaults to widget extension if you don't specify the frameworks and extension_point if we want?
# Dioxus.toml
[[ios.app_extensions]]
source = "extensions/BackgroundAssetDownloader"
display_name = "Background Downloader"
bundle_id_suffix = "background-downloader"
extension_point = "com.apple.background-asset-download"
frameworks = ["BackgroundAssets", "Foundation"]
I can also create a pull request for this as I have modified and updated the code for this to work correctly. What are your thoughts on this? I have a commit for this code you can view: d7cbff1
Feature Request
Currently we have a feature to add custom widget extensions on iOS with the
ios.widget_extensionssetting in Dioxus.toml however this would be better if it had general support for all iOS extensions. So we could use things such asBADownloaderExtensionor other extensions.Implement Suggestion
We could update the schema so that you can specify the
frameworksandextension_pointso that you can customize the extensions compilation. We can rename the schema to beios.app_extensions. Then just update the framework linking to loop over the requested frameworks and update the plist to be set by the extension point.Most of the code to do all this is already there it's just allowing this to be customized. We can make it backwards compatible to where it defaults to widget extension if you don't specify the frameworks and extension_point if we want?
I can also create a pull request for this as I have modified and updated the code for this to work correctly. What are your thoughts on this? I have a commit for this code you can view:
d7cbff1