ionicthemes / ionic6-starter-app

🌟 Ionic Starter Template. It has everything you need to jump start your Ionic Angular app development! Firebase Integration, Capacitor, PWA, Lists, Cards, Navigation, Forms and Validations and SO MUCH MORE! 🚀
https://ionicthemes.com/templates/ionic5-full-starter-app-pro-version
63 stars 34 forks source link

IOS ERROR: Start Page at 'www/index.html' was not found and white screen on app start #24

Closed strogof closed 3 years ago

strogof commented 4 years ago

my android app developed starting from ionic5-full-starter-app-pro-version-2.2.0 works without problems i am trying to make it work on IOS with no luck

### steps for porting:

copy app folder without platforms and node_modules npm install ionic cordova platform add ios ionic cordova build ios

### ionic info

Ionic:

Ionic CLI : 6.12.0 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.3.4 @angular-devkit/build-angular : 0.1001.3 @angular-devkit/schematics : 10.1.3 @angular/cli : 10.1.3 @ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : ios 6.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 4 other plugins)

Utility:

cordova-res (update available: 0.15.2) : 0.8.1 native-run (update available: 1.2.2) : 0.2.9

System:

ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v12.17.0 (/usr/local/bin/node) npm : 6.14.8 OS : macOS Catalina Xcode : Xcode 12.1 Build version 12A7403

### Xcode run LOG

2020-11-10 17: 17: 29.750863 + 0100 ShoppyNet [46583: 11698968] Apache Cordova native platform version 6.1.1 is starting. 2020-11-10 17: 17: 29.750990 + 0100 ShoppyNet [46583: 11698968] Multi-tasking -> Device: YES, App: YES 2020-11-10 17: 17: 29.907414 + 0100 ShoppyNet [46583: 11698968] WF: === Starting WebFilter logging for process ShoppyNet 2020-11-10 17: 17: 29.907456 + 0100 ShoppyNet [46583: 11698968] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2020-11-10 17: 17: 29.907492 + 0100 ShoppyNet [46583: 11698968] WF: _WebFilterIsActive returning: NO 2020-11-10 17: 17: 29.924372 + 0100 ShoppyNet [46583: 11698968] The preference key "AllowNewWindows" is not defined and will default to "FALSE" 2020-11-10 17: 17: 29.926166 + 0100 ShoppyNet [46583: 11698968] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE" 2020-11-10 17: 17: 29.929031 + 0100 ShoppyNet [46583: 11698968] WF: _userSettingsForUser mobile: { filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0; } 2020-11-10 17: 17: 29.929080 + 0100 ShoppyNet [46583: 11698968] WF: _WebFilterIsActive returning: NO 2020-11-10 17: 17: 29.930196 + 0100 ShoppyNet [46583: 11698968] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE" 2020-11-10 17: 17: 29.930262 + 0100 ShoppyNet [46583: 11698968] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE" 2020-11-10 17: 17: 29.930291 + 0100 ShoppyNet [46583: 11698968] CDVWebViewEngine will reload WKWebView if required on resume 2020-11-10 17: 17: 29.930326 + 0100 ShoppyNet [46583: 11698968] Using WKWebView 2020-11-10 17: 17: 29.931059 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [console] 0.065088ms 2020-11-10 17: 17: 29.931214 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [handleopenurl] 0.055075ms 2020-11-10 17: 17: 29.932500 + 0100 ShoppyNet [46583: 11698968] Unlimited access to network resources 2020-11-10 17: 17: 29.932669 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [intentandnavigationfilter] 1.394033ms 2020-11-10 17: 17: 29.932781 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [gesturehandler] 0.067949ms 2020-11-10 17: 17: 29.934135 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [statusbar] 1.294017ms 2020-11-10 17: 17: 29.937084 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [splashscreen] 2.496958ms 2020-11-10 17: 17: 29.937314 + 0100 ShoppyNet [46583: 11698968] The preference key "KeyboardResize" is not defined and will default to "TRUE" 2020-11-10 17: 17: 29.937354 + 0100 ShoppyNet [46583: 11698968] CDVIonicKeyboard: resize mode 1 2020-11-10 17: 17: 29.937381 + 0100 ShoppyNet [46583: 11698968] The preference key "HideKeyboardFormAccessoryBar" is not defined and will default to "TRUE" 2020-11-10 17: 17: 29.937857 + 0100 ShoppyNet [46583: 11698968] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE" 2020-11-10 17: 17: 29.938012 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [cdvionickeyboard] 0.833035ms 2020-11-10 17: 17: 29.938142 + 0100 ShoppyNet [46583: 11698968] [CDVTimer] [TotalPluginStartup] 7.210970ms 2020-11-10 17: 17: 29.938455 + 0100 ShoppyNet [46583: 11698968] ERROR: Start Page at 'www / index.html' was not found. 2020-11-10 17: 17: 30.190167 + 0100 ShoppyNet [46583: 11698968] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"

djabif commented 3 years ago

Are you using Cordova instead of Capacitor? Did you follow this steps?

strogof commented 3 years ago

yes I am using Cordova e followed the steps my package.json

