Skip to main content

Creating a .pem file for push notifications

To create a .pem file, is quick once you have your .p12 certificate.  I won't go through the process regarding p12 file generation as there are many sites that outline these steps.  If you cannot find a site that outlines this make a comment below and I'll point in the right direction.

Open the terminal and go to the path where you save the apns-cert.p12. where and follow the below command to generate the .PEM file.

Filtering an array list

I had the issue where I needed to filter an array list by a specific column.  In my instance, the column is language.  To be able to reduce the query to the language column the code required is

levels = selectedCategory?.levels.filter("language = %@", language)

Language can be any string, in this instance for me language is a two alpha character such as 'fr', 'en' or 'de'.

Further to this you can continue to chain this query through including sort as per

How to programmatically change the app language without restarting the app

iOS localization on the fly

If you have added languages to your app... shortly afterwards you'll be getting yourself knee deep in changing the language on the fly.  Followed by the question – how do you change the language of the app without having to restart the app?  To change the language of the app there are a couple of key steps involved:

Font list for the iOS

A handy resource list of fonts for iOS:

iOS Font List - https://iosfontlist.com/#availability=10.0&preinstalled

LearnUI - https://learnui.design/blog/ios-font-size-guidelines.html

Resources for your app or site

Images

For some time, when looking for images online for your app or site I have been going to Unsplash.  As I come across more image sites that are noteworthy they will be added to this list.

Unsplash (https://unsplash.com) – is an amazing resource for beautiful, high-resolution and free photos

Removing warnings

During the process of building the app, there are warnings about the code.  It's good practice to remove all warnings before you submit your apps to the App Store so there's a few steps you can follow to silence these warnings:

Navigate the the Project Settings page below; Select the drop down menu next to Devices; Change from Universal to iPhone; then Run your app again and the warnings should disappear.

dyld: lazy symbol binding failed: can't resolve symbol

If you have this error, the core issue is the dyld issue.

dyld

dyld is a shared library (dylib).

The error is a product where the library path cannot be found at run time.  Most likely you have installed a framework to your project and there is an issue in the standard location (such as /Library/Frameworks) on your build and the framework that you have added.

Input box page not saving

We had an issue recently where saving a page in the admin area produced one of the following outcomes:

Subscribe to