Default fast app switch ON for LoginWithTrackingPreference Summary: The Unity iOS bridge initialized _fastAppSwitchEnabled = NO and always passed an explicit appSwitch into FBSDKLoginConfiguration, forcing .disabled unless the app opted in. This suppressed the native iOS SDK’s opt-out default (appSwitch = .enabled) and diverged from the legacy logInWithPermissions: path, which omits appSwitch, inherits the default, and is already fast-app-switch (FAS) on. This diff removes the divergence by defaulting _fastAppSwitchEnabled to YES. Scope: the flag gates loginWithTrackingPreference for both tracking modes (classic enabled and limited). The legacy LogInWithReadPermissions path already inherits the default, so it needs no change. RefreshLimitedLogin is unaffected – it is governed by RefreshFallbackPolicy. Android’s SetFastAppSwitchEnabled is a no-op and is left untouched. The bundled internal/samples/TrashDash copy of FBUnityInterface.mm still initializes to NO; it is a vendored sample snapshot refreshed separately, and is deliberately out of scope. Behavior change: eligible logins now app-switch to the Facebook app when the FB app is installed and the FAS GateKeeper is enabled, instead of using the web flow. Apps can still opt out via FB.Mobile.SetFastAppSwitchEnabled(false). Differential Revision: D119191567 fbshipit-source-id: 913f8d5f26c273117ff94eb0152a03e02356cf0c
Default fast app switch ON for LoginWithTrackingPreference
Summary: The Unity iOS bridge initialized _fastAppSwitchEnabled = NO and always passed an explicit appSwitch into FBSDKLoginConfiguration, forcing .disabled unless the app opted in. This suppressed the native iOS SDK’s opt-out default (appSwitch = .enabled) and diverged from the legacy logInWithPermissions: path, which omits appSwitch, inherits the default, and is already fast-app-switch (FAS) on. This diff removes the divergence by defaulting _fastAppSwitchEnabled to YES.
_fastAppSwitchEnabled = NO
appSwitch
FBSDKLoginConfiguration
.disabled
appSwitch = .enabled
logInWithPermissions:
_fastAppSwitchEnabled
YES
Scope: the flag gates loginWithTrackingPreference for both tracking modes (classic enabled and limited). The legacy LogInWithReadPermissions path already inherits the default, so it needs no change. RefreshLimitedLogin is unaffected – it is governed by RefreshFallbackPolicy. Android’s SetFastAppSwitchEnabled is a no-op and is left untouched. The bundled internal/samples/TrashDash copy of FBUnityInterface.mm still initializes to NO; it is a vendored sample snapshot refreshed separately, and is deliberately out of scope.
loginWithTrackingPreference
LogInWithReadPermissions
RefreshLimitedLogin
RefreshFallbackPolicy
SetFastAppSwitchEnabled
internal/samples/TrashDash
FBUnityInterface.mm
NO
Behavior change: eligible logins now app-switch to the Facebook app when the FB app is installed and the FAS GateKeeper is enabled, instead of using the web flow. Apps can still opt out via FB.Mobile.SetFastAppSwitchEnabled(false).
FB.Mobile.SetFastAppSwitchEnabled(false)
Differential Revision: D119191567
fbshipit-source-id: 913f8d5f26c273117ff94eb0152a03e02356cf0c
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号