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

Mobile app and Surface Pro

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

    Mobile app and Surface Pro

    Hi,

    I have a mobile app that I have developed on AA. I use Phonegap to build it for Android and iOS. The app works well on both devices.

    However, I have been asked if it will run on a Surface Pro. My initial response was yes as I can just point the browser to the app on the AA server and it should be fine.

    But there are two areas of concern. Firstly, the app makes use of lists and their offline capabilities. When the device goes offline, the app will store the data input by the user (which includes list data, form data, photos, etc) on the device, and when back online, a sync can be performed to sync the data to the server. Secondly, it makes use of the driver for the camera on the relevant OS (Android or iOS). I don't believe there is an equivalent Windows camera driver available integrated with AA.

    So is there a way to run this app on a Surface Pro with both the offline mode and direct photo capture? Any suggestions welcome.

    Cheers,
    Greg

    #2
    Re: Mobile app and Surface Pro

    Generally, the Surface Pro should be fine as long as you don't attempt to use any PhoneGap Build plugins (not drivers) while using the Surface Pro.

    If your List is persisting data to LocalStorage then you should be ok.

    You'll need to double check your image Actions to ensure they are using an HTML5 option for the Surface Pro.

    Comment


      #3
      Re: Mobile app and Surface Pro

      I'm still a little unsure. I assume I need to 'package' the app and 'install' it on the Surface Pro. How do I go about this?

      Greg

      Comment


        #4
        Re: Mobile app and Surface Pro

        You said you were going to run it as a web app through the browser on the Surface Pro. I wouldn't bother doing anything else. You'd have to check every plugin you're using to ensure it's been built for a Windows App. You think getting iOS and Android running an HTML5 app is tough... just try Windows... yikes.

        Comment


          #5
          Re: Mobile app and Surface Pro

          The issue is the offline mode. If I open the app in the browser when online, and then turn off the wifi, it seems that the app is cached in the browser and I can access all the panels.

          However, if I then close the browser and re-open it (with the wifi still off), it can't connect to the app and as the cache has been cleared, it can't be accessed.

          What I wanted was similar to the Android or iOS versions, whereby the app is packaged and installed on the device which can then be accessed offline. Is it possible?

          Greg

          Comment


            #6
            Re: Mobile app and Surface Pro

            You can try build for Windows under PhoneGap Build. This produces an appx file... UWP... Universal Windows Platform. You'll need to investigate specific needs for this type of build. Although Alpha includes the option to build for it, Alpha has not provided any supporting documentation.

            I tried a couple of months ago and it was pure frustration. Also, not all plugins support Windows, but List off-line options should work. I think it's a really interesting option and I feel more people would use it... if they knew about it... and if Alpha presented some kind of documentation to help create and then install a UWP app.

            The main problem I ran into was getting the app package signed with a trusted certificate... and then getting it installed. At each step... as I completed what was needed... I'd get a new install error.

            Comment


              #7
              Re: Mobile app and Surface Pro

              I was able to install the app by using this procedure to install a trusted certificate:
              1.Right click on APPX file
              2.Click Properties
              3.Click Digital Signatures
              4.Select Signature from the list
              5.Click Details
              6.Click View Certificate
              7.Click Install Certificate
              8. In the Store Location group, tap the radio button to change the selected option to Local Machine.
              Click Next. Tap OK to confirm the UAC dialog.
              9.In the next screen of the Certificate Import Wizard, change the selected option to Place all certificates in the following store.
              10.Tap the Browse button. In the Select Certificate Store pop-up window, scroll down and select Trusted People, and then tap OK.
              11.Tap the Next button; a new screen appears. Tap the Finish button.

              However, trying to run the app results in some windows errors (eg):
              Fault bucket , type 0
              Event Name: WWAJSE
              Response: Not available
              Cab Id: 0

              Problem signature:
              P1: GregCarmody.MobileEDC_0.0.1.0_x86__h35559jr9hy9m
              P2: MobileEDC
              P3: a35b
              P4: 3
              P5: ms-appx://gregcarmody.mobileedc/www/phonegap.js
              P6: 1831_1


              I'll try to disable the phonegap plugin and see if that helps.

              Greg

              Comment


                #8
                Re: Mobile app and Surface Pro

                I don't have the Digital Signatures tab. I had to go through the process of using SignTool.exe etc. and then still got errors. It was a mess.

                Comment


                  #9
                  Re: Mobile app and Surface Pro

                  Have got the app to run, just had to regenerate the phonegap asset files. However, the login is failing, not sure why. Currently trying to debug it.....

                  Comment


                    #10
                    Re: Mobile app and Surface Pro

                    Seems like there is no communication with the AA server? Not sure why....

                    Comment


                      #11
                      Re: Mobile app and Surface Pro

                      I'd try to help but I can't get past the certificate stuff.

                      Comment


                        #12
                        Re: Mobile app and Surface Pro

                        Tried running this in Visual Studio, and getting the following errors:

                        'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/3.0)'.
                        Exception was thrown at line 2, column 10459 in http://code.jquery.com/jquery-latest.min.js
                        0x800a139e - JavaScript runtime error: SyntaxError
                        Exception was thrown at line 2, column 10862 in http://code.jquery.com/jquery-latest.min.js
                        0x800a139e - JavaScript runtime error: SyntaxError
                        Exception was thrown at line 18069, column 5 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'controlType' of undefined or null reference
                        Exception was thrown at line 18069, column 5 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'controlType' of undefined or null reference

                        Also:

                        0x800a138f - JavaScript runtime error: Unable to get property 'allow' of undefined or null reference
                        Exception was thrown at line 13299, column 4 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'version' of undefined or null reference
                        Exception was thrown at line 21846, column 3 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'toUpperCase' of undefined or null reference
                        Exception was thrown at line 14461, column 4 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'getAppFileStorageDir' of undefined or null reference
                        Exception was thrown at line 1192, column 9 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1196, column 17 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1192, column 9 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1196, column 17 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1192, column 9 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1196, column 17 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1192, column 9 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 1196, column 17 in ms-appx-web://au.com.hymans.mobileedc/www/plugins/cordova-plugin-file/src/windows/FileProxy.js
                        0x80070002 - JavaScript runtime error: The system cannot find the file specified.
                        Exception was thrown at line 21846, column 3 in ms-appx-web://au.com.hymans.mobileedc/www/javascript/a5.js
                        0x800a138f - JavaScript runtime error: Unable to get property 'toUpperCase' of undefined or null reference
                        Exception was thrown at line 210, column 78 in https://maps.googleapis.com/maps/api...ck=A5.map.init
                        0x800a139e - JavaScript runtime error: [object Object]
                        Exception was thrown at line 210, column 78 in https://maps.googleapis.com/maps/api...ck=A5.map.init
                        0x800a139e - JavaScript runtime error: [object Object]

                        I tried all the various options in "Project Properties" under "JavaScript Libraries" but made no difference.

                        Not sure where to go from here?

                        Greg

                        Comment


                          #13
                          Re: Mobile app and Surface Pro

                          Davidk,

                          I found that if you include the line:

                          <preference name="windows-target-version" value="10.0" />

                          in your config.xml file, you will get the Digital Signatures tab in the properties of your appx file.

                          Cheers,
                          Greg

                          Comment


                            #14
                            Re: Mobile app and Surface Pro

                            Thanks Greg... I'll give that a try and report back.

                            Comment

                            Working...
                            X