Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-14045 - reinit url after app freezes on 4.5.x #418

Merged
merged 1 commit into from
Dec 19, 2018

Conversation

brodybits
Copy link
Contributor

@brodybits brodybits commented Sep 27, 2018

Fix for CB-14045 (reinit url after app freezes) was mistakenly raised on 4.5.x in PR #363, merged on 4.5.x, reverted, then merged on master.

I think this fix should have also been part of 4.5.x.

I am raising this PR just in case we do another cordova-ios@4.5.x patch release.

The commit ID on master is: 6e790af

* test reinit url
* refactor: split function + check if appUrl is not empty
* Added tests.
@codecov-io
Copy link

Codecov Report

Merging #418 into 4.5.x will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            4.5.x     #418   +/-   ##
=======================================
  Coverage   63.45%   63.45%           
=======================================
  Files          14       14           
  Lines        1691     1691           
  Branches      284      284           
=======================================
  Hits         1073     1073           
  Misses        618      618

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8729e5...bab1654. Read the comment docs.

@janpio
Copy link
Member

janpio commented Sep 27, 2018

I have no idea what this PR is actually doing without following the links.

Does this cherry pick a commit from somewhere else for this release branch? If so, please say so in the PR description. The PR title should also be about what the commit fixes, not what issue is merged into what. Include that as additional information in the PR description please.

@brodybits brodybits changed the title CB-14045 on 4.5.x CB-14045 - reinit url after app freezes on 4.5.x Sep 27, 2018
@brodybits
Copy link
Contributor Author

@janpio I just updated the title and description. Does it look OK now?

@janpio
Copy link
Member

janpio commented Sep 27, 2018

yep, now I can follow

Copy link
Contributor

@knight9999 knight9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

@janpio janpio added this to 🐣 New PR / Untriaged in Apache Cordova: Platform Pull Requests Sep 28, 2018
@janpio janpio moved this from 🐣 New PR / Untriaged to ⏳ Ready for Review in Apache Cordova: Platform Pull Requests Sep 29, 2018
@GulinSS
Copy link

GulinSS commented Oct 9, 2018

Please somebody merge it

@jacobg
Copy link

jacobg commented Dec 19, 2018

Does this commit work with CodePush using dynamic url?

@brodybits
Copy link
Contributor Author

Does this commit work with CodePush using dynamic url?

I suggest you try cordova-ios@nightly with CodePush.

@brodybits brodybits merged commit 31f9602 into apache:4.5.x Dec 19, 2018
Apache Cordova: Platform Pull Requests automation moved this from ⏳ Ready for Review to 🏆 Merged, waiting for Release Dec 19, 2018
@brodybits
Copy link
Contributor Author

Now merged onto 4.5.x, in case we ever publish 4.5.6 patch release before Cordova 9.

@dpogue
Copy link
Member

dpogue commented Dec 19, 2018

Does this commit work with CodePush using dynamic url?

I think it'll be fine, unless it gets into the frozen state, in which case it will reload with the original URL instead of the dynamic CodePush one.

I would be inclined to consider that a big enough change in behaviour that it's not a patch-level release anymore

@brodybits
Copy link
Contributor Author

I would be inclined to consider that a big enough change in behaviour that it's not a patch-level release anymore

Do you mean that that the change is a "big enough change in behaviour" or something else is a "big enough change in behaviour"?

@dpogue
Copy link
Member

dpogue commented Dec 19, 2018

I think this change to the URL behaviour is a change that will likely affect 3rd party plugins (CodePush in particular), even if only in certain edge cases

@brodybits
Copy link
Contributor Author

I will revert this change in 4.5.x branch, then.

For anyone who needs this functionality before we release Cordova 9, I recommend using cordova-ios@nightly.

@jacobg
Copy link

jacobg commented Dec 19, 2018

Does this commit work with CodePush using dynamic url?

I think it'll be fine, unless it gets into the frozen state, in which case it will reload with the original URL instead of the dynamic CodePush one.

Thank @dpogue. Do you suggest a different approach to this fix in Cordova 9?

brodybits pushed a commit that referenced this pull request Dec 20, 2018
As discussed in PR #418, we decided the change was too drastic for a patch release.
@dplewis
Copy link

dplewis commented Feb 13, 2019

I tried using this fix but it still freezes after a week of being in the background.

Its hard to debug as I don't know how to do crash reporting on a build from XCode.

I'm not sure how to replicate this as a week debug cycle is hard.

@janpio
Copy link
Member

janpio commented Feb 13, 2019

Step 1: Create an issue instead of commenting here, this will get ignored and forgotten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Apache Cordova: Platform Pull Requests
🏆 Merged, waiting for Release
Development

Successfully merging this pull request may close these issues.

None yet

8 participants