iOS Tutorials

Location & GPS

The iLocation library allows you to get the current known location and to monitor location updates. You can also monitor the device heading direction.

As the location is considered a private...
 

Attachments

  • LocationExample.zip
    3.5 KB · Views: 2,295
Last edited:

Local Mac Builder Installation

Edit: Apple Configurator 2 must be used when using a local Mac:
iOS compilation...
 
Last edited:

Background location tracking

iLocation library allows you to track the device location when your app is in the foreground.

Using the code posted in this tutorial you can mark your app as a special kind of app that requires...
 

Attachments

  • BackgroundLocation.zip
    2.6 KB · Views: 819
Last edited:

FirebaseNotifications / Push Messages (server not required)

Attachments

  • SendingTool.zip
    1 KB · Views: 2,144
Last edited:

Get screenshots for all iPhone devices for free and easily for use in AppStore

Hi every one,

Here is an easy usage guide for creating screenshots for AppStore Presence.

1) From b4i version 5.80 while working with the Hosted Builder there is the option Build Simulator...
 
Last edited:

Load HTML to Label

(Here is the Android version)
This is how you can set HTML data to Label,

B4X:
Public Sub SetHTML(l As Label, htmlString As String)
    Dim NaObj As NativeObject = Me...
 
Last edited:

Custom Dialogs with iCustomDialog library

Attachments

  • CustomDialogExample.zip
    3.7 KB · Views: 1,394
Last edited:

Geofence - Monitoring a region

This example extends iLocation library to allow monitoring regions in the background.

The code is pretty simple. You first need to create a circular region which you want to track and then call...
 

Attachments

  • Geofence.zip
    169.6 KB · Views: 844
Last edited:

Send Push Notification with OneSignal

Hi there,


In this tutorial I use onesignal rest api and send device token to onesignal and store it

1. Register in onesignal.com and create an application

2. Export .p12 file from certificate...
 

Attachments

  • onesignal.bas
    991 bytes · Views: 693

Publishing your app to the App Store

This tutorial explains the steps required to create a store ready ipa file.

1. The first step is to uninstall your app from the device and install it again in Release mode (Tools - Build Server -...
 
Last edited:

DeviceCheck - uniquely identify iOS device

Hi,

in this tutorial (intended for advanced B4i user) I want to demonstrate how you can use the DeviceCheck framework (introduced with iOS 11) in order to uniquely identify an iOS device. I...
 

Attachments

  • DC_ServerExample.zip
    418.2 KB · Views: 568
  • JWT.jar
    442.4 KB · Views: 465
  • DeviceCheckServer.bas
    3.4 KB · Views: 481
  • DC_AppExample.zip
    2 KB · Views: 480
  • DeviceCheck.bas
    1.3 KB · Views: 489

Notifications with actions

SS-2018-12-20_16.03.33.png


It is possible to add a list of actions to the push notifications. The list becomes visible when the user 3d touches the...
 

Firebase Integration

B4i v2.80 adds support for Firebase backend: https://firebase.google.com

The libraries are mostly the same as the B4A Firebase libraries.

Configuration

1. Create an iOS application...
 
Last edited:

Swift libraries

B4i supports libraries written in Swift and compiled as frameworks.
Note that adding swift frameworks makes the compilation process considerably more complicated and it is recommended to avoid...
 
Last edited:

BarButton icons

Attachments

  • FontAwesome.zip
    168.9 KB · Views: 1,468

Installing B4i-Bridge and debugging first app

B4i-Bridge is an application that you install on the device.
It has three purposes:
1. Launch the installation process when needed. This step is done with Apple Configurator 2 if using a local...
 
Last edited:

[B4X] CustomListView with multiple ImageSliders

Attachments

  • SlidersList.zip
    27 KB · Views: 1,125

Textchanged difference between B4a and B4i

All,

I found an interesting difference between the textchanged event in B4a and B4i.

In B4a, EditText1_TextChanged will fire whenever the text is changed whether by User or in code

In B4i...
 

VideoPlayer - Replaces VideoView

iUI8 library v1.50 includes a new VideoPlayer view. It replaces VideoView from iMedia library.

Apple has deprecated the API that VideoView was based on. VideoPlayer is based on the newer...
 

Attachments

  • VideoPlayerExample.zip
    2.2 KB · Views: 1,193
Last edited:

Location Services Blue Bar

If you've used Location services on iOS you might have noticed that there's a blue bar showing when the app is in the background and using the GPS:

upload_2018-7-12_22-1-41.png



I noticed my app doesn't show...
 
Top