ionic-framework

Ionic/cloud-angular FacebookAuth gives empty error

佐手、 提交于 2019-12-23 10:58:10
问题 I've added ionic cloud services to my app and want to use the native FaceBook authentication. import { FacebookAuth } from '@ionic/cloud-angular'; this.facebookAuth.login() When running this function on an Android phone, as expected I get the Facebook prompt to ask if my app can get permissions to read profile and email. When I click YES, the function returns an empty ERROR object: Object {} I'm sure I am catching it right, because when I choose CANCEL on the FB prompt, I get this error

Ionic IOS app NSURLConnection error 1100

∥☆過路亽.° 提交于 2019-12-23 10:15:36
问题 I am trying to run my ionic app as a ios native app and am getting a strange URL connection error that is preventing the data from being populated on my app's view. When I run the App in the web browser as an iphone it runs and populates fine, but when running it on the native ios it doesn't populate the page as expected using the API data. I have checked the console and the API is in fact being called, but the xcode console is printing out the following for the 2 API calls which populate the

Build Ionic application failed because of Crosswalk

佐手、 提交于 2019-12-23 09:39:11
问题 Suddenly, I start to get this error: C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile>ionic run android Running command: "C:\Program Files\nodejs\node.exe" "C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile\hooks\after_prepare\010_add_platform_class.js" "C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile" add to body class: platform-android ANDROID_HOME=D:\Android\SDK JAVA_HOME=C:\Program Files

How to write a Node.js express API for file uploading?

爱⌒轻易说出口 提交于 2019-12-23 09:28:00
问题 There are a lot of examples online regarding with file uploading for Node.js Express framework. But most of them are using multer . All of them are loading file from a form. But my scenario is different. My app will pick an image from mobile phone and upload to server (by using cordova-file-transfer plugin in Ionic). In this case, I don't have a form at all. So that there is no req.files. Any suggestion? Thanks. P.S: Here is the log in my server logs my http header: { host: 'localhost:3000',

ionic/angular2 - Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported

江枫思渺然 提交于 2019-12-23 09:11:43
问题 My ionic build was working perfectly up until I wanted to test on my iPhone so I stopped my server and then did a ionic serve --address localhost and I noticed that my stylesheet wasn't loading anymore... so I killed the server again went back to ionic serve and the error persisted.. (index):1 Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. I've tried clearing

ionic resume pause event prevent from fire on file browse only fire at press the home button

蓝咒 提交于 2019-12-23 09:10:32
问题 I am developing a chat app inside I am using on pause and on resume event. document.addEventListener('pause',onpause, false); document.addEventListener('resume' , onresume,false); This event works perfectly when I open the app and press home button to an Android phone these events are perfect. But my problem is that in chat app I am sending file attachments from the gallery when I select the browse button the phone image gallery, and same time pause event is fire. while I am on image gallery

Cordova/Ionic app uploading base64 image to S3 via server signed url

左心房为你撑大大i 提交于 2019-12-23 08:53:48
问题 I can't seem to get the photo to upload on S3. Looked at a lot of resources online and I can't seem to find a definite answer to this. Here's what I have so far. I always get Error code: 3 as my failed message. Client side: $scope.uploadTopicPhoto = function(imageData) { var image2save = "data:image/jpeg;base64," + imageData; $http({ url: 'http://api.example.io/signS3upload', method: "GET" }).then(function (success) { var options = new FileUploadOptions(); options.fileKey = "file"; options

(Ionic 2) An Error occurred trying to fall back to Cordova-lib execution: TypeError: Cannot read property 'then' of undefined

本小妞迷上赌 提交于 2019-12-23 08:53:37
问题 Edit: This is happening when working with ionic 2. I know it's not stable yet, but i assume that there may be some fix for this, since it seems like others don't get this problem. Edit end For some reason i've suddenly started to get this error when trying to build my ionic app, using "ionic build android", and also "ionic build ios": An Error occurred trying to fall back to Cordova-lib execution: TypeError: Cannot read property 'then' of undefined at Object.IonicTask.runCordova (/usr/local

ionic 2 start fails with error with the spawned command

∥☆過路亽.° 提交于 2019-12-23 07:54:54
问题 have installed ionic 2 beta on windows 7 npm install -g ionic@beta seems to install ok. it's 2.0.0-beta.25 when I try to create a project ionic start test tabs --v2 --ts it fails on the Installing npm packages ... bit with Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall would appreciate any help... 回答1: I too faced the similar problem. Revert to 2.0.0-beta.22 by running the

ionic 3 modal full screen width/height for a single modal?

白昼怎懂夜的黑 提交于 2019-12-23 07:29:21
问题 I'm working with ionic modal, I want to resize my modal to full screen, not all the modals but only 1 modal but unable to achieve this as ionic itself is setting width/height properties with !important attribute. I've tried to so something like following @media only screen and (orientation: landscape) { ion-modal { .modal-wrapper { position: absolute; top: 0 !important; left: 0 !important; display: block; width: 100% !important; height: 100% !important; } } } when I put this within scope of