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

MissingPluginException(No implementation found for method send on channel Send SMS ) #140

Closed
Kumuda123 opened this issue Jul 31, 2018 · 3 comments

Comments

@Kumuda123
Copy link

Kumuda123 commented Jul 31, 2018

MissingPluginException(No implementation found for method send on channel Send SMS )
In flutter/flutter#10912 - I tried doing everything but the error is still there.

  1. Im running my app on iOS
    2.I tried using flutter run. Same error
    3.Yes it does
    4.Yes it contains
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter/services.dart';
//import 'package:sms/contact.dart';
import 'login_page.dart';
class SendSMS extends StatefulWidget{
  _SendSMS createState() => new _SendSMS();
}
class _SendSMS extends State<SendSMS>{
  @override
  static const platform = const MethodChannel('Send SMS ');
  Future<Null> send()async {
    print("SendSMS");
    try {
      final String result = await platform.invokeMethod('send',<String,dynamic>{"msg":"Hello! I'm sent programatically."});
    } on PlatformException catch (e) {
      print(e.toString());
    }
  }
  Widget build(BuildContext context) {
    // TODO: implement build

    return new Material(
      child : new Container(
        alignment: Alignment.center,
        child : new FlatButton(onPressed: send, child: new Text('send SMS '))
      ),
    );
  }
}
@lejard-h
Copy link
Collaborator

lejard-h commented Aug 1, 2018

it seems that you are on the wrong repository

@lejard-h lejard-h closed this as completed Aug 1, 2018
@PiKumuda
Copy link

PiKumuda commented Aug 1, 2018

What do you mean by that ?

@Sreejith93
Copy link

same error.what is the solution

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

4 participants