Ionic-starter-sidemenu laggin


#1

i use https://github.com/driftyco/ionic-starter-sidemenu


I have a great problem using the app on the devices (all works well in the emulator): after some time the menu starts acting weird, two tabs open at once, meaning that when you open a tab it opens another one immediately after that, etc.


#2

Are you on iOS 9?

If’s the case, follow these link http://blog.ionic.io/preparing-for-ios-9/ and http://blog.ionic.io/ios-9-potential-breaking-change/

With the “ngIOS9UIWebViewPatch” patch, I think you will not have this issue anymore :slight_smile:


#3

the patch didn’t solved the problem, what makes you think he can help me?


#4

I had this issue too on all my Ionic sidemenu project on iOS 9 and with the patch everything is right now.

On a browser or on android, have you this issue too ?

Can you try to download iOS 8 simulator in xCode and try your app ?


#5

can you send me your side-menu sample, I can’t test in simulator because all works well, but on device I have problem with side-menu


#6

I have just tried from scratch with these commands :

ionic start myApp-sidemenu sidemenu
cd myApp-sidemenu/
ionic lib update
ionic build ios

Everything is working on my iPhone 5 / iOS 7.1.1.

Are you on the last version of Ionic ? You can check that in the www/lib/ionic/version.json file. I am on v1.1.0 “xenon-xerus”.

I have tested on iOS 9 simulator and the same issue is visible without the patch. Then after adding the patch, everything is fine. Have you added the “ngIOS9UIWebViewPatch” module in your app.js ?


#7

{
“version”: “1.1.0”,
“codename”: “xenon-xerus”,

}

niskatqq$ ionic -v
1.6.5


#8

I insist but have you included the [following js file][1] in your index.html like this ?

<script src="js/angular-ios9-uiwebview.patch.js"></script>

And add the “ngIOS9UIWebViewPatch” module in your app.js

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
angular.module('myapp', ['ionic', 'ngIOS9UIWebViewPatch'])

.run(function($ionicPlatform, $rootScope,
 .....

If it’s the case, I don’t see how to help you more :confused:
[1]: https://gist.github.com/IgorMinar/863acd413e3925bf282c


#9

tomoroow I try add your code in project, thanks


#10

thanks, worked I forget add 'ngIOS9UIWebViewPatch'


#11

Perfect.
Have fun with Ionic :wink: