Thank you for your reply. Finally I uninstall everything to start again. It works but difficult to say what the problem was really …
On Mac, Unable to install the oneSignal plugin on Ionic
Now ionic lab doesn’t work anymore. Here is the message I get:
PS C:\Users\ouzin\chanel-pwa> ionic serve --lab
ng.cmd run app:serve --host=localhost --port=8100
[ng] Schema validation failed with the following errors:
[ng] Data path “.builders[‘app-shell’]” should have required property ‘class’.
[ERROR] ng has unexpectedly closed (exit code 1).
The Ionic CLI will exit. Please check any output above for error details.
Local Notification : receive a notification when the application is closed
Thank you. That’s what I thought. Is there a way to launch notifications from a firebase database then?
Or should I use something else?
Thank you.
Extending Mobile App Features
Hi,
I need your guidance. Please stir me to the right direction.
I am building a mobile application where I need to extend it to different features.
For example, New APIs will not be available unless you purchase it. Can I do that if I develop a plugin in Cordova?
Thanks!
Ngx-translate in ionic 5
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Allow HTTPS connections with self-signed certificates
I am facing the same problem in ionic v4. I have changed the Network security configuration using Cordova to the following:
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
This should lead to user certificates to be included since in the default config(> Android 7.0 (API level 24) see here) they are not included. But still, my https request fails. Using chrome I can access the corresponding site which uses the same certificate. The certificate is installed as a user certificate in android but does not seem to get to the angular HTTP client.
My configuration:
“cordova-android”: “7.1.1”,
“@ionic/angular”: “^4.1.0”,
“@angular/http”: “^7.2.2”
React SQLite
Hi all!
Any one found a tutorial of IonicFramework React + SQLite? If found but all about Angular.
Thanks!
Regards,
Martin
Want to rollback to a specific ionic version
Hello I want to rollback to a certain Ionic version whereas from this updated.
I want this:
Any ideas what specific version is this?
Self-hosting a Ionic-Stencil PWA
Hi everyone,
I started learning about Ionic-Stencil and PWA in general around a month and a half ago.
I read ‘Creating Ionic Applications with StencilJS’ by Josh Morony. He’s got a lot of great resources on his website and I learned quite a lot through those and his book.
However, the book doesn’t cover the idea of self-hosting a PWA. Everywhere I read about this, people suggest to use either Netlify (as in the book) or Firebase, but I want it to be hosted on my server.
I suppose that a Node server would be able to serve the PWA, but I don’t know where to start with that.
My only previous notions of hosting websites with Node was to use Sailsjs, which makes the process trivial.
However, I would prefer to start from scratch, so ideally, not use Express or Sails to serve the website.
I am not asking for code that would allow me to do that, only for indications of resources that I should study in order to better understand the process and achieve my goal.
I checked all around for the last three days, and while there are different resources talking about that, most of the time they advise using Netlify or Firebase, and most of the time, the information is outdated.
A lot of lessons talks about how to make a Node server, but I don’t understand how to use that knowledge in order to host a Ionic-Stencil PWA.
Note that I am not interested in publishing the website on the internet, the only part I am interested in is to allow users from my network to access the page with their browser, and to install the PWA if desired.
So I don’t ask about DNS, redirection, etc. Only the step prior to that.
If you have any questions, please write me back.
Thanks in advance.
iOS 'GO' button in @ionic/react form
Hi all,
I’m building a form in a PWA which consists of one element - an IonInput.
I wish to use the native iOS keyboard to submit this form.
I have experimented with placing the IonInput element in a tag along with , but no joy so far.
Cheers !
How to trigger a function when the ion-menu-button is closed in ionic
This is not working for me
Allow HTTPS connections with self-signed certificates
Would changing to cordova-advanced-http i.e. ionic /native/http make a difference?
Self-hosting a Ionic-Stencil PWA
Self-hosting an Ionic-Stencil PWA is basically the same as self-hosting any normal website. Run npm run build
and copy the content of the www
folder to the server. You don’t necessarily need a Node server. E.g. if you have an apache or nginx server, you can use that directly.
One thing to look out for in case you use hash-less routing is to configure the server to return the application’s host page ( index.html
) when asked for a file that it does not have, see here (this link is from the Angular documentation, but this applies to all single page apps with hash-less routing).
Also note that PWAs have to be served over https.
Self-hosting a Ionic-Stencil PWA
Thank you for the fast and very useful answer @pwespi,
I knew I didn’t need a Node server, however I didn’t realize that I could run it from a Nginx directly, I’ll look more into that path.
I am not sure exactly what you mean by hash-less routing, but I will keep your link in mind and check Google if need be.
Once tested, I’ll come back to indicate that it was a working answer.
Thanks again and have a good day.
Instagram's in app browser overlays my PWA
Hi, I’m use ionic for PWA, in mobile browser it looks good, bottom navigation bar doesn’t overlay app
But if I open my PWA from Instagram account link (in Instagram in app browser)
I have tried to check User-Agent, find ‘Instagram’ and add bottom-padding:40px, it works on Iphone 6, but on Iphone X 40px is not enough.
So, I think, that it is not good solution.
Self-hosting a Ionic-Stencil PWA
Regarding hash-less routing, see https://ionicframework.com/docs/api/router > useHash
Braintree plugin
Hi,
I encounter the same issue using Ionic 4. Have you found a solution for this problem?
Self-hosting a Ionic-Stencil PWA
Wow thanks, that’ll save me some time.
Ionic lab doesn’t work anymore. Here is the message I get
$ionic serve --lab
ng.cmd run app:serve --host=localhost --port=8100 [ng] Schema validation failed with the following errors: [ng] Data path “.builders[‘app-shell’]” should have required property ‘class’.
[ERROR] ng has unexpectedly closed (exit code 1).
The Ionic CLI will exit. Please check any output above for error details.
Job interview
Hello.
I’ve had some experience programming with ionic for a couple of years now.
Although I’ve done applications and learned pretty well how to use ionic with angular, I’m not an absolute expert.
I’m being interviewed online for a possible job.
I’m very nervous and I’m afraid of doing it wrong
Could someone give me some tips to get through the interview or share with me a link to some documentation I could study to be more prepared?
Thank you.