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

"onReset" not called when page reload on ios12 #630

Closed
3 tasks done
lvyou214 opened this issue Jun 18, 2019 · 3 comments
Closed
3 tasks done

"onReset" not called when page reload on ios12 #630

lvyou214 opened this issue Jun 18, 2019 · 3 comments

Comments

@lvyou214
Copy link

lvyou214 commented Jun 18, 2019

Bug Report

Problem

When load a new page, plugin function 'onReset' are not called when cordova-ios 5.0.1 on ios 12.x

What is expected to happen?

'onReset' should be called.

What does actually happen?

'onReset' is not called.

Information

This may has something to do with #447
When I use cordova-ios 5.0.1, I found that when I do page navigation or just do page refresh, the plugin function 'onReset' is not called.
When I switch back to 5.0.0, everything is fine.
Here is the result table I tested:

version 11.2.6(Device) 12.2(Simulator) 12.3.1(Device)
5.0.0 OK OK OK
5.0.1 OK FAILED FAILED

Then I try to revert just #477 modification on 5.0.1 and confirmed that the 'onReset' is called as it should be.

Command or Code

Just create an empty project ,add cordova-ios@5.0.1 then add an plugin that has 'onReset' callback (ex:cordova-plugin-statusbar).
Start xcode,build and run project with debugging.
Set a breakpoint on 'onReset'.
Use safari to refresh the default page to observe if the breakpoint hit.

Environment, Platform, Device

Version information

Cordova 9.0.0 (cordova-lib@9.0.1)
cordova-ios@5.0.1

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@bentomas
Copy link

This is effecting us as well. Sometimes onReset gets called, sometimes not.

@dpogue
Copy link
Member

dpogue commented Apr 16, 2023

I've marked this issue as stale because it's been several years with no further comments. If this is still an issue in the latest cordova-ios version and an up-to-date iOS version, please let us know. Otherwise, this issue will be closed.

@dpogue
Copy link
Member

dpogue commented May 19, 2023

Closing as stale.

@dpogue dpogue closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants