Scanning for peripheral devices using BLE in an iOS app

Introduction I had the chance to work on a project where communication via BLE was at the heart of the project. Before adding any code to application, I always asked myself about two scenarios: The first scenario is when the device acts as a central device while searching for and connecting to peripheral devices. The second scenario is when the device acts as a peripheral device by using CBCharacteristic and changes its value....

July 10, 2024 · 3 min · Dmytro Chumakov

Battery Performance Testing for iOS App

Introduction Working with batteries on iOS devices for large applications has always been tricky. The amount of energy consumed by the screen, location services, network calls, processing, background tasks, etc., is significant. From a developer’s perspective, it seems complicated, but Xcode provides tools to address this problem. To find the issue, you need to open Xcode and go to the Debug Navigator. In the Debug Navigator, you will see the Energy Impact gauge....

July 7, 2024 · 1 min · Dmytro Chumakov

Creating a 2D Space Game for iOS Using SpriteKit - Part 2

Introduction In the previous chapter, I started talking about the video game creation process, from project setup to adding the background. Now, I’m going to add the player and physics to it. You can download the project here. First Step The first step is to initialize player using SKSpriteNode, set up player.position, and add player as a child node. SKSpriteNode - is an onscreen graphical element that can be initialized from an image or a solid color....

July 3, 2024 · 3 min · Dmytro Chumakov

Creating a 2D Space Game for iOS Using SpriteKit - Part 1

Introduction I have never tried creating a game before; it feels like magic to me. I know that games have an enormous amount of underlying layers of abstractions and tools such as game engines, rendering, and so on. I have always been eager to learn at least 1% of the game creation process. In this article, I’m going to explore step-by-step instructions for creating a game for the iOS platform using SpriteKit....

June 28, 2024 · 2 min · Dmytro Chumakov

Testing push notifications locally in an iOS app

Introduction I always wondered how I could automate testing the push notification process. Even when Apple introduced the possibility of dragging a configured file to the simulator to display a notification, it is still a manual process. I’ll skip testing via the terminal because I think it takes more time than using an APNS file or the RocketSim app. Before I was first introduced to the RocketSim app, I used an APNS file for testing push notifications....

June 19, 2024 · 2 min · Dmytro Chumakov