ionic-framework

How to get data with my angular.js file from node.js restful api in localhost

心已入冬 提交于 2020-01-24 15:41:08
问题 I created main.js for rest api.When I sent request to local server from vericek.js,response did not come back but localserver is showing sending datas in terminal. What is the problem. Thank you index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- IF using Sass

How to embed an Android library (AAR file) into a capacitor plugin?

百般思念 提交于 2020-01-24 15:04:14
问题 The issue is already answered for iOS: How to embed framework in capacitor plugin for iOS For Android, I get issues when I add an aar file to the capacitor plugin by creating a new module. After publishing my capacitor plugin via npm and integrating it into an ionic app, the aar library cannot be found anymore. 回答1: As done on iOs, we do practically the same thing here. But, using Android Studio and gradle instead of xcode and cocoapods. Ok, but first things first. When the command npx

How to embed an Android library (AAR file) into a capacitor plugin?

北战南征 提交于 2020-01-24 15:03:06
问题 The issue is already answered for iOS: How to embed framework in capacitor plugin for iOS For Android, I get issues when I add an aar file to the capacitor plugin by creating a new module. After publishing my capacitor plugin via npm and integrating it into an ionic app, the aar library cannot be found anymore. 回答1: As done on iOs, we do practically the same thing here. But, using Android Studio and gradle instead of xcode and cocoapods. Ok, but first things first. When the command npx

Ionic v4 menu only works when router-outlet has the main attribute

送分小仙女□ 提交于 2020-01-24 13:11:40
问题 I'm building an app with ionic v4 the first time and I want to include a side menu. For testing reasons, I first put it inside of the app.component.html but I couldn't let it swipe out or in. So I saw in the documentation, that they added the main attribute on the ion-router-outlet but as far as I read: it is not documented anywhere. I don't know, why I'd have to add this, to make it actually work. Source: https://ionicframework.com/docs/api/menu <ion-router-outlet main></ion-router-outlet>

Ionic v4 menu only works when router-outlet has the main attribute

白昼怎懂夜的黑 提交于 2020-01-24 13:11:10
问题 I'm building an app with ionic v4 the first time and I want to include a side menu. For testing reasons, I first put it inside of the app.component.html but I couldn't let it swipe out or in. So I saw in the documentation, that they added the main attribute on the ion-router-outlet but as far as I read: it is not documented anywhere. I don't know, why I'd have to add this, to make it actually work. Source: https://ionicframework.com/docs/api/menu <ion-router-outlet main></ion-router-outlet>

I have a modal that opens a second modal and cannot close the first modal if open then close the second

百般思念 提交于 2020-01-24 12:02:34
问题 To start I created a codepen and I think the title says it all. I created a service to handle my modals, as seen here .service('ModalService', function($ionicModal, $ionicLoading, $rootScope) { var init = function(tpl, $scope) { $ionicLoading.show({ content: 'Loading', animation: 'fade-in', showBackdrop: true, maxWidth: 200, showDelay: 0 }); var promise; $scope = $scope || $rootScope.$new(); promise = $ionicModal.fromTemplateUrl(tpl, { scope: $scope, animation: 'slide-in-up' }).then(function

Video transcoding problem in IONIC with iOS 13.0

依然范特西╮ 提交于 2020-01-24 09:34:25
问题 We have an existing IONIC App and since iOS 13.0 has been released we ran into a problem with transcoding videos. When file path is read from camera.getPicture (with sourceType=PHOTOLIBRARY), and passed to videoEditor.transcodeVideo(), it indefinitely keeps calling the progress callback with value 0. It won’t throw any error and it won’t call the Completed callback. videoEditor.transcodeVideo() does not work on several real iPhone devices with iOS 13.0 +. I tried the same code on a simulator

IONIC | SOAP based web-service | exception: 'Access-Control-Allow-Origin' missing

北城以北 提交于 2020-01-24 09:29:42
问题 I am developing mobile application using IONIC framework and I want to access SOAP based web-service, i have found this TUTORIAL. I am accessing publicly deployed soap based web-service. I have tested the mentioned SOAP based web-service in SOAP-UI and i am able to access the web-service, but when i am accessing the same web-service from ionic framework, it throws an exception: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.webservicex

IONIC | SOAP based web-service | exception: 'Access-Control-Allow-Origin' missing

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-24 09:29:26
问题 I am developing mobile application using IONIC framework and I want to access SOAP based web-service, i have found this TUTORIAL. I am accessing publicly deployed soap based web-service. I have tested the mentioned SOAP based web-service in SOAP-UI and i am able to access the web-service, but when i am accessing the same web-service from ionic framework, it throws an exception: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.webservicex

GCM Android notification received on device but not displaying

纵然是瞬间 提交于 2020-01-24 09:27:18
问题 GCM Cloud messaging notifications for my Ionic Android app are not appearing in my device's home screen, despite the notification registering in the app itself. I'm using the npm module node-gcm to send push notifications. var gcm = require('node-gcm'); var message = new gcm.Message({ priority: 'high', contentAvailable: true, delayWhileIdle: true, timeToLive: 10, dryRun: false, data: { key1: 'message1', key2: 'message2' }, notification: { title: "Hello, World", body: "This is a notification