Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Cannot call Segment.disable (Android) #10

Closed
fdietze opened this issue Mar 19, 2020 · 6 comments · Fixed by #12
Closed

Cannot call Segment.disable (Android) #10

fdietze opened this issue Mar 19, 2020 · 6 comments · Fixed by #12
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@fdietze
Copy link

fdietze commented Mar 19, 2020

On Android, when I want to disable segment, I get the following error:

E/flutter ( 8834): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method disable on channel flutter_segment)
E/flutter ( 8834): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
E/flutter ( 8834): <asynchronous suspension>
E/flutter ( 8834): #1      SegmentMethodChannel.disable (package:flutter_segment/src/segment_method_channel.dart:101:22)
E/flutter ( 8834): #2      Segment.disable (package:flutter_segment/src/segment.dart:77:21)

Tracking an event from the same code position works fine.

@MaiKaY
Copy link
Contributor

MaiKaY commented Mar 25, 2020

Hi @fdietze,
could you please try it with the latest version (2.0.1)

@fdietze
Copy link
Author

fdietze commented Mar 25, 2020

Just tried it. Same error...
I can also try versions from a branch if that makes testing easier.

Thanks for your help!

@MaiKaY MaiKaY added enhancement New feature or request help wanted Extra attention is needed labels Mar 25, 2020
@MaiKaY
Copy link
Contributor

MaiKaY commented Mar 25, 2020

My mistake. This method isn't implemented for Android (here) yet. I adjusted the documentation for that.

@vinicius-animo Do you have time to implement the missing methods?

  • disable
  • enable
  • debug

@MaiKaY
Copy link
Contributor

MaiKaY commented Apr 3, 2020

Hi @fdietze,
could you please try it again with 2.0.2?

@fdietze
Copy link
Author

fdietze commented Apr 6, 2020

Thank you, it's working! 👍

As far as I understand, it should work now for android and iOS. Is that correct?

@MaiKaY
Copy link
Contributor

MaiKaY commented Apr 7, 2020

Yeah. That's correct!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants