Skip to content

IOS: nativeScriptBootstrap promise is not resolved #311

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
vakrilov opened this issue Jun 28, 2016 · 2 comments
Closed

IOS: nativeScriptBootstrap promise is not resolved #311

vakrilov opened this issue Jun 28, 2016 · 2 comments
Labels

Comments

@vakrilov
Copy link
Contributor

nativeScriptBootstrap promise is not resolved in IOS.

nativeScriptBootstrap(RendererTest).then((comp) => {
    console.log("XXXXXXXXXXXXXXXXXXXXX START XXXXXXXXXXXXXXXXXX");
})

It works on Android though

@vakrilov vakrilov added the bug label Jun 28, 2016
@vakrilov
Copy link
Contributor Author

Reported originally in #156

@vakrilov
Copy link
Contributor Author

Copying the comment form the PR here for clarity:

There is a limitation in IOS: Any code executed after application.run() will not be executed in IOS. As application.run() is called inside nativescriptBootstrap there is no point to return promise from this method - the promise can never be consumed.

The code that is to be executed on app startup can be moved inside the app main component.

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

No branches or pull requests

1 participant