-
-
Notifications
You must be signed in to change notification settings - Fork 59
iOS Extensions Research #96
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
Comments
I am sorry but I cannot quite get your idea. Is your "iOS extension" this https://developer.apple.com/app-extensions/ and this https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ ? |
@truongsinh Yes, the idea is to be able to write native iOS Extensions with NativeScript. |
+1 That is what we have been waiting for a loooong time! |
@truongsinh You can see a simple example here: https://github.com/NativeScript/ios-runtime/pull/110/files#diff-2 |
Awesome, I though we have to wait, but apparently we can already play around it! |
I know I'm in the wrong repo, but I would like to ask whether there is the same feature for Android Widget in android-runtime repo? Issue reference would help! |
ping @slavchev |
@truongsinh I created an issue, see NativeScript/android#69 |
@jasssonpet @PanayotCankov Where can one find the documentation/conclusion on this research or maybe a demo project for ios extensions? I see it's marked as The https://github.com/NativeScript/sample-iOS-WatchKit posted up top is |
I'm also looking for any docs/guidance on creating app extensions with NativeScript. There doesn't seem to be much. |
@PanayotCankov @jasssonpet Is there any recent documentation related to this issue? |
Yes, I saw that Today example, but the article is from 2015 and not really easy to follow on latest Xcode etc. I was hoping there was a more recent example :) Did you manage to implement an app extension when you where looking into this in March? |
Ok, I'll dig some more. Thanks! |
We need an up-to-date example and tutorial for this. |
The current solution is far from perfect and requires quite a lot of manual changes. If you follow the updated steps in the tutorial, however, it does work. That said, we've logged a new issue for app extensions support: NativeScript/nativescript-cli#3965. It is still not planned for implementation but at least can be voted for. We would definitely welcome any contributions that can help us reach there! |
We need to build and distribute a shared framework out of the NativeScript.framework. This should be relatively easy, we have an internal proof of concept spike that proved that today views work with such framework. It should be distributed in the "tns-ios" npm package. However we should be sensitive for the filesize.
Then we need to provide bootstrappers and instructions how each type of the extension types can be set up manually. Please note that we will not integrate this in the CLI yet.
The most valuable deliverable would be a working WatchKit example. For integration with storyboards we will be ok to require manually written headers for now. In future if we provide our own XML markup for the WatchKit we will be able to generate headers from the XML. Or we can generate headers out of TypeScript declaration files if this would be more familiar to JavaScript developer.
We need to have only one copy of the metadata.
The text was updated successfully, but these errors were encountered: