Purus / launch_review

A Flutter plugin to assist in leaving user reviews/ratings in the Google Play Store. Supports both Android and iOS.
https://pub.dartlang.org/packages/launch_review
MIT License
180 stars 122 forks source link

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

Open BohdanSamusko opened 5 years ago

BohdanSamusko commented 5 years ago

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<…>
Purus commented 5 years ago

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 notifications@github.com 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 .

KaYBlitZ commented 5 years ago

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

BohdanSamusko commented 5 years ago

@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))

KaYBlitZ commented 5 years ago

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.

shantiwebsolution commented 5 years ago

I am getting same issue.

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

Issue at Android

MagnusJohansson commented 4 years ago

@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");

kharisazhar commented 4 years ago

i'm getting the same problem, try :

  1. uninstall your apps
  2. run flutter clean

its works .

farooqalk commented 3 years ago

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 :/

malzariey commented 2 years ago

i'm getting the same problem, try :

  1. uninstall your apps
  2. run flutter clean

its works .

Thanks works after clean :)