The big question is: What happened to IONIC after the updates.
A few months ago I started a project with IONIC 2 for a client. Due to some of my mishaps and the client's part too, the project made a stop. However, we are now back to active and I come across several commands that no longer work. For more than 3 days I'm having problems with settings and only now I can run the app on my smartphone with errors.
Well, I'm not here to cry kk so there goes my doubts:
First problem BrowserTab , Ionic's native plugin, no longer works. Once I've run the code successfully before, I just downloaded it from the repository and ran it back on my smartphone, but it results in nothing. It just stopped working. I tried to debug with the command cordova run android --livereload --device
, but the terminal closes whenever the app opens on my cell phone (second problem) , being impossible to get any error messages to be able to identify the cause. Here is the code that does not work anymore.
constructor(public navCtrl: NavController,
public navParams: NavParams,
private browserTab: BrowserTab) {}
openPage(option) {
switch (option) {
case 0:
this.browserTab.openUrl("https://pag.ae/bkjsxHd");
break;
case 1:
this.browserTab.openUrl("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8RV2DK95S29LJ");
break;
default:
break;
}
}
I've already done install , I've already installed the plugin browser plugin following the following link Documentation for the browserTab . I run LiveReload according to the here documentation that is not live anything at all.
Anyway, I'm lost. I've done a lot of research and no results. More than 3 unproductive days without knowing what else to do.
Well, below also my dependencies for analysis:
"dependencies": {
"@angular/common": "4.0.0",
"@angular/compiler": "4.0.0",
"@angular/compiler-cli": "4.0.0",
"@angular/core": "4.0.0",
"@angular/forms": "4.0.0",
"@angular/http": "4.0.0",
"@angular/platform-browser": "4.0.0",
"@angular/platform-browser-dynamic": "4.0.0",
"@ionic-native/browser-tab": "^3.4.4",
"@ionic-native/core": "3.6.0",
"@ionic-native/splash-screen": "3.4.2",
"@ionic-native/status-bar": "3.4.2",
"@ionic/storage": "2.0.1",
"cordova-android": "^6.2.3",
"cordova-plugin-browsertab": "^0.2.0",
"cordova-plugin-compat": "^1.0.0",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.1",
"cordova-plugin-whitelist": "^1.3.1",
"ionic-angular": "3.0.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sw-toolbox": "3.4.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.0",
"@ionic/cli-plugin-ionic-angular": "1.3.2",
"typescript": "~2.2.1"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "com.semadpb.www: An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"cordova-plugin-browsertab": {}
},
"platforms": [
"android"
]
Well, thank you in advance for any help. Because working with IONIC now following the documentation itself is not producing success. I'm waiting ...