Jeff Shillitto created CB-3608:
----------------------------------

             Summary: Custom plugins not working on Windows Phone 7
                 Key: CB-3608
                 URL: https://issues.apache.org/jira/browse/CB-3608
             Project: Apache Cordova
          Issue Type: Bug
          Components: WP7
    Affects Versions: 2.5.0
         Environment: Nokia Lumia 800, Emulator 7.1
            Reporter: Jeff Shillitto
            Assignee: Jesse MacFadyen


I am trying to develop a plugin along these lines to send an SMS message. It 
works on WP8 without problem but not on Windows Phone 7. I have followed the 
guide here as closely as possible and stripped the code back to it's most basic 
elements and it still does not work.

Here are the basics of my code:
Javascript:

cordova.exec(null, null, "SendSMS", "send", []);

Native C#:

namespace Cordova.Extension.Commands
{
    class SendSMS : BaseCommand
    {
        public void send(string options)
        {
            Debug.WriteLine("Hello Plugin");
        }
    }
}

I am getting errors:
A first chance exception of type 'System.MethodAccessException' occurred in 
mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in 
mscorlib.dll
Additional information: FormatException

As mentioned it all works fine in Windows Phone 8 but not in Windows Phone 7 so 
presuming it is some kind of bug.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to