iOS Question iOS "Sign In with Apple" iPhone Version About

Ertan

Active Member
Licensed User

Hello,

I had to use "Apple Login" because they asked me to add the "Sign In with Apple" feature to accept my app in the App Store. I also added. But I have a problem.

It says it will work with iOS 13+. I got a feedback from some of the users who used my app.

They say it needs to update to iOS 13. iPhone 5 & 6 does not support these versions.

(I am using login library with Firebase.)

Some apps in the App Store support up to iOS 11 and have Apple Login features.

How can we do that? If the users version is lower than 13, then let's cancel this feature.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Change the DesignerCreateView code to:
B4X:
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
    mBase = Base
    Dim NativeButton As NativeObject
    If Main.App.OSVersion < 13 Then
        mBase.RemoveViewFromParent
        Return
    End If
    btn = NativeButton.Initialize("ASAuthorizationAppleIDButton").RunMethod("new", Null)
    Dim no As NativeObject = Me
    no.RunMethod("SetButton:", Array(btn))
    mBase.AddView(btn, 0, 0, mBase.Width, mBase.Height)
    dele_gate = no.Initialize("AuthorizationDelegate").RunMethod("new", Null)
End Sub
Also set #MinVersion as needed.
I've tested it on the simulator. I haven't tested it on a real device running iOS 12-.
 
Upvote 0

Ertan

Active Member
Licensed User
I haven't tested it on a real device running iOS 12-.
Thanks for the return. I tried it on iOS 12.4 phone and it worked without any problems.

Thank you so much.

I have a question.
Apple not support iPhone Version < 13 ?
 
Last edited:
Upvote 0
Top