Canvas2ImagePlugin icon indicating copy to clipboard operation
Canvas2ImagePlugin copied to clipboard

Canvas2ImagePlugin does not exist on iOS

Open markarupert opened this issue 10 years ago • 6 comments

Thanks for the plugin. I got it to work fine on Android but it is not being recognized on iOS.

I installed it with this command: cordova plugin add https://github.com/devgeeks/Canvas2ImagePlugin.git

But I get this error. Is there a step I am missing? CDVPlugin class Canvas2ImagePlugin (pluginName: Canvas2ImagePlugin) does not exist.

Thanks, Mark

markarupert avatar Jul 06 '15 04:07 markarupert

That should do it.

Are you trying to call it before deviceready has fired?

devgeeks avatar Jul 06 '15 04:07 devgeeks

No, the app is fully initialized. I actually go to a second page and take a picture before I call it.

markarupert avatar Jul 06 '15 11:07 markarupert

This is a cordova bug. I made a video for this a while ago, it's quite easy to fix it. Just set the correct target memberships inside of xcode (only for .m files and all the files inside the framework)

https://www.youtube.com/watch?v=gr0QrEShPbQ

hirbod avatar Sep 13 '15 04:09 hirbod

Hirbod,

Thanks! I was able to get it working a while back. I can’t remember what exactly what did it but I updated the plugin and the Cordova version and everything seems good.

Mark

Mark A. Rupert, President - RGi

One of the worst things we can do in business is an excellent job at something that didn’t need to be done in the first place.


This electronic message transmission contains information from The Rupert Group, Inc. that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the "From:" field.

From: Hirbod [mailto:[email protected]] Sent: Sunday, September 13, 2015 12:04 AM To: devgeeks/Canvas2ImagePlugin [email protected] Cc: Mark [email protected] Subject: Re: [Canvas2ImagePlugin] Canvas2ImagePlugin does not exist on iOS (#53)

This is a cordova bug. I made a video for this a while ago, it's quite easy to fix it. Just set the correct target memberships inside of xcode (only for .m files and all the files inside the framework)

https://www.youtube.com/watch?v=gr0QrEShPbQ

— Reply to this email directly or view it on GitHub https://github.com/devgeeks/Canvas2ImagePlugin/issues/53#issuecomment-139843143 . https://github.com/notifications/beacon/ACmv2q3PgJiiJjs1vgZInnOmiWu5gsVCks5oxO1EgaJpZM4FSb1X.gif


This email has been checked for viruses by Avast antivirus software. http://www.avast.com

markarupert avatar Sep 14 '15 14:09 markarupert

@markarupert, what version did you upgrade to?

positlabs avatar Oct 13 '15 00:10 positlabs

My Cordova version is 5.0.0 and I am using the branch created by nicolasgrolleau at

https://github.com/nicolasgrolleau/Canvas2ImagePlugin

that will save the image to a file that I can upload to my server.

It is version 0.6.0

markarupert avatar Oct 13 '15 01:10 markarupert