Skip to content

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

Closed
6 tasks done
PanayotCankov opened this issue Apr 28, 2015 · 17 comments
Closed
6 tasks done

iOS Extensions Research #96

PanayotCankov opened this issue Apr 28, 2015 · 17 comments

Comments

@PanayotCankov
Copy link
Contributor

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.

@truongsinh
Copy link

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/ ?

@jasssonpet
Copy link
Contributor

@truongsinh Yes, the idea is to be able to write native iOS Extensions with NativeScript.

@truongsinh
Copy link

+1 That is what we have been waiting for a loooong time!

@jasssonpet
Copy link
Contributor

@truongsinh You can see a simple example here: https://github.com/NativeScript/ios-runtime/pull/110/files#diff-2

image

@truongsinh
Copy link

Awesome, I though we have to wait, but apparently we can already play around it!

@truongsinh
Copy link

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!

@jasssonpet
Copy link
Contributor

ping @slavchev

@slavchev
Copy link

@truongsinh I created an issue, see NativeScript/android#69

@PanayotCankov PanayotCankov changed the title iOS Extensions iOS Extensions Research Jun 2, 2015
@roblav96
Copy link
Contributor

roblav96 commented Sep 3, 2016

@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 done which is why I'm asking. Thank you! 🍰

The https://github.com/NativeScript/sample-iOS-WatchKit posted up top is 404 😢

@kspearrin
Copy link

I'm also looking for any docs/guidance on creating app extensions with NativeScript. There doesn't seem to be much.

@fpaaske
Copy link

fpaaske commented Jun 18, 2018

@PanayotCankov @jasssonpet Is there any recent documentation related to this issue?

@kspearrin
Copy link

@frapaa The linked examples here don't seem to work anymore. See #929

@fpaaske
Copy link

fpaaske commented Jun 18, 2018

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?

@kspearrin
Copy link

@frapaa Yes, which is what I mentioned in #929

There is no good documentation for trying to do this at this time. I spent a few days on this unsuccessfully and finally just gave up.

@fpaaske
Copy link

fpaaske commented Jun 18, 2018

Ok, I'll dig some more. Thanks!

@erkanarslan
Copy link

We need an up-to-date example and tutorial for this.

@mbektchiev
Copy link
Contributor

mbektchiev commented Oct 2, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants