ngcordova

Store Image into internal Storage in Ionic?

萝らか妹 提交于 2019-12-25 00:27:18
问题 i am new in Ionic, i am trying to get picture and want to store copy or store image into internal storage so i can get back captured image on any view. I don't know how to store images in internal Storage. I have read this. this is Helpful but not solving my issue. My Controller is here. Help me in this. Controller /**** tab Camera Controller ***/ .controller('tabCameraCtrl', function($scope, $state, $cordovaCamera) { /**********function to Open Camera *********/ $scope.openCamera = function(

I have ngCordova local notification working, how can i make it trigger for every user

蹲街弑〆低调 提交于 2019-12-24 23:25:06
问题 I have an ionicPopup with textarea where when user enters text, saves in firebase. On this change of value im able to trigger ngCordova local notification on mobile who's user has entered data. How can i make this value change trigger same notification on every logged in user's mobile. Service: servicesModule.factory("Profile", ["$firebaseObject", function($firebaseObject) { return function(new_value) { var ref = new Firebase("https://feedback-system.firebaseio.com/Courses/" + 'newValue');

Badge on app icon for Android doesn't show even after implementing ngCordova (cordova-plugin-badge) and phonegap-plugin-push

≡放荡痞女 提交于 2019-12-23 03:00:14
问题 I will really appreciate if anyone can help me with this issue that has been bugging me for days. I have a hybrid app created using the Ionic framework, which I have implemented push notifications on (via phonegap-plugin-push). The push notifications work fine, but what I want is for the push notification (i.e. GCM payload) to send a badge count/number over to the application, and the application will take that count/number and displays it as a badge beside the app icon. My code works

Cordova: Getting a file Uri from a content Uri

最后都变了- 提交于 2019-12-22 17:49:21
问题 I implemented an app with Apache Cordova and I used $cordovaCamera plugin. When the source type of $cordovaCamera is Camera.PictureSourceType.PHOTOLIBRARY the output is something like "content://com.android.providers.media.documents/document/image" and, when I use Camera.PictureSourceType.CAMERA I get "file:///storage/emulated/0/Android/data/com.ionic.viewapp/cache/image.jpg". In my case the format "file://.." is more useful. It is possible get the file URI from the content URI? I found many

Read all images from gallery in ionic app

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 19:24:20
问题 At present I am using $cordovaImagePicker plug-in. I am manually selecting images. My requirement is to display all images from mobile like a gallery App. $cordovaImagePicker.getPictures(options) .then(function(results,afterLoop) { var arrayItems=[]; for (var i = 0; i < results.length; i++) { $scope.images.push(results[i]); } }, function(error) { }); This loads gallery images in a popup where they can be selected. I don't want any popup instead just read all images from phone automatically

InAppBrowser executeScript callback not firing at all

杀马特。学长 韩版系。学妹 提交于 2019-12-21 05:16:15
问题 I am creating building a Hybrid application using Ionic with ngCordova. In the application login workflow I am returning a page from server to the InAppBrowser plug-in. I need to read some values from the returned page in my Ionic app. The usual way would be to call executeScript on 'loadstop' event, and setup a call back when that script returns something. And I have that setup as you can see in the following code. However, no matter what I try, iOS Emulator, Android Emulator the callback is

cordova-plugin-media callback methods

拟墨画扇 提交于 2019-12-19 08:04:05
问题 I am using cordova-media-plugin 1.0.1. in an Ionic mobile app. I am using the plugin to play the audio file. I am able to get it to play using: var media = $cordovaMedia.newMedia(fileToPlay, // success callback mediaSuccess, // error callback mediaFailure, // status callback mediaStatus ); I can then call media.play() at it plays the file. However, the callbacks never seem to execute. I have them defined as: function mediaSuccess () { console.log("Successfully finished task."); } function

cordova-plugin-media callback methods

大兔子大兔子 提交于 2019-12-19 08:02:03
问题 I am using cordova-media-plugin 1.0.1. in an Ionic mobile app. I am using the plugin to play the audio file. I am able to get it to play using: var media = $cordovaMedia.newMedia(fileToPlay, // success callback mediaSuccess, // error callback mediaFailure, // status callback mediaStatus ); I can then call media.play() at it plays the file. However, the callbacks never seem to execute. I have them defined as: function mediaSuccess () { console.log("Successfully finished task."); } function

Ionic Build Android command fails with an exception after trying to add ngCordova calendar plugin

别等时光非礼了梦想. 提交于 2019-12-18 07:24:13
问题 I am working ionic(1.7.15) in ubuntu. My project works fine until i try to implement calendar plugin. After installing this plugin to my project and i try to build with ionic build android command but i am getting the following error. UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; I hope the above error occurs due to multiple plugin in my

Can you use cookies in a Cordova application?

那年仲夏 提交于 2019-12-17 16:35:01
问题 I have been building an android app using Ionic. At this point, I am under the impression that Cordova applications do not save or send the cookies that are served from a REST API server. If I run the application with the 'ionic serve' command I can see that my session and CSRF cookies are sent with my AJAX requests. However, when I run the code with the 'ionic emulate' command it does not appear that either are sent to my server. I have seen some articles and threads that talk about using