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



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

PhoneGap and mobile login

  • Filter
  • Time
  • Show
Clear All
new posts

    PhoneGap and mobile login

    I am trying to build a mobile application that requires a login.
    I did the following steps:

    1. created my login component

    2. created an applauncher component

    3. created a login.a5w page with my applauncher component
    login a5w page.PNG

    4. Set my phonegap ajaxcallback
    Phone gap Settings.PNG

    Below are the settings I used for PhoneGap:
    alpha application sever
    Alpha Anywhere Server settings.PNG

    Web Project Profile Setting
    Web Project Profile.PNG

    The application works fine on a desktop but I cannot get past the login screen on a mobile after creating the apk using phonegap.
    Am I missing a step?
    Last edited by Rogers; 11-11-2016, 11:41 AM.

    Re: PhoneGap and mobile login

    Rogers, utilizing PhoneGap Build you do not need, or want, any other login component or app launcher process or .a5w page. You only want what is built into the UX Component.

    In the UX Component, within Properties, there is a property section named Login. You'll find Has integrated login functionality here. Turn this on.

    There are some excellent UX Templates available when creating a new UX. PhoneGap - Secure Login with Location Tracking... and SecurityFramework-LoginComponentMobileApp

    Have a look at these to get an idea of what you need to do.

    As for the Alpha PhoneGap Build Builder property URL For All Ajax Callbacks... there is a link in this dialog named Help understand more about this property. The URL must be fully formed. I'm not sure if your screen shot example assumed this format. If you'd entered http://myipaddress/AlphaAnywhere as an example I would have been more comfortable that you were sure what the format was.

    Your use of AlphaAnywhere in the URL is a little odd. This folder should really be a bit more representative of your app... you app name... rather than just AlphaAnywhere... but that's up to you... just an opinion.


      Re: PhoneGap and mobile login

      Thanks for responding.
      I followed the instructions I found in this document

      In particular
      phonegap documentation.PNG

      My url for my ajax callback is the server's ipaddress followed by publishing folder of the project (*I agree, I renamed the project folder).
      as in the example in the alpha phonegap doc. The url for my ajax callback (https://www.ssbeservices:8080/SiteTracker). I tried using both the ip address and the url.

      My login component has the integrated login functionality turned on, I used the applauncher component because
      I read somewhere on the board that it allows the app to be opened on several different devices. :
      my login component.PNG

      Should the ip address for the server be the external or internal ip address?


        Re: PhoneGap and mobile login

        Hi Rogers,

        The images in your last post aren't showing.

        Your url looks good now.

        The documentation you refer to is excellent and exhaustive. The doc 2 years old and so there have been a lot of enhancements to the Alpha PhoneGap Build Builder... but still it's excellent doc.

        Your PhoneGap Build app will install as a native install only on the platforms supported by PhoneGap Build... which are currently iOS, Android, and Windows Phone. You'll design your app to work best on the device sizes you choose. Depending on your app you may be able to design for a phone and have it size well for a tablet. Going the other way is a bit tougher.

        Whatever ip address you need to reach your server is what you need to use. If your Alpha Server is running on the default port (80) then you do not need to supply that. https://www.ssbeservices/sitetracker or https://111.222.333.444/sitetracker will both function.

        So... once again... no .a5w page and no AppLauncher. The AppLauncher is for web apps running via a browser on any device. You can detect the device in the AppLauncher and use settings accordingly. You can't, don't need, or want to use the AppLauncher for a PhoneGap Build app.


          Re: PhoneGap and mobile login

          I am doing a test using a component I downloaded from the forum. It tests whether or not the ajax callback failed.

          I am getting an alert saying that the ajax call back failed.

          Based on the document I was following, everything looks okay to me.
          My project folder is outside of the document webroot-------(D:\A5Webroot\SiteTracker) and my url for the ajax callback in phonegap is https://www.ssbeservices:8080/SiteTracker but yet when I run the component testpg.a5wcmp I get the Ajaxcallback failed alert
          Attached Files


            Re: PhoneGap and mobile login

            Have you set the Component Security (right click on the Component) to Always Allowed?
            Have you published your Component?

            And... sorry I missed this... your url is wrong. You're missing .com (or whatever).



              Re: PhoneGap and mobile login

              I got it to work
     was the url for the ajax callback .

              I am now able to login.
              Thanks so much for your patience and help.


                Re: PhoneGap and mobile login

                I had the login functionality working until recently but it it's not working now.
                The last thing I did was to sign my app so it no longer says debugger but release in order to upload it to the
                app store.

                When I try to login to my app nothing happens (no error messages or anything).
                I tested the app using a component that tests for ajax callback and realized that the ajax callback is failing.

                This is strange because I didn't change the location of my published files or any setting on the application server.
                My app is deployed using cl-6.3.0 and I am using version 3922 build 4757 but phonegap is recommending I use cl-6.5.0.

                I am not sure if the problem is within my phonegap settings or I would need to update my build. Has anyone come across the issue?