Closed Wiwo99 closed 1 year ago
@Wiwo99 this is not an issue of this plugin. By default flutter uses the MainActivity to register the all plugins in your app, so when you switch to another MainActivity you are lossing all your registered plugins. Maybe using an Aaplication class can help you.
OK thanks
What version are you using?
flutter_facebook_auth:5.0.6
What OS and version are you using to local deploy your application?
Android 10.0
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
Hello. I have set the icon change dynamically in my app. Icon switching is set with an activity-alias (as described in the Android documentation). After changing the icon, and then changing the activity, login with Facebook no longer works with error "Log in attempt failed: FacebookActivity could not be started. Please make sure you added FacebookActivity to the AndroidManifest". My AndroidManifest.xml is configured as per your documentation. Do you have any ideas? Thank you.
PS. The code I'm using right now is just a test project but partially replicating what's configured in my main project :)
Expected Behavior
I expect the activity to be found even when I am an activity-alias
To Reproduce
`Future _changeAppIcon() async {
if (await FlutterDynamicIcon.supportsAlternateIcons) {
const String crazyboy = 'crazyboy';
const String blackbladebarbershop = 'blackbladebarbershop';
await FlutterDynamicIcon.setAlternateIconName(crazyboy);
}
}
Future _loginWithFacebook() async {
final LoginResult result = await FacebookAuth.instance
.login(loginBehavior: LoginBehavior.nativeOnly);
}`
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
MainActivity.java
No response
MainActivity.kt
index.html
No response
Info.plist (macOS)
No response