Open ThorvaldAagaard opened 5 years ago
Seems pretty abandoned to me...
dammit.
I've stumbled across a working Cordova 9 fork: https://github.com/s-s/me.apla.cordova.app-preferences/tree/cordova-9
https://github.com/amolkokane76/me.apla.cordova.app-preferences This one is more recent. However, it doesn't work on android for me, does anyone has a working android example? The default values are not present when loading them and I cannot open the settings.
https://github.com/amolkokane76/me.apla.cordova.app-preferences This one is more recent. However, it doesn't work on android for me, does anyone has a working android example? The default values are not present when loading them and I cannot open the settings.
It was working for me on both android and IOS, the last time i used it.
But I would recommend using https://github.com/s-s/me.apla.cordova.app-preferences/tree/cordova-9
For my needs, I forked this project, done some fixes relative to cordova 9 issue (0.99.4) and to another Ionic issue ionic-team/ionic-cli#3014 (0.99.6) . Here is github repo https://github.com/jorisbertomeu/me.apla.cordova.app-preferences.git.
Use as ionic cordova plugin add git+https://github.com/jorisbertomeu/me.apla.cordova.app-preferences.git
This forks looks good, but unfortunately, i'm not able to build ios app with. I've got the same error with forks from @jorisbertomeu, s-s or amolkokane. Everything working properly on android with @jorisbertomeu fork (thanks for you work!).
ARCHIVE FAILED
The following build commands failed: CompileC /Users/dev-mobile/Library/Developer/Xcode/DerivedData/blgCloud-cllighabbyzyuycgbiflimofnvnl/Build/Intermediates.noindex/ArchiveIntermediates/blgCloud/IntermediateBuildFilesPath/blgCloud.build/Debug-iphoneos/todayWidgetSale.build/Objects-normal/arm64/AppPreferences.o blgCloud/Plugins/cordova-plugin-app-preferences/AppPreferences.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) xcodebuild: Command failed with exit code 65
ionic 1 project (cli 6.11.0)
cordova 9.0.0 (idem avec 10.0.0) cordova-ios 6.1.0
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release" cordova-plugin-app-preferences 0.99.6 "AppPreferences" cordova-plugin-app-version 0.1.9 "AppVersion" cordova-plugin-appavailability 0.4.2 "AppAvailability" cordova-plugin-camera 4.1.0 "Camera" cordova-plugin-file 6.0.2 "File" cordova-plugin-geolocation 4.0.2 "Geolocation" cordova-plugin-globalization 1.11.0 "Globalization" cordova-plugin-image-picker 1.1.1 "ImagePicker" cordova-plugin-inappbrowser 4.0.0 "InAppBrowser" cordova-plugin-intercom 9.1.0 "Intercom" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-safariviewcontroller 1.6.0 "SafariViewController" cordova-plugin-screen-orientation 3.0.2 "Screen Orientation" cordova-plugin-splashscreen 6.0.0 "Splashscreen" cordova-plugin-statusbar 2.4.3 "StatusBar" cordova-plugin-vibration 3.1.1 "Vibration" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" cordova-support-google-services 1.3.2 "cordova-support-google-services" cordova-universal-links-plugin-fixed 1.2.1 "Universal Links Plugin" es6-promise-plugin 4.2.2 "Promise" ionic-plugin-keyboard 2.2.1 "Keyboard" phonegap-plugin-barcodescanner 8.1.0 "BarcodeScanner" phonegap-plugin-multidex 1.0.0 "Multidex" phonegap-plugin-push 2.3.0 "PushPlugin"
Does anybody encountered this problem ?
Hey @nicozenf, I use my forked plugin with iOS too and it works well .. Below is my env configuration, if it can helps you ..
$> ionic info
Ionic:
Ionic CLI : 6.11.0 (/Users/jorisbertomeu/.nvm/versions/node/v12.2.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.2.3
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 9.1.7
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 1.5.0
@capacitor/core : 1.5.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 9.0.0, browser 6.0.0, electron 1.1.1, ios 6.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 39 other plugins)
Utility:
cordova-res : 0.15.1
native-run : 1.0.0
System:
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v12.2.0 (/Users/jorisbertomeu/.nvm/versions/node/v12.2.0/bin/node)
npm : 6.12.0
OS : macOS Big Sur
Xcode : Xcode 11.6 Build version 11E708
and
$> ionic cordova plugin ls
> cordova plugin ls
com-sarriaroman-photoviewer 1.1.18 "PhotoViewer"
com.omarben.inappreview 0.0.5 "inappreview"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-clipboard 1.3.0 "Clipboard"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 2.5.1 "Advanced HTTP plugin"
cordova-plugin-android-permissions 1.0.2 "Permissions"
cordova-plugin-androidx 2.0.0 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter"
cordova-plugin-app-preferences 0.99.6 "AppPreferences"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-calendar 5.1.5 "Calendar"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-camera-preview 0.10.0 "cordova-plugin-camera-preview"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-document-scanner 4.2.5 "Scan"
cordova-plugin-document-viewer 0.9.10 "SitewaertsDocumentViewer"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.2.1 "File Opener2"
cordova-plugin-file-transfer 1.7.2-dev "File Transfer"
cordova-plugin-firebasex 10.1.2 "Google Firebase Plugin"
cordova-plugin-flashlight 3.2.0 "Flashlight"
cordova-plugin-fullscreen 1.1.0 "cordova-plugin-fullscreen"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-inappbrowser 4.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-nativegeocoder 3.4.1 "NativeGeocoder"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-purchase 10.2.0 "Purchase"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-streaming-media 2.3.0 "StreamingMedia"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.8 "SocialSharing"
cordova-sms-plugin 1.0.0 "Cordova SMS Plugin"
cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
es.keensoft.fullscreenimage 1.0.1 "Full Screen Image"
es6-promise-plugin 4.2.2 "Promise"
mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"
@jorisbertomeu thanks, i keep searching around that
With Capacitor you can use the storage API https://capacitorjs.com/docs/apis/storage and you can upvote this issue if you need iOS suite name https://github.com/ionic-team/capacitor-plugins/issues/226
No commits the last 2 year. No responses from author. Version in the repo is 0.99.2 but on npm it is 0.99.3
Anyone knows how we can update the versions so NPM and the repo has same version?