iOS Question B4A->B4I implementation

Zak Petr

Member
Licensed User
I am implementing B4A project to B4I and I have 3 questions.

1. How to get information about permissions in B4I.
I have used RuntimePermission library in B4A. Is there an alternative for B4I?

2. How to check internet connection?
I have used phone object like this example
B4X:
   Dim p As Phone
    
    If (p.GetDataState == "CONNECTED") Then
        Return True
    End If
       
    If (p.GetSettings ("wifi_on") == 1) Then
        Return True
    End If
But object Phone in B4I does not include this (variables/method).

3. Is there some alternative for SimCard object in B4I? I need to get information like:

GetSimSerialNumber
GetSubscriberId
GetSimOperator
GetSimOperatorName
GetPhoneType


Thank you for your answers.
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

1. Permissions are handled internally in iOS. If the feature requires permissions or authorization then the library will provide the required API.

2. This is not the correct way to check for internet in B4A. The correct way is to make the request and if it fails tell the user that there is no network connection.

3. Most or all of these parameters are not exposed in iOS.
 
Upvote 0
Top