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

Debug Restoring From Local Storage Loop in PhoneGap App

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

    Debug Restoring From Local Storage Loop in PhoneGap App

    So I thoroughly tested a phonegap app on 4 different devices without any issues and then all the sudden my app started freezing on the login screen after a user removed it from running in the background and then tried to open the app back up. I thought maybe some cached data from an old version of the app was causing the issue so I started messing with the version numbers of the lists and the component and even changed the name of the stored data thinking that might be it. The only thing that seems to fix the issue is if I turn off restoring the data from the lists, the variables will restore and the user will be able to get back into the app but then I have to refresh the list data which if they don't have a strong connection can really delay their use of the app.

    After figuring out the list restore was the issue I put an alert message in the client side OnRestoreFromLocalStorage event and the alert just kept firing as if the component kept trying to restore the data from storage but couldn't.

    Not sure if there is a way to debug the app once it is wrapped in phonegap but any information on how to do this would be great as I really need to figure out what is happening rather than just turning off list restore.

    #2
    Re: Debug Restoring From Local Storage Loop in PhoneGap App

    The easiest way is to use Chrome under Windows to debug. Turn on the Developer Mode for your device - you'll have to look that one up - sometimes it's different for various devices. Generally it's something about tapping the Build Number under About a number of times. Once turned on, plugged your device into your PC. You may get asked to approve something.

    On your PC, in Chrome... type chrome://inspect/#devices

    Now open your app on your device. You should see an index page link appear. Click that link and your App page will be displayed in Chrome.

    There are a bucket of walk-throughs for all this on the web... youtube.

    Comment


      #3
      Re: Debug Restoring From Local Storage Loop in PhoneGap App

      I can get the web app version to come up on my Mac running chrome but I can't get my app to come up. Do I need to add a plugin for this to work? Or is the ability to debug actual phonegap apps only possible on a PC?

      Comment


        #4
        Re: Debug Restoring From Local Storage Loop in PhoneGap App

        I installed everything I needed in order to remote debug an iOS device and the device also wouldn't show up in chrome which tells me there is something seriously wrong with the app (when I use the alert('this is an alert'); I don't get a message saying index.html says, it just pops up the alert). Looks like I have a long night ahead of me, but thank you for the suggestion!

        Comment


          #5
          Re: Debug Restoring From Local Storage Loop in PhoneGap App

          Didn't know you were running a Mac. I rarely debug on a Mac. Maybe this will help... http://docs.phonegap.com/phonegap-bu...ols/debugging/

          Comment


            #6
            Re: Debug Restoring From Local Storage Loop in PhoneGap App

            Hi Josh,
            I am experiencing the same problem since I upgraded to release 5159 5132.
            Have you resolved this issue?
            If so, can you share with the rest of us?

            ..... Very frustrating.....

            Comment


              #7
              Re: Debug Restoring From Local Storage Loop in PhoneGap App

              We've seen this issue also and it looked very bad.
              I believe we recalculated all control and the loop was gone but the app seemed to still be hanging.
              Nothing showing up in the DevTools console so I tried running a Performance recording to see if I could see more but it hung also.
              We are however very busy and just decided to stop looking at the issues and to stay on build 5028 for awhile.

              Comment


                #8
                Re: Debug Restoring From Local Storage Loop in PhoneGap App

                Hi all,

                A quick update on this topic.
                I just tried this again on the latest production release V4.5.4.8 - Build 5581-5237 10-JAN-2019

                I am using the refresh page at Logoff function as I want to do this.

                Good news is that it appears to have been improved, but not yet workable for what I want.

                iOS is better with load times less than 90 seconds.

                However, on Android the time to reload the app exceeds 3 minutes.
                I tried using the Weinre phonegap debug tool to isolate the problem and found that the App disappears off the debug screen and cannot be located again when the reload happens.

                Will stick with 5028 and try again in 6 months.

                Comment


                  #9
                  Re: Debug Restoring From Local Storage Loop in PhoneGap App

                  I found this article online, it might help: https://kubedex.com/resource/skaffold/

                  Comment


                    #10
                    Re: Debug Restoring From Local Storage Loop in PhoneGap App

                    Peter
                    You are describing a bug that was fixed months ago. The reason it was taking a long time is that the restore events were firing multiple times.

                    Comment


                      #11
                      Re: Debug Restoring From Local Storage Loop in PhoneGap App

                      Selwyn, thank you for the advice.
                      I have downloaded V4.5.5.0 - Build 5667-5254 16-FEB-2019 and performed some preliminary testing. It appears that this issue has been fixed.
                      It is a shame that the release notes for versions after V4.5.4.8 did not highlight that the Android problem was fixed, otherwise I would have been testing this sooner.
                      I will be fully testing my app on V4.5.5.0 to ensure that other problems have not been introduced.

                      I will provide another update after my testing.

                      Comment

                      Working...
                      X