facebook

Sending Email (Coding) Not Working After IPA Install

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #334538 Reply

    mreade
    Member

    Support,

    While building my iOS app, i was using code similar to that in the snippet below. Everything was working properly within the MobiOne Test Center. To activate the code, i had placed a push button on a form. When the user pushes the button the code below would fire up the email client (in this case Outlook on my PC) and insert the information as outlined in the code snippet.

    Tonight, I finished creating my first iOS IPA file to test on my iPhone to work any lingering bugs. In doing so, I ran across the following problem….

    When testing the installed app on my iPhone, when I pushed the button to send the email, the email client on the iPhone fired up, and inserted the proper Subject, BUT, the body of the message only showed, “body” rather than the expected data that appeared in the Test Center.

    Please advise what might be causing this to happen.

    function sendFormMail(){
      
        //Declare variables
        var field1, msg, url;
        var mode = $('select[name="units"] :selected').val();
        var ansMPH;
        var LF;
      
        //Link variables to fields
        LF = "%0D%0A";
        field1 = ($('#m1-frmFormName-arg1Field').val());
      
        //Format message for email body
        if (mode == "imperial")
        {
        msg = ("FormName Formula:" + LF +
           LF +
           "Distance  =  " + field1.concat("  ft") + LF + 
           LF +
          "Speed Results:" + LF +
           LF +
           "Speed  =  " + ansMPH);
        }
        else
        {
        msg = ("FormName Formula:" + LF +
           LF +
           "Distance  =  " + field1.concat("  m") + LF + 
           LF +
          "Speed Results:" + LF +
           LF +
           "Speed  =  " + ansMPH);
        }  
        url = "mailto:" + "?subject=FormName Formula Results&body=" + msg;
    
        //Open mail client and insert body of email
        window.location.href = url;
      }

    The second problem i ran into was a MobiOne splash screen which popped up when i started the app. I did not attach any startup splash screen graphics when i created the IPA, but the MobiOne image still appeared. Any reason for this happening?

    Thanks in advance,

    mreade

Viewing 1 post (of 1 total)
Reply To: Sending Email (Coding) Not Working After IPA Install

You must be logged in to post in the forum log in