cordova-plugins

Download file in ios for ionic 3 not showing in files folder

≯℡__Kan透↙ 提交于 2019-12-22 00:12:37
问题 ionic 3 I am using #cordova-plugin-file-transfer, to download the file from url in android and ios. For Android it is working fine. But for ios app, i am facing a problem. The file is downloading successfully, but i am not able to see downloaded file on ios device. Here is my code for ios => const transfer = this.transfer.create(); transfer.download(url, cordova.file.documentsDirectory + fileName).then( entry => { console.log(entry); this.apiService.showError("Download Succeeded."); this

Cordova Camera Plugin returns green pictures Windows Phone 8.1

痞子三分冷 提交于 2019-12-21 21:55:07
问题 Very strange behaviour: after takinf a 2nd or third picture using cordova camera plugin returned picture is green and about 200kb while normally about 2 mb. When taking more 'green' pictures application crashes and default camera screen becomes green untill phone is restarted. Tryed different parameters like getting url instead of base64, different picture sizes - no luck. This is reproduced on Nokia Lumia 520, but Microsoft Lumia 535 allowes to take about 6 pictures. While android works fine

Adding Facebook login to ionic app

情到浓时终转凉″ 提交于 2019-12-21 21:24:47
问题 I am newbie to a Angular and Ionic as well. Tried the following tutorial: https://www.sitepoint.com/how-to-integrate-facebook-login-into-a-cordova-based-app/ Steps performed: 1.In app browser is installed. Included libraries. <script src="lib/ngCordova/dist/ng-cordova.js"></script> <script src="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script> <script src="cordova.js"></script> Include code inside index.html before body closing tag: <script> window.fbAsyncInit = function() { FB.init({

Status bar notification for web app with PhoneGap / Cordova

痞子三分冷 提交于 2019-12-21 20:53:24
问题 I am developping a web app for iOS and Android, using the last version of PhoneGap. I want to send Notifications to the users on their phone's status bar, and I cannot figure out how to do that. It seems that there was a Cordova plugin (StatusBarNotification) that once existed, but all the links I find are dead. If anyone knows a way to send notif to the statusbar, I would be grateful. Thanks Quentin EDIT : I should have been more specific : I am trying to understand how to use the status

FileSystem on Cordova 3.4.0 fails “Could not create target file”

自闭症网瘾萝莉.ら 提交于 2019-12-21 17:01:35
问题 I recently upgraded my iOS Cordova project from 2.7.0 to 3.4.0. After upgrading filesystem access is broken. (seems to work in the simulator though?) I get an error message stating "Could not create target file", I googled around and thought to change my "fullpath" to "toURL()" but to no avail. I really don't know what to try next? here's my download code window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { fileSystem.root.getFile( "dummy.html",

Cordova Change AndroidManifest using Config.xml file

老子叫甜甜 提交于 2019-12-21 06:59:33
问题 I am in need to add some tags to the AndroidManifest.xml file which is found under platforms\android\AndroidManifest.xml As I have read the AndroidManifest.xml file gets generated on the fly and it is not advisable to edit it. So is there a plugin that I can use that will modify the AndroidManifest.xml file for me with the values that I give it in the config.xml file? 回答1: Since the recent release of cordova@6.4.0 you can use the <edit-config> tag in config.xml to do this without requiring a

UPI deep link issue with android app integration

≯℡__Kan透↙ 提交于 2019-12-21 06:44:56
问题 I am using native code for upi deep linking. When intent invoke on bhim app payment details page in not showing while other psp app redirecting to payment page When I click a url from mobile browser like this upi://pay?pa=98955012345@upi&pn=abc&am=1 it opens BHIM app with pre-filled page of payee details. However when I use my merchant app, to link it through intent deep-linking, it opens BHIM but does not redirect to pre-filled page. 回答1: It really works for the BHIM application also. Use

UPI deep link issue with android app integration

南笙酒味 提交于 2019-12-21 06:44:46
问题 I am using native code for upi deep linking. When intent invoke on bhim app payment details page in not showing while other psp app redirecting to payment page When I click a url from mobile browser like this upi://pay?pa=98955012345@upi&pn=abc&am=1 it opens BHIM app with pre-filled page of payee details. However when I use my merchant app, to link it through intent deep-linking, it opens BHIM but does not redirect to pre-filled page. 回答1: It really works for the BHIM application also. Use

How to configure Status Bar color when application is loading with Cordova?

血红的双手。 提交于 2019-12-21 05:12:05
问题 I created an application with Cordova. I want to improve the UI/UX so it looks like a native application, as much as possible. When the application loads for the 1st time, the first milliseconds (less than 1 second actually) the Status Bar (and Background) has not the color I configured with the Cordova Plugin for Status Bar, as you can see there. This blue is something linked to my Android Version/Installation, all menus and settings have the same mandatory color. The Android Version I have

Cordova doesn't send origin on request in some Android devices

試著忘記壹切 提交于 2019-12-20 14:15:45
问题 This is a problem that happens on some android devices. I have a Samsung Galaxy A5 (2017) with Google Chrome version 76.0.3809.89 and Android version 8.0.0. When I deploy my Cordova application for the first time on this device and making a POST request I receive an error about CORS: Access to XMLHttpRequest at 'http://foo.com/bar' from origin 'file://' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is