-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int android.content.Intent.getFlags() #255
Comments
Facing the same issue after updating the plugin to v7.0.0 |
@RodrigoSMarques |
The problem may be related to using FlutterFragmentActivity. I'll investigate. |
@mueksh-b thank you for looking deep |
Hi @HarshNT and @mueksh-b The cause of the problem is the use of FlutterFragmentActivity. It has no relation to the language (Java or Kotlin). I found the solution and I'm doing final tests. The plugin will work with FlutterActivity or FlutterFragmentActivity. I will release a new version in the next few days. |
facing the same issue, waiting for fix thanks |
…nt.Intent.getFlags()' on a null object reference` when using FlutterFragmentActivity Fix issue #255: `Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference` when using FlutterFragmentActivity
Resolved in version 7.0.1 |
@RodrigoSMarques Thanks |
Error Logs
E/MethodChannel#flutter_branch_sdk/message( 8335): Failed to handle method call
E/MethodChannel#flutter_branch_sdk/message( 8335): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.app.ContextImpl.startActivity(ContextImpl.java:1122)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.app.ContextImpl.startActivity(ContextImpl.java:1103)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.content.ContextWrapper.startActivity(ContextWrapper.java:436)
E/MethodChannel#flutter_branch_sdk/message( 8335): at br.com.rsmarques.flutter_branch_sdk.FlutterBranchSdkPlugin.setupBranch(FlutterBranchSdkPlugin.java:447)
E/MethodChannel#flutter_branch_sdk/message( 8335): at br.com.rsmarques.flutter_branch_sdk.FlutterBranchSdkPlugin.onMethodCall(FlutterBranchSdkPlugin.java:252)
E/MethodChannel#flutter_branch_sdk/message( 8335): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/MethodChannel#flutter_branch_sdk/message( 8335): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#flutter_branch_sdk/message( 8335): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/MethodChannel#flutter_branch_sdk/message( 8335): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.os.Handler.handleCallback(Handler.java:958)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.os.Looper.loopOnce(Looper.java:205)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.os.Looper.loop(Looper.java:294)
E/MethodChannel#flutter_branch_sdk/message( 8335): at android.app.ActivityThread.main(ActivityThread.java:8177)
E/MethodChannel#flutter_branch_sdk/message( 8335): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter_branch_sdk/message( 8335): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/MethodChannel#flutter_branch_sdk/message( 8335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
flutter_branch_sdk: ^7.0.0
Android 13
Error occure when i use this await FlutterBranchSdk.init(
useTestKey: false, enableLogging: false, disableTracking: false); in main.dart.
The text was updated successfully, but these errors were encountered: