Hi all,
I successfully implemented the Apple Sign in class,
The Apple native button is in english. and is not possible to change its color..
I was wondering if it would be possible to start the authorization process programmatically, in order to use a b4x customizable button.
can someone help?
A language of following Msgbox depends of IPhone language (Settings - General - Language & Region)
You can change text and background color (dark to light and reverse). For example, in Erel's sample add after btn = NativeButton.Initialize("ASAuthorizationAppleIDButton").RunMethod("new", Null)
B4X:
Dim nx As NativeObject = btn
nx.SetField ("style", 1)
You can place AppleAuthButton outside layout (let's say AppleAuthButton1.Left = -1000) and to add own button (for example,. SwiftButton). When user clicks this button, you can emulate button click for real AppleAuthButton:
B4X:
Dim nx As NativeObject = AppleAuthButton1.btn
nx.RunMethod ("sendActionsForControlEvents:", Array (64)) ' UIControlEventTouchUpInside
You can place AppleAuthButton outside layout (let's say AppleAuthButton1.Left = -1000) and to add own button (for example,. SwiftButton). When user clicks this button, you can emulate button click for real AppleAuthButton:
B4X:
Dim nx As NativeObject = AppleAuthButton1.btn
nx.RunMethod ("sendActionsForControlEvents:", Array (64)) ' UIControlEventTouchUpInside