Can't run my App, cached Ionic example appearing


#1

Hello, I’m having a very strange error in my App.

Somehow, the sample version of Ionic Super is being opened in place of my application.

I’m doing the following steps:

  1. Drop the application on the device.
  2. Install it and ask it to open after installation.
  3. At this point everything happens normally, the App opens and works.
  4. After exiting the application, return to the device’s home and open it again through the icon.
  5. At this point, instead of opening my App, the base App used (Super Ionic) is opened. Exactly like the example template, even excluding all the related pages.

Anyone have any idea what might be happening? I have tried to recreate the project and several other things, but nothing works.

Thanks.


#2

This sounds like a classic example of Ionic Deploy. What does your package.json look like?


#3

Hey, like this:

{
  "name": "BeConnect",
  "version": "1.0.0",
  "author": "Edurardo Werpp Maciel - https://www.eduardowerppmaciel.com/",
  "homepage": "http://www.beconect.com.br/",
  "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": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@ionic-native/android-permissions": "^4.7.0",
    "@ionic-native/camera": "4.3.3",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/native-storage": "^4.5.3",
    "@ionic-native/onesignal": "^4.5.3",
    "@ionic-native/social-sharing": "^4.7.0",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/status-bar": "4.4.0",
    "@ionic/pro": "1.0.20",
    "@ionic/storage": "2.1.3",
    "@ngx-translate/core": "8.0.0",
    "@ngx-translate/http-loader": "^2.0.0",
    "cordova-android": "7.0.0",
    "cordova-plugin-android-permissions": "^1.0.0",
    "cordova-plugin-device": "^2.0.1",
    "cordova-plugin-ionic": "^4.0.0",
    "cordova-plugin-ionic-keyboard": "^2.0.5",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-nativestorage": "^2.3.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.4.0",
    "es6-promise-plugin": "^4.2.2",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "moment": "^2.20.1",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "typescript": "2.4.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-ionic": {
        "APP_ID": "dc931460",
        "CHANNEL_NAME": "Master",
        "UPDATE_METHOD": "background"
      },
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-android-permissions": {},
      "cordova-plugin-x-socialsharing": {}
    },
    "platforms": [
      "android"
    ]
  }
}

#4
"cordova-plugin-ionic": {
        "APP_ID": "dc931460",
        "CHANNEL_NAME": "Master",
        "UPDATE_METHOD": "background"
      },

Here’s your issue. It reverts/updates to this version. So go ahead and delete that bit.