我在iOS平台上的应用存在问题。 Android中的应用程序运行完美,但是当我在iPhone设备上测试该应用程序时,它运行缓慢,某些navPush无法正常运行,而其他的运行良好,ion-grid无法加载所有元素,但是很多又一次我滚动,加载最后一个元素。我能解决吗?我尝试重新安装新的Ionic App,但问题仍然存在。
我过去了我的配置:
我尝试重新安装新的Ionic App,但问题仍然存在。
PACKAGE.JSON
{
"name": "OpenGoNew",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "^7.2.15",
"@angular/compiler": "^7.2.15",
"@angular/compiler-cli": "^7.2.15",
"@angular/core": "^7.2.15",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@ionic-native/app-update": "^5.5.1",
"@ionic-native/camera": "^5.5.1",
"@ionic-native/core": "^5.5.1",
"@ionic-native/email-composer": "^5.5.1",
"@ionic-native/splash-screen": "^5.5.1",
"@ionic-native/status-bar": "^5.5.1",
"@ionic/storage": "^2.2.0",
"@ng-idle/core": "^2.0.0-beta.15",
"@ng-idle/keepalive": "^2.0.0-beta.15",
"cordova-ios": "5.0.0",
"cordova-plugin-app-update": "^2.0.2",
"cordova-plugin-appversion": "^1.0.0",
"cordova-plugin-camera": "4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-email-composer": "0.9.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"es6-promise-plugin": "4.2.2",
"ionic-angular": "3.9.2",
"ionicons": "^4.5.8",
"rxjs": "^6.3.0",
"rxjs-compat": "^6.5.2",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.3",
"typescript": "2.6.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-camera": {},
"cordova-plugin-email-composer": {
"ANDROID_SUPPORT_V4_VERSION": "28.+"
},
"cordova-plugin-app-update": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"ios"
]
}
}
app.module.ts
import { ListAppartmentPageModule } from './../pages/list-appartment/list-appartment.module';
import { RiepilogoUtentePageModule } from './../pages/riepilogo-utente/riepilogo-utente.module';
import { DocumentsPageModule } from './../pages/documents/documents.module';
import { CamerePageModule } from './../pages/camere/camere.module';
import { CamerePage } from './../pages/camere/camere';
import { ListAppartmentPage } from './../pages/list-appartment/list-appartment';
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { RiepilogoUtentePage } from '../pages/riepilogo-utente/riepilogo-utente';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import { PostProvider } from '../providers/post-provider';
import { IonicStorageModule } from '@ionic/storage';
import { DocumentsPage } from "../pages/documents/documents";
import { GetLocalUserProvider } from '../providers/get-local-user';
import {NgIdleKeepaliveModule} from "@ng-idle/keepalive";
import { Camera } from '@ionic-native/camera/ngx';
import { EmailComposer } from '@ionic-native/email-composer/ngx';
@NgModule({
declarations: [
MyApp,
HomePage,
// ListAppartmentPage,
// RiepilogoUtentePage,
// CamerePage,
// DocumentsPage
],
imports: [
BrowserModule,
HttpClientModule,
HttpModule,
CamerePageModule,
DocumentsPageModule,
RiepilogoUtentePageModule,
ListAppartmentPageModule,
NgIdleKeepaliveModule.forRoot(),
IonicStorageModule.forRoot(),
IonicModule.forRoot(MyApp, {
autocomplete: false,
autocorrect: 'off',
scrollAssist: false,
autoFocusAssist: false
})
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
RiepilogoUtentePage,
ListAppartmentPage,
CamerePage,
DocumentsPage
],
providers: [
StatusBar,
SplashScreen,
Camera,
EmailComposer,
PostProvider,
{provide: ErrorHandler, useClass: IonicErrorHandler},
GetLocalUserProvider
]
})
export class AppModule {}