Skip to main content

Angular leaflet map doesn't load tiles after refreshing the page

Working through an app project I inherited using Ionic, Angular and ngx-leaflet to name a few elements... I had a problem where the map shows only all map tiles when navigating via my app in the Xcode simulator.  The simulator screen would show just a small tile and the rest of the area where the map should be visible stays in gray color.

cordova ios after upgrading to iOS 14 a black screen is shown and no splash screen appears

It appears that the plugin or file path is not working how it used to be on previous iOS versions. Previous version had the splash screen showing.  After upgrading to plugins, a black screen is shown.

The easiest way to simulate the problem is using iOS simulator.  A black screen will show up as the splash screen.

 

Cordova plugins not loading in Ionic

Updating the Cordova plugins... there are two locations to manage the plugins

  • config.xml
  • package.json

I was finding some Cordova functionality was not coming through... through further investigation the two files above had conflicting data.

 

Review the data

package.json

Ionic Angular html tag showing in text

The issue

Text through the app is being rendered as

<p>Depletion estimates, Age and size composition, Catch, Effort, Catch rates, Fishing mortality</p>

Therefore, in this instance the HTML p tags are being displayed along with the text.

 

The code

Currently the code outputting this is written as:

Why is Ionic 5 / 6 content padding not working?

If you have upgraded Ionic to 5 or 6 you will have experienced that the padding attribute is not working anymore.

<ion-content padding *ngIf="loaded" color="medium">

Use of attributes was deprecated in Ionic v4.  If you would have noticed in developers console, Ionic 4 was presenting warnings of using these attributes.  So post Ionic 4, these attributes were transitioned to CSS classes.

ionic app that hasn't been updated for a while - what did I do?

I recently received an ionic app that hasn't been updated for quite some time.  What steps did I do to unpack this situation and as a minimum get the packages updated?

To start, I did a quick check on the number of packages missing or outdated can be discovered through using the command:

npm outdated

Reponse from command:

Subscribe to Ionic