Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 41    Views: 105

BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
12/04/13 08:16 PM (11 years ago)

sendEmail Action Not Working in BT 3.0

The Send Email button on my Menu Buttons screen is not working. When I press it, nothing happens. I have tried deleting the Send Email screen and adding a new one, but the problem continues. Any advice?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/04/13 09:05 PM (11 years ago)
Was it an existing screen or is it a new screen? ios or android? If its ios and a new screen on BT 3.0, it may be just a plugin issue with compatibility with the new 3.0 core. Dave
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
12/05/13 12:20 AM (11 years ago)
also send email plugin does not work on emulator but only on device(android)
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 10:23 AM (11 years ago)
It's on iOS. It was an existing screen, and it is on BT 3.0, but I deleted and started with fresh screen, which did not help.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 10:33 AM (11 years ago)
are you testing on a live device or the simulator?
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 10:42 AM (11 years ago)
I've tried both
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 10:44 AM (11 years ago)
i just made up a test app and included the send email plugin. It seems to be working in my simulator. Version 3.0. It opens the native email app Dave
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 10:56 AM (11 years ago)
I will download everything fresh and see if that solves it. If there a specific folder or file that I can just drag out of the fresh package?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 04:24 PM (11 years ago)
you have to drag out the plugins folder and drop it into your buzztouch project
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 06:57 PM (11 years ago)
I tried dragging the entire plugin folder over, and that didn't work. Then I used the entire newly downloaded package, and the Send Email button from my Menu Buttons screen still does not launch an email. I also tried putting in a button for Share via Email just to test it, and that doesn't work either. Did you try to use the Send Email plugin from a Menu Buttons screen?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 07:06 PM (11 years ago)
Which menu plugin are you using?
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 07:07 PM (11 years ago)
Menu Buttons, but I've tried all menus at this point.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 07:20 PM (11 years ago)
Hmmm. Just don't know. Try creating a test app from scratch with just the menu and one button for the email. Otherwise I'm not sure what the problem is. Sorry Dave
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/05/13 07:21 PM (11 years ago)
Do you have a BT_sendEmail file in your plugins folder? I don't think there was one even when the email button was working. This is the last snag I have to fix before I am ready to submit my update. Does anyone else know why the email button isn't working? Where else can I look? Thanks for the assistance.
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/05/13 07:32 PM (11 years ago)
No but when I run the simulator then hit refresh, I tap the email button and it launches the. Stove ios email on the simulator
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/06/13 10:14 AM (11 years ago)
Does someone know what controls this function? Perhaps it is something in Xcode that I've messed up? I will have to submit my app without this, and I really don't want to do that.
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/07/13 10:51 AM (11 years ago)
ok, i tried a whole new blank application that i created with only a Send Email plugin button. It still does NOTHING on either the simulator or my iPhone 5s. What does this mean? Something in my Xcode?
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/07/13 12:22 PM (11 years ago)
Are you using Xcode 5.0.2 ?
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/07/13 01:16 PM (11 years ago)
I updated to 5.0.2 yesterday morning. I have now created a new partition on my Mac, installed Xcode fresh, and the Send Email function is still not working.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/07/13 05:47 PM (11 years ago)
Yep I had the same issue but only with the mosaic plugin so far. And that's being rewritten to serve its own email share function soon
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/07/13 06:38 PM (11 years ago)
Just posted another forum post titled Can anyone help? I included a link to this post. Subscribe to it and we'll learn together;-) Dave
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/07/13 07:14 PM (11 years ago)
I just downloaded a new project with the menu buttons plugin and the send email plugin, with a button pointing to the send email screen. It worked perfectly. Note that there is not a plugin folder for "send email". Instead, it is a core Buzztouch method in the BT_viewController.m file. The method name is "sendEmailWithScreenData". What does your debug console show?
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/07/13 07:46 PM (11 years ago)
2013-12-07 20:42:38.641 appname[1699:70b] BT_fileManager: File does exist in Xcode bundle: "FAQ.png" 2013-12-07 20:42:38.642 appname[1699:70b] BT_button_view: Image for button exists in bundle - not downloading. 2013-12-07 20:42:38.644 appname[1699:70b] BT_fileManager: File does exist in Xcode bundle: "twitter-bird-light-bgs.png" 2013-12-07 20:42:38.645 appname[1699:70b] BT_button_view: Image for button exists in bundle - not downloading. 2013-12-07 20:42:38.647 appname[1699:70b] BT_fileManager: File does exist in Xcode bundle: "emailus.png" 2013-12-07 20:42:38.647 appname[1699:70b] BT_button_view: Image for button exists in bundle - not downloading. 2013-12-07 20:42:39.622 appname[1699:70b] BT_screen_menuButtons: menuItemTap 2013-12-07 20:42:39.824 appname[1699:70b] BT_application: getScreenDataByItemId 397E8AA03066B66DC42E4C5 2013-12-07 20:42:39.825 appname[1699:70b] BT_application: screenType is BT_sendEmail for screen with nickname: "EmailUs" and itemId: 397E8AA03066B66DC42E4C5 2013-12-07 20:42:39.825 appname[1699:70b] BT_screen_menuButtons: handleTapToLoadScreen (super) loading nickname: "EmailUs" itemId: 397E8AA03066B66DC42E4C5 itemType: BT_sendEmail 2013-12-07 20:42:39.826 appname[1699:70b] BT_screen_menuButtons: sendEmailWithScreenData (super) nickname: "EmailUs" itemId: 397E8AA03066B66DC42E4C5 itemType: BT_sendEmail 2013-12-07 20:42:39.830 appname[1699:70b] BT_viewUtilities: getNavBarBackgroundColorForScreen: Screen "EmailUs" color: #99CC00
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/07/13 07:54 PM (11 years ago)
well, the method is being called, which is good. Strange that it's not showing the email compose sheet. Can you send me your project folder via Dropbox? [email protected]
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/07/13 09:05 PM (11 years ago)
Okay - so the issue is with tabbed apps. If you try this without the tabs, you should see it works fine. The problem is the way it is presented - it's using some old code that needs to be updated. If you look at the BT_viewController.m file, somewhere around line 1258, you'll see this line: [theViewController.navigationController presentModalViewController:picker animated:YES]; Replace that line with this one: [theViewController presentViewController:picker animated:YES completion:nil]; I'll email David Book to alert him.
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/07/13 09:14 PM (11 years ago)
Thanks! That allows the email compose window to come up, but now it will not go away with cancel > delete draft. Also, If you press send, the email stays there but the email does actually send.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/07/13 09:43 PM (11 years ago)
okay, just before that line, add this: picker.mailComposeDelegate = self;
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
12/08/13 06:04 AM (11 years ago)
Nice Chris. Thanks
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/08/13 10:37 AM (11 years ago)
Thanks Chris!
 
