Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I upgraded to the latest module release and the back button stopped working. It returns to the splash page and then crashes the app (no matter where in the app you are when you click the back button). I tested this by making a completely new app with no code modifications or added modules and the back button showed the same behavior. I tried using the .dev of the latest release and also got the same issue.
Where can I grab a copy of 7.x-1.13 that I can use until this is resolved?
Edited to add: I have debug set to true but no info appears once the back button is clicked.
Comments
Comment #2
eudaemonia CreditAttribution: eudaemonia commentedComment #3
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThe DrupalGap module really has nothing to do with the back button, as the back button is entirely powered by the DrupalGap SDK. So I very much doubt upgrading the DrupalGap module broke your back button. I'd try rolling back a release of the bin/drupalgap.js file instead.
Comment #4
eudaemonia CreditAttribution: eudaemonia commentedWhere would I find that? The 7.x-1.2 release doesn't have a drupalgap.js file
Comment #5
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedhttps://github.com/signalpoint/DrupalGap/releases
Comment #6
eudaemonia CreditAttribution: eudaemonia commentedI mentioned in my last comment that the the 7.x-1.2 release doesn't have a drupalgap.js file. When I go to https://github.com/signalpoint/DrupalGap/releases, the only release I can find that has a drupalgap.js file is 7.x-1.3. When I make a new app with that release, the back button crashes the app.
Comment #7
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedEach release has a bin/drupalgap.min.js file, you can include that in your index.html file. If it still isn't working, please indicate what platform and version number you are working with (i.e. android vs. iOS and what version #).
Comment #8
eudaemonia CreditAttribution: eudaemonia commentedI'm using iOS and SDK 7.x-1.2, drupalgap module 7.x-1.14. This is how I have my index.html set for the drupalgap.js:
bin/drupalgap-7.x-1.2.min.js
I'm still getting the broken back button with a new fresh build (no modules, no changes in the code).
Comment #9
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedWhat version of iOS though?
Comment #10
eudaemonia CreditAttribution: eudaemonia commentedios 9
Comment #11
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedIt's a bug with iOS 9 and DG, I have no way to test/debug it.
Comment #12
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedOther folks are experiencing this same problem, I tried adding this to _drupalgap_back():
I also added this to DG's device ready handler:
Unfortunately these aren't working.
Comment #13
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedActually, I was able to fix this moments before I was about to give up. Grab the latest bin/drupalgap.js or bin/drupalgap.min.js for the fix: https://github.com/signalpoint/DrupalGap/issues/671