How can I run composer without user interaction and yes to all?
Ionic capacitor app Xcode framework build errors
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 how to update and install or view platforms and plugins
This article references some of the common commands via CLI (command-line interface) in running a Cordova app.
Platforms
Platforms are the environment(s) that you want to run your app on. We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json files.
To add a platform use the following command:
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 prepare if the plugins aren't showing
How can you find out if the Cordova plugins have been loaded?
Begin by running the command
ionic info
You will see a response similar to
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
Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
Oh the treasure of a client coming to you with a site they have removed the previous dev on... treasure hunt. Not.
Anyway, gaining access to an old site, working through the errors I came across this deprecated code
Deprecated function: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in common_check_language() (line 306 of /path/to/file).
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.