how to use cordova-plugin-mediascanner in ionic for ios - ionic-framework

I want to use cordova-plugin-mediascanner in my code but when I try to install it giving me errors:-
Error: Failed to fetch plugin git+https://github.com/begrossi/MediaScannerPlugin.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
Version information:
Cordova CLI: 7.0.1 Ionic CLI Version: 2.2.2 Ionic App Lib Version: 2.1.7 ios-deploy version: 1.9.1 ios-sim version: 5.0.13 OS: macOS Sierra Node Version: v4.6.0 Xcode version: Xcode 8.3.3 Build version 8E3004b
how to resolve it

Related

Ionic 2 - Progressive Web App Only - How-to?

Since I only need a Progressive Web App; I was wondering if it's possible to not install Cordova as well as everything that is related to native apps when installating/setting up Ionic?
Do you think we could get rid of what is in bold? (see below after
doing an ionic info command)
Do you have any thoughts / best
practices to share?
The following components are part of Ionic or are needed
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: OS X El Capitan Node Version: v7.0.0
Xcode version: Xcode
8.2.1 Build version 8C1002
npm run ionic:build --prod
Just follow the instructions
https://www.gitbook.com/book/jgw96/ionic-pwa/details

ionic 1, I lost my app's icons and splashscreen

I am running my app on my phone this morning with
ionic run android -lcs
as usual ! But this morning the icon and splashscreen switched to default images !
Any idea how to get back to normal ?
Thanks
$ ionic info
Your system information:
Cordova CLI: 6.4.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v7.4.0
Xcode version: Not installed
Try to force update the android platform to version 6.1.0:
cordova platform update android#6.1.0
The current version (6.0.0) has a bug that causes this problem.
EDIT:
Cordova 6.5.0 has been released recently. This release updates cordova-android to version 6.1.1. So best solution now is:
npm install -g cordova

ionic 2 serve: UnhandledPromiseRejectionWarning

I ran into this problem when trying to test my ionic 2 script. When running ionic serve -all, the following error occured:
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'send' of undefined
My ionic 2 setup is as follows:
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.9.1
Xcode version: Not installed
Any solution to this issue?
I have same problem.
Did you have change the structure of directory like
you should change it back!!

ionic2: has no exported member 'ionicBootstrap'

I keep finding with issue when trying to use the ionicBootstrap. I'm pretty sure everything is quite updated, and I also tried starting a blank project, and just doing:
import { Platform, ionicBootstrap } from 'ionic-angular';
Gives me this error already :(
Any ideas? :/
ionic info:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.38
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Sierra
Node Version: v7.0.0
Thank you!

if i update cordova to a newer version is it necessary to update ionic and all other plugins? how does the changes effect?

I have updated cordova and all other plugins. When I tried generating apk, its showing
"doesnot have required environment or OS to install"
I am not able figure out where the problem is.
this is version info of my app..
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.0.0
Ionic CLI Version: 1.7.7
Ionic App Lib Version: 0.6.3
OS: Windows 7
Node Version: v0.12.7
Did you tried removing Android platform?
ionic platform remove android
and then add it again:
ionic platform add android
or maybe this can be useful:
Cordova / Ionic build error (sometimes): don't have required environment