[
https://issues.apache.org/jira/browse/CB-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Shillitto updated CB-3608:
-------------------------------
Description:
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:
http://cordova.apache.org/docs/en/2.6.0/guide_plugin-development_windows-phone_index.md.html#Developing%20a%20Plugin%20on%20Windows%20Phone
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.
Of course my code includes the correct using statements and Javascript click
handler etc.. but my Javascript runs without errors and C# code compiles and
runs fine until the cordova.exec is called in the JavaScript.
was:
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.
> 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:
> http://cordova.apache.org/docs/en/2.6.0/guide_plugin-development_windows-phone_index.md.html#Developing%20a%20Plugin%20on%20Windows%20Phone
> 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.
> Of course my code includes the correct using statements and Javascript click
> handler etc.. but my Javascript runs without errors and C# code compiles and
> runs fine until the cordova.exec is called in the JavaScript.
--
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