You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/03 05:56:57 UTC

[GitHub] [cordova] Snehal14283 opened a new issue #187: Convert .Net Core Web API & Angular app to Cordova

Snehal14283 opened a new issue #187: Convert .Net Core Web API & Angular app to Cordova
URL: https://github.com/apache/cordova/issues/187
 
 
   <!--
   Please have a look at the issue templates you get when you click "New issue" in the GitHub UI.
   We very much prefer issues created by using one of these templates.
   -->
   
   ### Issue Type
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] Bug Report
   - [ ] Feature Request
   - [ x] Support Question
   
   ## Description
   I have developed an .net core 2.2 with an Angular 8 application. They both exist in the same project structure. The .net core application acts as an API for the client side Angular 8 application. When I am publishing app it will give me following folder structure:
   
   Root Folder (having .net core files)
   Root Folder/wwwroot
   Root Folder/ClientApp/dist (having angular files)
   
   This whole publish folder I am putting into "www" folder where cordova project resides. I changed the "config.xml" of cordova project.
   
   `<content src="ClientApp/dist/index.html" />`
   
   When i try to run the app on android, it just showing me "Loading..." message on emulator.
   
   I understand that normal behavior of .net core application first bootstrap to project dll and then route to angular application. Then how to convert app to android in Cordova?
   
   Thanks
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` -->
   
   - [ ] I searched for already existing GitHub issues about this
   - [ ] I updated all Cordova tooling to their most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] brodybits closed issue #187: Convert .Net Core Web API & Angular app to Cordova

Posted by GitBox <gi...@apache.org>.
brodybits closed issue #187: Convert .Net Core Web API & Angular app to Cordova
URL: https://github.com/apache/cordova/issues/187
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] brodybits commented on issue #187: Convert .Net Core Web API & Angular app to Cordova

Posted by GitBox <gi...@apache.org>.
brodybits commented on issue #187: Convert .Net Core Web API & Angular app to Cordova
URL: https://github.com/apache/cordova/issues/187#issuecomment-572221226
 
 
   You have to basically embed the www part as a SPA in Cordova, and let the SPA connect to your backend in a standard manner.
   
   In case of any issues, I would highly recommend that you make a [minimal, reproducible example ([1])](https://stackoverflow.com/help/minimal-reproducible-example) and seek support in the following kind of channels:
   
   - Stack Overflow
   - Cordova Slack channel (find the contact information from the footer of cordova.io which redirects to cordova.apache.org)
   
   A major, unfortunate limitation of Cordova is that your app has to wait for a "deviceready" event before attempting to use a Cordova plugin. This is known to trip up many, many apps using Angular and Ionic. I hope we can remove this requirement in an upcoming release. There is also Ionic Capacitor which is newer and does not suffer from this limitation.
   
   Please do feel free to raise an issue on GitHub with a [minimal, reproducible example ([1])](https://stackoverflow.com/help/minimal-reproducible-example) in case you can find and demonstrate an issue with this framework.
   
   [1] https://stackoverflow.com/help/minimal-reproducible-example

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org