ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.15k stars 13.5k forks source link

None of ionic-natives work #15183

Closed tasinsahin closed 6 years ago

tasinsahin commented 6 years ago

Hi, Last week, I was able to use all of the ionic natives, using camera, geolocation, orientation etc. I have upgraded my iPhone 7 device to IOS 12, thus I had to upgrade ionic libraries on my project. Now, I am unable to use any of the natives on my iPhone 7 with IOS 12 device. Anybody help me to oversome this problem? I have the following package.json;

{
    "name": "Menevse",
    "version": "0.0.1",
    "author": "OnCoding",
    "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": "^5.0.0",
        "@angular/compiler": "^5.0.0",
        "@angular/compiler-cli": "^5.0.0",
        "@angular/core": "^5.0.0",
        "@angular/forms": "^5.0.0",
        "@angular/http": "^5.0.0",
        "@angular/platform-browser": "^5.0.0",
        "@angular/platform-browser-dynamic": "^5.0.0",
        "@ionic-native/action-sheet": "^4.1.0",
        "@ionic-native/app-rate": "^4.1.0",
        "@ionic-native/calendar": "^4.1.0",
        "@ionic-native/call-number": "^4.1.0",
        "@ionic-native/camera": "^4.11.0",
        "@ionic-native/core": "^4.2.0",
        "@ionic-native/crop": "^4.1.0",
        "@ionic-native/date-picker": "^4.1.0",
        "@ionic-native/email-composer": "^4.1.0",
        "@ionic-native/facebook": "^4.1.0",
        "@ionic-native/geolocation": "^4.1.0",
        "@ionic-native/instagram": "^4.1.0",
        "@ionic-native/launch-navigator": "^4.1.0",
        "@ionic-native/photo-library": "^4.1.0",
        "@ionic-native/photo-viewer": "^4.11.0",
        "@ionic-native/push": "^4.11.0",
        "@ionic-native/screen-orientation": "^4.11.0",
        "@ionic-native/sim": "^4.11.0",
        "@ionic-native/sms": "^4.1.0",
        "@ionic-native/social-sharing": "^4.1.0",
        "@ionic-native/splash-screen": "4.11.0",
        "@ionic-native/status-bar": "4.11.0",
        "@ionic-native/video-player": "^4.1.0",
        "@ionic-native/youtube-video-player": "^4.1.0",
        "@ionic/storage": "2.1.3",
        "@ngx-translate/core": "^8.0.0",
        "@ngx-translate/http-loader": "0.0.3",
        "angular2-swing": "^0.14.0",
        "angularfire2": "5.0.0-rc.5-next",
        "call-number": "^1.0.1",
        "chart.js": "^2.6.0",
        "com-sarriaroman-photoviewer": "^1.1.18",
        "com.moust.cordova.videoplayer": "https://github.com/moust/cordova-plugin-videoplayer.git",
        "cordova-android": "^7.1.1",
        "cordova-instagram-plugin": "^0.5.7",
        "cordova-ios": "4.5.5",
        "cordova-plugin-actionsheet": "^2.3.3",
        "cordova-plugin-add-swift-support": "^1.7.2",
        "cordova-plugin-apprate": "^1.3.0",
        "cordova-plugin-camera": "git+https://github.com/apache/cordova-plugin-camera.git",
        "cordova-plugin-compat": "^1.2.0",
        "cordova-plugin-crop": "^0.4.0",
        "cordova-plugin-datepicker": "^0.9.3",
        "cordova-plugin-device": "^2.0.2",
        "cordova-plugin-device-orientation": "^2.0.1",
        "cordova-plugin-dialogs": "^2.0.1",
        "cordova-plugin-email-composer": "^0.8.15",
        "cordova-plugin-file": "^6.0.1",
        "cordova-plugin-geolocation": "^4.0.1",
        "cordova-plugin-globalization": "^1.0.8",
        "cordova-plugin-inappbrowser": "^3.0.0",
        "cordova-plugin-ionic-webview": "^2.0.3",
        "cordova-plugin-photo-library": "^2.1.1",
        "cordova-plugin-splashscreen": "^5.0.2",
        "cordova-plugin-statusbar": "^2.4.2",
        "cordova-plugin-video-player": "git+https://github.com/moust/cordova-plugin-videoplayer.git",
        "cordova-plugin-whitelist": "^1.3.3",
        "cordova-plugin-x-socialsharing": "^5.4.1",
        "cordova-plugin-youtube-video-player": "^1.0.6",
        "cordova-sms-plugin": "^0.1.11",
        "cordova-universal-clipboard": "git+https://github.com/Visigo/CordovaClipboard.git",
        "es6-promise-plugin": "^4.2.2",
        "firebase": "^4.8.0",
        "ionic-angular": "^3.9.2",
        "ionic-img-viewer": "^2.9.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionic-select-searchable": "^2.10.0",
        "ionicons": "3.0.0",
        "ng2-simple-crypt": "^1.0.1",
        "node-sass": "^4.6.1",
        "phonegap-plugin-push": "^2.2.3",
        "promise-polyfill": "8.1.0",
        "rxjs": "^5.5.2",
        "sw-toolbox": "3.6.0",
        "uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.2.1",
        "zone.js": "^0.8.18"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^3.1.0",
        "ionic": "3.20.0",
        "typescript": "3.0.1"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-actionsheet": {},
            "cordova-plugin-apprate": {},
            "cordova-plugin-crop": {},
            "cordova-plugin-datepicker": {},
            "cordova-plugin-email-composer": {},
            "cordova-plugin-geolocation": {
                "GEOLOCATION_USAGE_DESCRIPTION": " "
            },
            "cordova-instagram-plugin": {},
            "uk.co.workingedge.phonegap.plugin.launchnavigator": {
                "LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes"
            },
            "cordova-sms-plugin": {},
            "cordova-plugin-photo-library": {
                "PHOTO_LIBRARY_USAGE_DESCRIPTION": "To choose photos"
            },
            "cordova-plugin-x-socialsharing": {},
            "com.moust.cordova.videoplayer": {},
            "cordova-plugin-whitelist": {},
            "cordova-plugin-youtube-video-player": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-camera": {},
            "phonegap-plugin-push": {
                "SENDER_ID": "896704981923"
            },
            "cordova-plugin-file": {},
            "cordova-plugin-ionic-webview": {},
            "cordova-plugin-compat": {},
            "com-sarriaroman-photoviewer": {}
        },
        "platforms": []
    }
}
ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for bug reports and feature requests. Please use our forum or our slack channel for questions about the framework.

Thank you for using Ionic!

kensodemann commented 6 years ago

A couple of suggestions here:

First: you are using ^ prefixes on your versions. I suggest either specifically pinning your versions by not using a prefix or using the "patch" prefix ~.

Second: Your versions of ionic-native stuff is all very inconsistent. Use consistent versions. The latest is 4.11.0. So basically make all of the ionic-native deps look like one of these:

pinned

        "@ionic-native/camera": "4.11.0",
        "@ionic-native/core": "4.11.0",
        "@ionic-native/crop": "4.11.0",

patch

        "@ionic-native/camera": "~4.11.0",
        "@ionic-native/core": "~4.11.0",
        "@ionic-native/crop": "~4.11.0",

After updating your package.json be sure to do an npm install (I have forgotten to do that more than once... :) )