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

State specific transition freezes the app #111

Open
moltar opened this issue Jun 16, 2016 · 7 comments
Open

State specific transition freezes the app #111

moltar opened this issue Jun 16, 2016 · 7 comments

Comments

@moltar
Copy link

moltar commented Jun 16, 2016

I have this unique case with resolve doing a state change twice. This is done for deep linking to a specific state, yet retaining (or more correctly creating) history, so that the "back" button still works.

The main thing to look at is the transition resolve on the tab.chat-detail state.

You can see this:

            $timeout(function() {
              $state.go('tab.chats', {}, goConfig);
            }, 0);

            // now go back to this state
            $timeout(function() {
              $state.go('tab.chat-detail', stateParams, goConfig);
              deferred.resolve(true);
            }, 300);

When I add this part:

      nativeTransitions: {
        "type": "flip",
        "direction": "up"
      },

The whole app freezes.

Here is the code example repo:

https://github.com/moltar/nativepagetransitions

I did all the changes in stages of commits. If you remove the last commit, everything works.

@yaoyonstudio
Copy link

got the same problem.

@TomSeldon
Copy link
Contributor

I'm having what I think is the same issue, but replicated differently.

If I have a link to a state (using native-ui-sref and click the link multiple times in quick succession, then it freezes the app. I can see in the console that multiple native transitions are attempted, and the app does go to the correct state in the background, but the screenshot overlayed over the webview is never removed.

@jawgardner
Copy link

I have this same issue. The console reflects that native transitions are occurring but the screenshots seem to stick around.

@AlekseyKutsko
Copy link

I have same problem. there's solution?

@TomSeldon
Copy link
Contributor

Unfortunately, for us the solution was to stop using the plugin as it's no longer maintained. It's a shame, as it worked really nicely with the exception of this bug.

The occasional instance where this bug would completely lock up the app meant it was a no go, and with it no longer being maintained, it just wasn't practical to invest any further time using it, debugging it, or trying to fix it.

I'm hoping that someone picks this project up (I don't have the time) as it really is quite good, but for me, it's back to standard Ionic transitions!

@ap1969
Copy link

ap1969 commented Apr 6, 2017

Yep, same issue as jawgardner above: The console reflects that native transitions are occurring but the screenshots seem to stick around.

@EternallLight
Copy link

Facing the same issues. As a workaround, we could disable native transitions for the parts where they freeze the app, but this is likely not the best solution.

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

7 participants