BranX26
Apple Fan
Profile
Posts: 58
Reg: Feb 07, 2012
Minnesota
580
like
12/09/13 06:48 AM (11 years ago)
Thanks very much!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/13/13 08:02 AM (11 years ago)
@Chris1 will this be added to the core when we download soon. I guess I should add it to Stobes bug list?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/13/13 08:06 AM (11 years ago)
It will, yes. David is aware.
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
12/19/13 11:50 AM (11 years ago)
Has this plugin been fixed yet for BT Hosted? I'm also having issues with the send SMS plugin. Curious if this is related? -MJM
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
12/19/13 11:56 AM (11 years ago)
oops
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
12/20/13 06:00 AM (11 years ago)
It hasn't been fixed yet. I'm self hosted to and we have to edit until the Core is updated again.
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
12/20/13 08:50 AM (11 years ago)
oops
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
12/20/13 12:40 PM (11 years ago)
Does anyone have any thoughts on how to get the send sms plugin working on iOS 3.0? Thank you. -MJM
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/05/14 06:21 PM (11 years ago)
Chris, I added the code and works in the IOS emulator but on my App thats in the store, when I click on it, the email does nothing. Does not bring up the email screen. LA
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
01/10/14 10:44 AM (11 years ago)
@chris1 do you have any idea how to fix the sms plugin? On ios it does not launch the messages app, similar to the way the email plugin would not launch the mail app. The plugin works fine for android. Anyone else have any other thoughts? Thank you. -MJM
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/10/14 11:02 AM (11 years ago)
This will be fixed in next update to the core. The fix is similar to sendEmail, but in the method related to SMS messages. Same file.
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
01/10/14 11:25 AM (11 years ago)
Ok great. You were kind enough to share code on the sendEmail fix, do you have a minute to share code again on the sendsms function? Thank you! -MJM
 
mjmccreary
I hate code!
Profile
Posts: 50
Reg: Apr 17, 2012
Chicago
5,000
like
01/10/14 04:38 PM (11 years ago)
@chris1 - I made the same changes you described above under the "show it" settings for messaging and it fixes the send sms plugin! Thank you all for your thoughts. This community is great. Many thanks. -MJM
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.