Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Android mobile app works, iOS version fails - PhoneGap - Photo

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Android mobile app works, iOS version fails - PhoneGap - Photo

    I have an embedded UX that takes a photo, adds GPS and account data, and inserts into a SQL Server 2008 database.

    PhoneGap built at same time. OK, dif platforms, dif generated code, dif dif dif.

    Android - Works. iPhone6 - Fails.

    Both versions built with PhoneGap 3.6.3, and again with 3.7.0. Same result.

    Error hits with giant error message that goes off end of screen and will not scroll, just in case the clue is hiding off screen.

    See attached image. I'm probably going to Apple-Jail for using an Android to take a photo of an Apple.

    I've read the error report looking for clues how to work-around, but all I can deduce is this is Alpha code with intermixed :parameters and HTML code(???)

    Any clues where to begin debugging this? (I'll try changing things, but it is NOT a complicated embedded UX so not a lot to change around.)
    Attached Files
    Last edited by CarlMPearson; 04-03-2015, 05:45 PM.
    Carl ~ Dallas, TX
    I'm so old that pool balls came with Roman Numerals

    #2
    Re: Android mobile app works, iOS version fails - PhoneGap - Photo

    Originally posted by CarlMPearson View Post
    Any clues where to begin debugging this? (I'll try changing things, but it is NOT a complicated embedded UX so not a lot to change around.)
    You can enable error logging on the WAS server via Server settings tab Logging then the error details should be logged to one or more of the server error logs.
    https://appsbydesign.co.uk/

    Comment


      #3
      Re: Android mobile app works, iOS version fails - PhoneGap - Photo

      Attached are the log files for both an Android (works) test and Apple (fails) from the same embedded UX.

      The UX does a Cordova photo of 480x640 and a thumbnail of 1" max. The data is bound to a simple SQL table and inserted into an IMAGE column type.

      Not that the file sizes are quite different! The working Android log is 25.5k and the failing Apple log is 63.8k. My Max Post size on the server is 32meg, so that isn't an issue.

      The size difference bothers me but the size is certainly not extreme.


      Works with Android and fails with iOS-iPhone6.

      So far I don't see any clues in the logs that tell me how to work around this problem.

      The UPLOAD seems to work, the SUBMIT is where I get the failure.
      Attached Files
      Last edited by CarlMPearson; 04-04-2015, 06:55 PM.
      Carl ~ Dallas, TX
      I'm so old that pool balls came with Roman Numerals

      Comment


        #4
        Re: Android mobile app works, iOS version fails - PhoneGap - Photo

        Originally posted by CarlMPearson View Post
        So far I don't see any clues in the logs that tell me how to work around this problem.
        Not sure which logs you have uploaded but I would check A5XbasicErrorStackLog.txt and a5w_error.log initially.
        The arguments photo_useruuid and photo_meter_number look suspect.
        https://appsbydesign.co.uk/

        Comment


          #5
          Re: Android mobile app works, iOS version fails - PhoneGap - Photo

          Photo_UserUUID should be about 50 characters of letters/numbers/- and Photo_Meter_Number s/b about 15 digits.

          Same UX works on Android 4.4.2 and fails on iPhone6 with iOS 8.

          Will check on those logs.
          Carl ~ Dallas, TX
          I'm so old that pool balls came with Roman Numerals

          Comment


            #6
            Re: Android mobile app works, iOS version fails - PhoneGap - Photo

            I apologize if I'm way off base here, but in the photo, the SQL statement ... after VALUES ... looks like it is displaying parameters, NOT actual SQL code. Should the :variable be replaced with actual values?

            Comment


              #7
              Re: Android mobile app works, iOS version fails - PhoneGap - Photo

              My guess:

              This is code that is sent to AppServer, it is a hybrid of SQL and Alpha code because of its portable SQL and parameter trickery .

              The issue is that the identical embedded UX works for Android and fails on Apple. They are PhoneGap built at the same time.

              Is it a PhoneGap bug? An Alpha-builds-for-PhoneGap bug? Is there a work-around?

              The UX component is trivial and mimic's one of the videos about photo.

              There is not a lot of wiggle room in what I am doing, so there is not a lot of things to change.

              This might hold up a 100 mobile unit project and toss it back for another open bid process.

              As for that code, it is all generated by Alpha.
              Carl ~ Dallas, TX
              I'm so old that pool balls came with Roman Numerals

              Comment


                #8
                Re: Android mobile app works, iOS version fails - PhoneGap - Photo

                GOT IT!

                There is a control that Android leaves alone but Apple 'detects' as a phone number, and then decorates the field with html.

                Apple_Detector.PNG

                This enlarges the data beyond the size of the SQL table column, and SQL rightly rejects the insertion. See image.

                Not a PhoneGap issue, nor Alpha. But the challenge is to get Apple to NOT detect that a data field just might be a phone number or whatever type of data it might smell to be.

                Discovered it in the logs and validated it by enlarging the column field, temporarily, to 200 characters.

                PhoneGap's Config.xml has a feature to disable this detection.....

                <preference name="detect-data-types" value="false" />

                ... hope it works. Will know soon.................................

                BAD WORDS GO HERE. The XML setting does NOT deter Apple from deciding that my serial number is a phone number. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.


                The problem occurs in an embedded UX. Hopefully that doesn't somehow avoid the preference above which is used during the build of the main UX PhoneGap app.
                Last edited by CarlMPearson; 04-20-2015, 02:11 PM.
                Carl ~ Dallas, TX
                I'm so old that pool balls came with Roman Numerals

                Comment


                  #9
                  Re: Android mobile app works, iOS version fails - PhoneGap - Photo

                  This PhoneGap preference in Config.xml is ignored, thank you very much, Mister PhoneGap.

                  <preference name="detect-data-types" value="false" />

                  Inserting the following into the Index.html file will globally disable Apple's desire to turn my serial numbers into hyperlink phone numbers, thereby screwing up data linkage.

                  <meta name="format-detection" content="telephone=no">
                  <meta name="format-detection" content="email=no">

                  Disable_Data_Detect_Apple.PNG
                  Carl ~ Dallas, TX
                  I'm so old that pool balls came with Roman Numerals

                  Comment

                  Working...
                  X