{
  "name": "ShoppyNet",
  "description": "The most advanced and complete Mobile & PWA Ionic starter app template",
  "version": "2.2.0",
  "author": "IonicThemes",
  "contributors": [
    "Dayana <dayana@ionicthemes.com>",
    "Agustín <agustin@ionicthemes.com>"
  ],
  "homepage": "https://ionicthemes.com/",
  "private": true,
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "lint": "ng lint",
    "dev:ssr": "ng run app:serve-ssr",
    "serve:ssr": "node dist/app/server/main.js",
    "build:ssr": "ng build --prod && ng run app:server:production",
    "prerender": "ng run app:prerender",
    "postinstall": "jetifier"
  },
  "dependencies": {
    "@angular/animations": "^10.1.2",
    "@angular/cdk": "^10.2.7",
    "@angular/common": "^10.1.2",
    "@angular/core": "^10.1.2",
    "@angular/forms": "^10.1.2",
    "@angular/material": "^10.2.7",
    "@angular/platform-browser": "^10.1.2",
    "@angular/platform-browser-dynamic": "^10.1.2",
    "@angular/platform-server": "^10.1.2",
    "@angular/router": "^10.1.2",
    "@angular/service-worker": "^10.1.2",
    "@ionic-native/core": "^5.28.0",
    "@ionic-native/ionic-webview": "^5.29.0",
    "@ionic-native/splash-screen": "^5.28.0",
    "@ionic-native/status-bar": "^5.28.0",
    "@ionic/angular": "^5.3.3",
    "@ionic/angular-server": "^5.3.3",
    "@nguniversal/express-engine": "^10.1.0",
    "@ngx-translate/core": "^13.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@videogular/ngx-videogular": "^2.1.0",
    "angular-pipes": "^10.0.0",
    "cordova-android": "^8.1.0",
    "cordova-plugin-ionic-webview": "^5.0.0",
    "core-js": "^2.6.11",
    "dayjs": "^1.9.1",
    "express": "^4.15.2",
    "google-libphonenumber": "^3.2.13",
    "jetifier": "^1.6.5",
    "mobile-detect": "^1.4.4",
    "npm": "^6.14.8",
    "rxjs": "6.6.3",
    "sharp": "^0.26.2",
    "tslib": "^1.11.2",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.1001.2",
    "@angular-devkit/build-angular": "^0.1001.2",
    "@angular-devkit/core": "^10.1.2",
    "@angular-devkit/schematics": "^10.1.2",
    "@angular/cli": "^10.1.2",
    "@angular/compiler": "^10.1.2",
    "@angular/compiler-cli": "^10.1.2",
    "@angular/language-service": "~10.1.2",
    "@commitlint/cli": "^11.0.0",
    "@commitlint/config-angular": "^11.0.0",
    "@ionic/angular-toolkit": "^2.3.3",
    "@nguniversal/builders": "^10.1.0",
    "@types/core-js": "^2.5.0",
    "@types/express": "^4.17.0",
    "@types/googlemaps": "^3.39.2",
    "@types/node": "^12.11.1",
    "@webcomponents/webcomponentsjs": "^2.4.3",
    "codelyzer": "^6.0.0",
    "cordova-ios": "^6.1.1",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "husky": "^4.3.0",
    "ts-node": "^8.10.1",
    "tslint": "~6.1.0",
    "typescript": "~4.0.2"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-ionic-webview": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}
djabif commented 3 years ago

Can you please send me your error log and what steps are you following to build and deploy your iOS app?

strogof commented 3 years ago

error log and steps are in first post

strogof commented 3 years ago

your support is fantastic just useless questions for which you already had the answers thank you

djabif commented 3 years ago

Can you please try to run ionic cordova prepare ios and then try running it again on Xcode?

strogof commented 3 years ago

already tried...

djabif commented 3 years ago

Answer provided in https://github.com/ionicthemes/ionic5-starter-app/issues/26#issuecomment-730677521

strogof commented 3 years ago

"If you are not satisfied with the template I can offer to give you a refund. We want our customers to love the template"

this is your answer thank you for not even trying to fix my problem

strogof commented 3 years ago

dear Dayana, I don't know, if you can't, don't want or aren't able to help me. what i know is that you have been kidding me for two weeks. let's finish it here Luigi

Il giorno gio 19 nov 2020 alle ore 23:31 Dayana Jabif < notifications@github.com> ha scritto:

Answer provided in #26 (comment) https://github.com/ionicthemes/ionic5-starter-app/issues/26#issuecomment-730677521

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ionic5-starter-app/issues/24#issuecomment-730678066, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4FW2DH5KYHL7V4RTSHOFDSQWMCZANCNFSM4TQ44BQQ .

djabif commented 3 years ago

I think we are not understanding each other. I have no interest on kidding you. I was honestly trying to help. I can offer you a refund if you are not satisfied with the template and don't plan to use it. Let's finish this here. I will close the issues.

strogof commented 3 years ago

I don't think it can be closed. even though I have given up on your support the bug reported is always there. provided that one day you decide to check ... but that's my problem, not yours, right?

strogof commented 3 years ago

little progress, after a

ionic cordova run ios

the problem whith index.html is gone but the app gets stuck on start with a white screen problem due to the ready event not being fired

strogof commented 3 years ago

not solved, but another progress

follow this steps https://ionicframework.com/docs/v3/wkwebview/#my-app-does-not-load-white-screen

cordova-ios 6 integrated the splash screen plugin into the platform, so if you were using ionic-native to hide the splash, it won't work because it relies in the plugin and the plugin is not installed on iOS.

Change this.splashScreen.hide(); to (navigator as any).splashscreen.hide(); in app.component.ts

[(https://stackoverflow.com/questions/64141516/cordova-ios-app-shows-white-screen-in-ios-14)]