As the title suggests , i wish to be able to send an email from within the game that i am developing using cocos2dx.
Can anyone help me on this …
I tried implementing using the MessageUI Framework but failed. If anyone has successfully done it then please share some advise on implementing it.
Thanks
i just tested it on device (iPhone 4s) and it works perfectly there!
so is it the case that the email functionality does not work on the simulator…somehow i doubt that
can you give me some advise about using MessageUI framework on cocos2dx games to send messages or e-mails ?
then i test this framework on my iphone4 but it works worse,the position of message view is wrong then in the cocos2d-x game.how you use this framework?
thanks a lot.
Rakshak Kalwani wrote:
i just tested it on device (iPhone 4s) and it works perfectly there!
so is it the case that the email functionality does not work on the simulator…somehow i doubt that
You can download an example that send e-mails, tweets, and facebook messages on iOS and Android using independent interfaces. If you need help after check it, ask here.
Thank you Pipero.
My problem is almost solved by the link you give.
The only problem is the position of the view in MessageUI.framework is incorrect and it can’t be adjusted.
Thank you Pipero.
My problem is almost solved by the link you give.
The only problem is the position of the view in MessageUI.framework is incorrect and it can’t be adjusted.
I think these few lines caused the error on iOS6, I could run it fine after commenting out them.
// If these three lines are commented, the mail dialogue window will be shown incorrectly (rotated 90º)
// CGAffineTransform rotate = CGAffineTransformMakeRotation(3.14/2);
// rotate = CGAffineTransformScale(rotate, 0.1, 0.8);
// [view setTransform:rotate];
You can also try email services provided by many cloud service providers like App42 from Shephertz. They provide separate SDK written for cocos2dx in c++. So you don’t have to go native to send emails.