Alpha Video Training
Results 1 to 8 of 8

Thread: PhoneGap and mobile login

  1. #1
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default 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
    applauncher.PNG

    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?Attachment 42724
    Last edited by Rogers; 11-11-2016 at 10:41 AM.

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,573

    Default 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.

  3. #3
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Re: PhoneGap and mobile login

    Thanks for responding.
    I followed the instructions I found in this document http://downloads.alphasoftware.com/C...honegapdoc.pdf

    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?

  4. #4
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,573

    Default 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.

  5. #5
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default 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 Attached Files

  6. #6
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,573

    Default 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).

    https://www.ssbeservices.com:8080/SiteTracker

  7. #7
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Re: PhoneGap and mobile login

    I got it to work
    https://www.ssbeservices.net:8080/ was the url for the ajax callback .

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

  8. #8
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default 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?

Similar Threads

  1. Is this too much for mobile app without phonegap? Images
    By glenschild in forum Mobile & Browser Applications
    Replies: 5
    Last Post: 07-28-2016, 05:11 AM
  2. Mobile App Monetization with PhoneGap
    By jhackney in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 04-20-2016, 03:27 PM
  3. PhoneGap Issues with Mobile App
    By PevishaJ in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 10-06-2015, 08:53 PM
  4. Login - Mobile - PhoneGap - Video UX_V12--66
    By CarlMPearson in forum Mobile & Browser Applications
    Replies: 10
    Last Post: 11-07-2014, 03:00 PM
  5. Replies: 2
    Last Post: 05-08-2014, 06:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •