Skip to content
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

LaunchReview Error on notification click #53

Open
tovidd opened this issue Sep 14, 2022 · 0 comments
Open

LaunchReview Error on notification click #53

tovidd opened this issue Sep 14, 2022 · 0 comments

Comments

@tovidd
Copy link

tovidd commented Sep 14, 2022

Error when LaunchReview.launch on notification clicked. Occured on both background & foreground push notifications.

launch_review: ^3.0.1
Flutter 2.8.1

E/MethodChannel#launch_review(17220): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
E/MethodChannel#launch_review(17220): 	at com.iyaffle.launchreview.LaunchReviewPlugin.onMethodCall(LaunchReviewPlugin.java:59)
E/MethodChannel#launch_review(17220): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#launch_review(17220): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/MethodChannel#launch_review(17220): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/MethodChannel#launch_review(17220): 	at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$R4HPk6oFVb-i-YR_PN9YE6kqx1I.run(Unknown Source:12)
E/MethodChannel#launch_review(17220): 	at android.os.Handler.handleCallback(Handler.java:938)
E/MethodChannel#launch_review(17220): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#launch_review(17220): 	at android.os.Looper.loopOnce(Looper.java:201)
E/MethodChannel#launch_review(17220): 	at android.os.Looper.loop(Looper.java:288)
E/MethodChannel#launch_review(17220): 	at android.app.ActivityThread.main(ActivityThread.java:7839)
E/MethodChannel#launch_review(17220): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#launch_review(17220): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/MethodChannel#launch_review(17220): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/flutter (17220): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
E/flutter (17220): 	at com.iyaffle.launchreview.LaunchReviewPlugin.onMethodCall(LaunchReviewPlugin.java:59)
E/flutter (17220): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/flutter (17220): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:178)
E/flutter (17220): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$handleMessageFromDart$0$DartMessenger(DartMessenger.java:206)
E/flutter (17220): 	at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$R4HPk6oFVb-i-YR_PN9YE6kqx1I.run(Unknown Source:12)
E/flutter (17220): 	at android.os.Handler.handleCallback(Handler.java:938)
E/flutter (17220): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (17220): 	at android.os.Looper.loopOnce(Looper.java:201)
E/flutter (17220): 	at android.os.Looper.loop(Looper.java:288)
E/flutter (17220): 	at android.app.ActivityThread.main(ActivityThread.java:7839)
E/flutter (17220): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (17220): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter (17220): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/flutter (17220): )
E/flutter (17220): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter (17220): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter (17220): <asynchronous suspension>
E/flutter (17220): #2      LaunchReview.launch (package:launch_review/launch_review.dart:14:5)
E/flutter (17220): <asynchronous suspension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant