-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support for iOS app extensions #3965
Comments
+1 from 1357156 |
Currently the above can be achieved by implementing the above "manually"- blog post here. |
Starting with the somewhat outdated blog post mentioned above I tried to do the manual steps to accomplish this. The big problem that should be of a great concern at this point is this linker warning:
One problem in the NativeScript.framework is the usage of UIApplication.sharedApplication NativeScript.framework in its current form cannot be used inside app extensions, otherwise the application will be rejected from publication to the AppStore (leaving aside the obvious runtime error caused by using it). The runtime needs to be split into at least 2 frameworks suitable for linking with app and app extension targets respectively. |
Thank you for adding this feature to new release. However I couldn’t find a documentation for that. Is this available right now or do we need to wait for a few more releases? |
@erkanarslan I am currently working on the related documentation section - the working branch can be found here |
@NickIliev This is a really nice addition to {N}! Will this work with any kind of extension? For example CallKit? |
Has anybody ever been able to successfully build a release build containing a share extension while utilizing the nativescript cli build process ( |
Description
iOS App Extensions are the iOS way of enabling some of the rich native app experiences. For more info see the App extensions documentation page
Describe the solution you'd like
CLI should be able to:
package.json
Describe alternatives you've considered
There are a couple of rather outdated proof-of-concept implementations with Today widgets available:
* https://www.nativescript.org/blog/making-a-today-widget-in-ios-with-nativescript-and-ui-for-nativescript
* https://github.com/NativeScript/ios-runtime/tree/master/examples/TodayExtension
They require manual changes to the Xcode project
platforms/ios
which is undesirable. Theplatforms
directory is considered ephemeral -- it shouldn’t be committed in source control and should be eligible for safe deletion at any time.Additional context
tns_modules
is big this could significantly bloat the app package size. To solve this we could make the extension directory inApp_Resources
have its ownpackage.json
– this can potentially reduce the amount of duplicated modules.The text was updated successfully, but these errors were encountered: