launch_review icon indicating copy to clipboard operation
launch_review copied to clipboard

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel launch_review)

Open BohdanSamusko opened this issue 5 years ago • 9 comments

I always get the following exception on iOS device. Have no idea why this happens :( Could you please have a look?

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel launch_review) #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7) #1 LaunchReview.launch (package:launch_review/launch_review.dart:10:20) #2 _RateAppState.redirectToStore (package:note_to_email/screens/rate_app.dart:307:18) #3 _RateAppState.handleSubmitAction. (package:note_to_email/screens/rate_app.dart:280:15) #4 State.setState (package:flutter/src/widgets/framework.dart:1122:30) #5 _RateAppState.handleSubmitAction (package:note_to_email/screens/rate_app.dart:274:11) #6 _RateAppState.initState. (package:note_to_email/screens/rate_app.dart:73:9) #7 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:513:14) #8 _InkResponseState.build. (package:flutter/src/materi<…>

BohdanSamusko avatar Mar 28 '19 17:03 BohdanSamusko

I don't have an iOS device or an Mac. I am sorry I couldn't get you in this.

iOS support was added by our contributors. Hopefully someone will look on this.

Thanks,

Purusothaman Ramanujam

On Thu, Mar 28, 2019, 11:12 PM Bohdan Samusko [email protected] wrote:

I always get the following exception on iOS device. Have no idea why this happens :( Could you please have a look?

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel launch_review) #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)

#1 https://github.com/Purus/launch_review/pull/1 LaunchReview.launch (package:launch_review/launch_review.dart:10:20)

#2 https://github.com/Purus/launch_review/pull/2 _RateAppState.redirectToStore (package:note_to_email/screens/rate_app.dart:307:18) #3 https://github.com/Purus/launch_review/issues/3 _RateAppState.handleSubmitAction. (package:note_to_email/screens/rate_app.dart:280:15) #4 https://github.com/Purus/launch_review/issues/4 State.setState (package:flutter/src/widgets/framework.dart:1122:30) #5 https://github.com/Purus/launch_review/pull/5 _RateAppState.handleSubmitAction (package:note_to_email/screens/rate_app.dart:274:11) #6 https://github.com/Purus/launch_review/issues/6 _RateAppState.initState. (package:note_to_email/screens/rate_app.dart:73:9) #7 https://github.com/Purus/launch_review/pull/7 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:513:14) #8 https://github.com/Purus/launch_review/issues/8 _InkResponseState.build. (package:flutter/src/materi<…>

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Purus/launch_review/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBx5_gYAuLOrCUAatBLPk-KvYke2Vp-ks5vbPgagaJpZM4cQsI9 .

Purus avatar Mar 28 '19 18:03 Purus

Do you have cocoapods installed? Seems like the iOS library is missing. See https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices

KaYBlitZ avatar Mar 28 '19 19:03 KaYBlitZ

@KaYBlitZ Yes, I have installed cocoapods before.

So, for now, the situation is as following:

  1. lauch_review plugin doesn't work on iOS and the error is Unhandled Exception: MissingPluginException(No implementation found for method launch on channel launch_review).

  2. I decided to rewrite the plugin and create my own plugin to test it and in case of success compare to the current one and find what causes the issue.
    So I have developed my own plugin for launching review.

  3. When I run 'example' project of my plugin everything works fine and there are no exceptions. The 'example' project is a project which was created automatically during plugin creation.

  4. But, when I add my plugin to my project as a dependency I have got the same error 'Unhandled Exception' on iOS side as it was when I used lauch_review plugin.

  5. Supposing the issue is hidden in my project, I created a new flutter project just to test my own plugin and lauch_review plugin. And it is very strange but my plugin starts to work okay, but lauch_review plugin still throws 'Unhandled Exception' exception on iOS.

I am really confused and still try to understand what is happening and try to find where the pitfalls are.
The situation is like a real detective story))

BohdanSamusko avatar Mar 29 '19 11:03 BohdanSamusko

Not sure what is going. Does this comment apply to you? https://github.com/flutter/flutter/issues/24171#issuecomment-439667926 . Also does stopping the application first then doing a full rebuild & run fix it? I did some quick googling and people say that hot reload may cause this issue so a full stop and run may be necessary.

KaYBlitZ avatar Apr 01 '19 20:04 KaYBlitZ

I am getting same issue.

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel launch_review)

Issue at Android

shantiwebsolution avatar Jun 26 '19 19:06 shantiwebsolution

@shantiweb I also get this exception if I do LaunchReview.launch(); , but if I do specify my appId it works: LaunchReview.launch(androidAppId: "your.app.id");

MagnusJohansson avatar Feb 12 '20 21:02 MagnusJohansson

i'm getting the same problem, try :

  1. uninstall your apps
  2. run flutter clean

its works .

kharisazhar avatar May 15 '20 23:05 kharisazhar

i'm getting the same problem, try :

  1. uninstall your apps
  2. run flutter clean

its works .

DON'T DO THIS!!!! It is more likely to break the build forever than fix the issue :/

farooqalk avatar Mar 27 '21 04:03 farooqalk

i'm getting the same problem, try :

  1. uninstall your apps
  2. run flutter clean

its works .

Thanks works after clean :)

malzariey avatar Sep 21 '21 17:09 malzariey