I have a mobile application in ionic and have uploaded it in playstore. Now I want to host it in a website. How do i do that with ionic 4 and mysql?
I have tried visiting the ionic documentation about PWA but they are using firebase.
ng add #angular/pwa
ionic build --prod --service-worker
ionic build --prod
if you not need Cordova use:
npm run ionic:build --prod
and copy all from the www folder to your Web Server
or if you need Cordova
then Use Browser Platform for websites.
ionic cordova platform add browser
ionic cordova build browser --prod --release
and copy all from the /platforms/browser/www folder to your Web Server
Related
My Question, I am using Windows laptop, in ionic have an option to build APK and IPA (For IOS Platform app ) file?
Yeah sure you can... You need to use cordova for it. (I am using it for some projects)
Install cordova using npm and then in project initialize cordova.
Then add platform using cordova for android and iOS in project.
Then use Cordova to build app for android or iOS
I have a cordova plugin which supports Android, iOS and browser platforms. But when adding the plugin in an ionic app that is being developed/built using ionic serve or ionic devApp, the error comes as 'plugin is not defined'. Is there a way to add the ionic devApp support to a cordova plugin ? If it means only using the browser code for all the platforms(Not using any native platform code), then it works for me. Thanks in advance.
I have added the browser platform to my plugin but it does not work with ionic serve even when the app is running on browser. Note that the plugin works fine on browser when the app is run using ionic cordova run browser command.
I want the cordova plugin to be compatible with all platforms - Android, iOS , browser and devApp. My expectation are that when the app is run using ionic cordova run android/ios/browser command, it should use the native code of my cordova plugin. And when the app is run using ionic serve or ionic devApp, then it should use the web code.
I have connected my android phone to the same wifi as my laptop is connected.
and i execute ionic serve --devapp
the expectation is to be able to run my ionic PWA on my android device.
Very simple :
ionic cordova run android
Note :
This command will automatically integrate cordova in ionic project.
Manually integrate cordova :
ionic integrations enable cordova
I'm new to Ionic, and just installed it and i also installed Cordova on my Ubuntu 18.04 machine, then i used the command to create an app using these commands
npm install -g ionic
npm install -g cordova
then i used the command to create an app using these
ionic start ionic4Tut --type=angular
but I'm not getting the question about integrating cordova to the project as shown in all the tutorials,
Integrate your new app with Cordova to target native iOS and Android? (y/N)
anyone know way is that?
I was having the same problem and what I did was after creating the project using
$ionic start projName --type=angular
I will cd to my project folder and run
$ionic cordova platform
that will solve your problem.
Cordova is what the Ionic framework uses to target native functionality for mobile devices. It does this because Ionic is primarily a mobile app framework. If you don't want to integrate it and want to use nothing but the development framework, you may as well use Angular on it's own.
Reference: Cordova, Angular, Ionic
I have created my ionic App via Commmand Prompt by using the following command,
mfp cordova create AppName
After that mfp plugin was installed automatically inside my project.Then
I created mfp project using,
mfp create projectname
App created successfully..Then using
mfp push
i pushed my app inside the server 7.1 version.
After i have started to run my ionic app using,
ionic run android --livereload
In there i am getting error as,
TypeError: platforms[platformId].parser is not a function
My configuration:
cordova : 5.4.1 version android : 3.6.4 version
Anyone help will be Appreciated!!!!
You did not create an Ionic app. You created a Cordova app.
You wrote: mfp cordova create AppName. That's not how you create an Ionic app... that's how you do it: ionic start todo blank.
Please read the Ionic docs.
http://ionicframework.com/docs/guide/installation.html
To create an Ionic app and then integrate it with MobileFirst , you can follow this guide: https://www.raymondcamden.com/2015/03/23/working-with-ibm-mobilefirst-and-the-ionic-framework/