Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49526 articles
Browse latest View live

Looking for comprehensive content-security-policy guideline

$
0
0

@ciekawy wrote:

Recently I was building a reusable places autocomplete module requireing to load script from googleapis.com. I quickly found that only for production iOS I need to add <meta http-equiv="Content-Security-Policy"> with proper content. While I have in my backlog to address CSP properly, this time I wanted to add minimum and start to think about it as was unable to found all the info I need…

  • what are particular equivalent CSP values when there is no <meta http-equiv="Content-Security-Policy">?
    eg for script-src is the default insecure-inline insecure-eval?

  • are there CSP equivalents of cordova whitelist plugin tags in config.xml?

  • if I want to introduce security - how to deal with inline and eval cases? are there any nonce/hash plugins available?

  • how to distinguish between development and production?

  • what should be default CSP values to start with bare ionic apps?

  • is the strict-dynamic supported? if so how it can be used?

  • should the Angular Meta service work to configure this dynamically? OR maybe some better ionic/capacitor/cordova plugin/module is missing to support management of access lists?

Posts: 1

Participants: 1

Read full topic


How to update a toast as part of an async function?

$
0
0

@Sweg wrote:

I am trying to display a toast to the user when they execute a function, & then update the message based on the response returned from a cloud function.

The docs below said to use an async function, but I don’t know how to update the message on that.

I copied the below toast from https://ionicframework.com/docs/api/toast:

async presentToast() {
    const toast = await this.toastCtrl.create({
      message: 'Please wait, your details are being updated....',
    });
    toast.present();
  }

This toast is being displayed when I execute the below function:

updateDetailslike(info) {
    this.presentToast();
    this.http.post('myUrl', body, {}).then((response) => {
        // IF THE RESPONSE IS OK, UPDATE THE TOAST SAYING UPDATE WAS SUCCESSFUL
    }, (err) => {
        // IF THE RESPONSE IS NOT OK, UPDATE THE TOAST SAYING UPDATE WAS UNSUCCESSFUL
    });
  }

Can someone please tell me how this can be done?

Posts: 1

Participants: 1

Read full topic

Styling ion-picker from ion-datetime

$
0
0

@khegay wrote:

Hello!

So, I have changed global variables: primary, secondary and background colors.
After changes, ion-picker background also changed.

I have to add pickerOptions to ion-date:

<ion-datetime [pickerOptions]="picker"></ion-datetime>
picker = {
    cssClass: 'checkout-picker'
}

Than I tried to change background as docs said:

.checkout-picker {
    --background: white !important;
}

Nothing happened.

What to do?

Posts: 1

Participants: 1

Read full topic

Ionic Vue status?

$
0
0

@accron wrote:

I asked the question (among others) in my previous thread but didn’t get any feedback, so I’ll make a dedicated thread, for better visibility…

The current Vue version of Ionic says Beta, but what’s the plan/roadmap for the final release?
Are there any target dates you could share (which doesn’t mean you have to commit to them of course), just to get a rough idea how far away it is (e.g. will/do you wish to release it before Vue 3 is out)?
When did the current version enter into Beta?

Posts: 2

Participants: 2

Read full topic

Problems with opening a tabs project

iOS Cloud Build

$
0
0

@bry008 wrote:

Hello Everybody,
I am building an iOS app through the cloud, and I am running into issues with cordova 9.

Here is a typical error that I am seeing:

Failed to restore plugin “cordova-custom-config” from config.xml. You might need to try adding it again. Error: Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.

Is there a way to use an earlier version of cordova on the cloud?

±--------------------±--------------------------+
| Build Summary |
±--------------------±--------------------------+
| Job ID | 6805405 |
| Node.js version | v10.19.0 |
| Cordova CLI version | 9.0.3 (cordova-lib@9.0.2) |
| npm version | 6.13.4 |
| macOS version | 10.14.6 |
| Xcode version | Xcode 11.0 |
| | Build version 11A420a |
±--------------------±--------------------------+

If there are any other details that I missed, let me know and I can add them.

Thanks!

Posts: 1

Participants: 1

Read full topic

Show Tabs menu except Login Page?

$
0
0

@jakesully wrote:

i set Login page as root page app.component.ts. after Login success navigate to Home page.
in this case tabs menu not showing Home page. but i need to show menu in home page only not in login page. please help me.

import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

import { TabsPage } from '../pages/tabs/tabs';
import { LoginPage } from '../pages/login/login';
@Component({
  templateUrl: 'app.html'
})
export class MyApp {
  rootPage:any = LoginPage;
  
  constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();
    });
  }
}

Posts: 1

Participants: 1

Read full topic

Designning whatsapp like chat reply to a particular message

$
0
0

@o8thug wrote:

I am currently working on a chat application,now i new to create a reply option like in whats app i’ve done with programming part the problem is i am not familiar with UI design could any one suggest me how to perform this design

Posts: 1

Participants: 1

Read full topic


Im new to ionic , some questions

$
0
0

@alexmehler wrote:

Hey guys Im very new to ionic programming.

I got my first basic app running (just tested a few html elements and imported a cordova barcode scanner ) .

can i use simple html elements to make my app or do i have to use the ionic ui components ??
the ionic website advertises i can use es2015 compliant javascript to make my app …

but it seems thats not the correct way , and the uicomponents are not as nice as i thought …

my app basically just needs to read a json file and populate a list of items where i can change some properties(all easily doable with simple js/html) and then save the object as a new json-file with date attached …

the barcode scanner is used to select a specific entry in that list

i now want to add a simple function (alert/console.log) … but i dont even know where to put it , i tried to add it into “class HomePage” in home.page.ts but using a simple html5 select onchange=“run()” returns function not defined ,

do i have to use the ionic components or is html5 possible ?

Posts: 1

Participants: 1

Read full topic

Ionic build prod --ios error..please help

$
0
0

@matador09 wrote:

Error

[19:08:10] ionic-app-scripts 3.2.4
[19:08:10] build prod started …
[19:08:10] clean started …
[19:08:10] clean finished in 4 ms
[19:08:10] copy started …
[19:08:10] deeplinks started …
[19:08:10] deeplinks finished in 74 ms
[19:08:10] ngc started …
[19:08:19] typescript error
Type HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts is part
of the declarations of 2 modules: AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts! Please consider
moving HeaderMenuComponent in /Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts to a
higher module that imports AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and
ComponentsModule in /Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts. You can also create a
new NgModule that exports and includes HeaderMenuComponent in
/Users/Prodata007/IBMSv2/IBMS/src/components/header-menu/header-menu.ts then import that NgModule in
AppModule in /Users/Prodata007/IBMSv2/IBMS/src/app/app.module.ts and ComponentsModule in
/Users/Prodata007/IBMSv2/IBMS/src/components/components.module.ts.
[19:08:19] ionic-app-script task: “build”
[19:08:19] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/Prodata007/IBMSv2/IBMS/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --prod --target cordova --platform ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.

my app.module

@NgModule({
declarations: [
IBMS,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
OpsOperationmodePage,
ProfilePage,
HeaderMenuComponent,
OpsTonnageHandledPage
],
imports: [
BrowserModule,
IonicModule.forRoot(IBMS),
FontAwesomeModule,
HttpClientModule
],
bootstrap: [IonicApp],
entryComponents: [
IBMS,
AboutPage,
ContactPage,
HomePage,
TabsPage,
LoginPage,
OpsOperationmodePage,
ProfilePage,
OpsTonnageHandledPage
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}, RestProvider,
GlobalProvider,
InAppBrowser
]
})

Posts: 1

Participants: 1

Read full topic

HTTPS API calls fail using iOS 13 SDK (HTTP load failed)

$
0
0

@prmulti wrote:

Hi, I have been working on a new build of our iOS app which uses the iOS 13 SDK (Xcode 11). I’ve ran into a critical issue in that my API calls to https endpoints no longer seem to work - this is the error response I receive -

{"status":-1,"error":"The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.)"}

This is the error in Xcode log -

Task <FC61C756-9EA6-451C-B0A6-BD99BDD65CEB>.<1> HTTP load failed, 11705/0 bytes (error code: 303 [4:-2205])

Task <FC61C756-9EA6-451C-B0A6-BD99BDD65CEB>.<1> finished with error [303] Error Domain=kCFErrorDomainCFNetwork Code=303 "(null)" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <FC61C756-9EA6-451C-B0A6-BD99BDD65CEB>.<1>, _kCFStreamErrorDomainKey=4, NSErrorPeerAddressKey=<CFData 0x600000544af0 [0x7fff80617cb0]>{length = 16, capacity = 16, bytes = 0x100201bb3430d4990000000000000000}, _kCFStreamErrorCodeKey=-2205, _NSURLErrorRelatedURLSessionTaskErrorKey=(LocalDataTask <FC61C756-9EA6-451C-B0A6-BD99BDD65CEB>.<1>"

I’m using the Ionic Native HTTP plugin for API calls on device and WKWebView.

API calls to my local backend under http all seem to work okay so I imagine it’s SSL/TLS related but I can’t figure it out. My staging backend is an AWS EC2 running under an SSL cert issued by Amazon.

Anyone got any ideas? Truly stumped on this…

Posts: 1

Participants: 1

Read full topic

Page navigate to Tabs Page

$
0
0

@ladaniavadh wrote:

Hello Guys,
In my app I have tab Menu after user logged in. So when user logout and press back then still they are moving to tab page. In actual they should exit from the App.In routing default routing is tabs-menu.

Application flow is as below:
If already logged-in then /tabs/upComing
else /auth/login

logout click is on /auth/profile so when i press it will navigateRoot([’/auth/login’]) and if I press back then it should exit the app in actual, but it navigate to /tabs/upComing

Please help me with this.

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Upgrade ionic creat to ionic studio

$
0
0

@itosoft wrote:

i bought appery creat pro yesterday but it doesn’t sound good how can i upgarde to appery studio Launch ?
will they return my money?
they do not answer my email!!!

Posts: 1

Participants: 1

Read full topic

Ionic performance issue

Ionic get array from json - web service

$
0
0

@slhndr wrote:

i’m using

 import { HTTP } from '@ionic-native/http/ngx';

for http requests from ionic app. But it doesn’t working for me.

This codes from ionic framework documentation:

import { HTTP } from '@ionic-native/http/ngx';

constructor(private http: HTTP) {}

this.http.get(myJsonApiUrl, {}, {})
  .then(data => {

    console.log(data.status);
    console.log(data.data); // data received by server
    console.log(data.headers);

  })
  .catch(error => {

    console.log(error.status);
    console.log(error.error); // error message as string
    console.log(error.headers);

  });

This code not displaying error detail. Only display : “undefined” for error.error

sorry for my english.

Posts: 1

Participants: 1

Read full topic


Slides in modal [v5]

$
0
0

@mieszkoPl wrote:

Hi, I’m trying to add a silder inside component witch is modal. Only then does not working and does not have the option to move, autoplay, etc.
When it is embedded, e.g. on the tab, it works in a manner consistent with the documentation.

Code from doc.:

Posts: 1

Participants: 1

Read full topic

modalController.create() throws No component factory found for [object Object]

$
0
0

@Chuuone wrote:

Hey, in a nutshell i am trying to run this on click:

public async showModal(paycheck): Promise<void> {
        const modal = await this.modalCtrl.create({
            component: ModalPaycheckComponent
        });
        await modal.present();
    }

However i get this error:

ERROR Error: "Uncaught (in promise): Error: No component factory found for [object Object]. Did you add it to @NgModule.entryComponents?
noComponentFactoryError@http://localhost:8100/build/vendor.js:4610:39
CodegenComponentFactoryResolver.prototype.resolveComponentFactory@http://localhost:8100/build/vendor.js:4674:19
ModalCmp.prototype.ionViewPreLoad@http://localhost:8100/build/vendor.js:63123:36
ViewController.prototype._lifecycle@http://localhost:8100/build/vendor.js:22622:33
ViewController.prototype._preLoad@http://localhost:8100/build/vendor.js:22484:14
NavControllerBase.prototype._preLoad@http://localhost:8100/build/vendor.js:53888:14
NavControllerBase.prototype._viewInit@http://localhost:8100/build/vendor.js:53578:14
NavControllerBase.prototype._nextTrns/<@http://localhost:8100/build/vendor.js:53389:23
F</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14976
onInvoke@http://localhost:8100/build/vendor.js:5434:33
F</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14916
F</c</r.prototype.run@http://localhost:8100/build/polyfills.js:3:10143
f/<@http://localhost:8100/build/polyfills.js:3:20242
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15660
onInvokeTask@http://localhost:8100/build/vendor.js:5425:33
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15581
F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10834
o@http://localhost:8100/build/polyfills.js:3:7894
F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16823
p@http://localhost:8100/build/polyfills.js:2:27648
v@http://localhost:8100/build/polyfills.js:2:27894

So i have read a lot of forum topics regarding this specific error. However none has solved the issue for me and i am way too new to module concept to solve this myself in fairly quick amount of time.

Here is the involved page and component i have defined the entryComponent in both places, not really sure why as i dont think it should be needed. Can anybody spot something wrong with this?

modal-paycheck.ts

import { Component, OnInit, Input } from '@angular/core';
import { ModalController } from 'ionic-angular';

@Component({
    selector: "modal-paycheck",
    templateUrl: 'modal-paycheck.html'
})

export class ModalPaycheckComponent implements OnInit {
    public text;

    constructor(public modalCtrl: ModalController) {
        console.log('Hello ModalPaycheckComponent Component');
        this.text = 'Hello World';
    }

    ngOnInit() {}
}

modal-paycheck.module.ts

import { ModalPaycheckComponent } from "./modal-paycheck";
import { NgModule } from "@angular/core";
import { IonicModule } from "ionic-angular";
import { CommonModule } from "@angular/common";

@NgModule({
    declarations: [ModalPaycheckComponent],
    imports: [IonicModule, CommonModule],
    entryComponents: [ModalPaycheckComponent]
})

export class ModalPaycheckComponentModule { }

paycheck.ts

import { Component, Injectable } from '@angular/core';
import { IonicPage, NavController, NavParams, ModalController } from 'ionic-angular';
import { FileTransfer, FileTransferObject } from '@ionic-native/file-transfer';
import { File } from '@ionic-native/file';
import { FileOpener } from '@ionic-native/file-opener';
import { Printer } from '@ionic-native/printer';
import { UserProvider } from '../../providers/user/user';
import moment from 'moment';
import { ModalPaycheckComponent } from '../../components/modal-paycheck/modal-paycheck';

@IonicPage()

@Component({
    selector: 'page-paycheck',
    templateUrl: 'paycheck.html',
})

@Injectable()

export class PaycheckPage {
    years: any;
    moment: any = moment;
    userData: any;
    selectedYear: any;
    paychecks: any = [];

    constructor(public navCtrl: NavController, public modalCtrl: ModalController, public navParams: NavParams, private transfer: FileTransfer, private file: File, private fileOpener: FileOpener, private printer: Printer, public userService: UserProvider) {
    }

    public async showModal(paycheck): Promise<void> {
        const modal = await this.modalCtrl.create({
            component: ModalPaycheckComponent
        });

        await modal.present();
    }
}

paycheck.module.ts

import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { PaycheckPage } from './paycheck';
import { FileTransfer } from '@ionic-native/file-transfer';
import { File } from '@ionic-native/file';
import { FileOpener } from '@ionic-native/file-opener';
import { Printer } from '@ionic-native/printer';
import { ModalPaycheckComponent } from '../../components/modal-paycheck/modal-paycheck';
import { ModalPaycheckComponentModule } from '../../components/modal-paycheck/modal-paycheck.module';

@NgModule({
    declarations: [
        PaycheckPage
    ],
    imports: [
        ModalPaycheckComponentModule,
        IonicPageModule.forChild(PaycheckPage),
    ],
    providers: [
        FileTransfer,
        File,
        FileOpener,
        Printer
    ],
    entryComponents: [
        ModalPaycheckComponent
    ]
})

export class PaycheckPageModule { }

ionic info

C:\wamp64\www\timetjek\User_app>ionic info

Ionic:

   Ionic CLI          : 5.4.14 (C:\Users\agaci\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (1 plugins total)

Utility:

   cordova-res : 0.8.1
   native-run  : 0.3.0

System:

   Android SDK Tools : 26.1.1 (C:\Users\agaci\AppData\Local\Android\Sdk)
   NodeJS            : v12.14.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.13.4
   OS                : Windows 10

Posts: 1

Participants: 1

Read full topic

Not able to do production release build. Struggling a lot on this

$
0
0

@santhoshprasana wrote:

Here is the error i am getting while executing the below command.

ionic cordova build android --prod --release

Please help me on this.

Error Log:
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-hdpi\screen.png: Error: The drawable “screen” in drawable-land-hdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-ldpi\screen.png: Error: The drawable “screen” in drawable-land-ldpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]> Task :app:lintVitalRelease

E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-mdpi\screen.png: Error: The drawable “screen” in drawable-land-mdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-xhdpi\screen.png: Error: The drawable “screen” in drawable-land-xhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-xxhdpi\screen.png: Error: The drawable “screen” in drawable-land-xxhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-land-xxxhdpi\screen.png: Error: The drawable “screen” in drawable-land-xxxhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-hdpi\screen.png: Error: The drawable “screen” in drawable-port-hdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-ldpi\screen.png: Error: The drawable “screen” in drawable-port-ldpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-mdpi\screen.png: Error: The drawable “screen” in drawable-port-mdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-xhdpi\screen.png: Error: The drawable “screen” in drawable-port-xhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-xxhdpi\screen.png: Error: The drawable “screen” in drawable-port-xxhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]
E:\Projects\try\myApp\platforms\android\app\src\main\res\drawable-port-xxxhdpi\screen.png: Error: The drawable “screen” in drawable-port-xxxhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]

Explanation for issues of type “MissingDefaultResource”:
If a resource is only defined in folders with qualifiers like -land or -en,
and there is no default declaration in the base folder (layout or values
etc), then the app will crash if that resource is accessed on a device
where the device is in a configuration missing the given qualifier.

As a special case, drawables do not have to be specified in the base
folder; if there is a match in a density folder (such as drawable-mdpi)
that image will be used and scaled. Note however that if you only specify
a drawable in a folder like drawable-en-hdpi, the app will crash in
non-English locales.

There may be scenarios where you have a resource, such as a -fr drawable,
which is only referenced from some other resource with the same qualifiers
(such as a -fr style), which itself has safe fallbacks. However, this still
makes it possible for somebody to accidentally reference the drawable and
crash, so it is safer to create a default dummy fallback in the base
folder. Alternatively, you can suppress the issue by adding
tools:ignore=“MissingDefaultResource” on the element.

(This scenario frequently happens with string translations, where you might
delete code and the corresponding resources, but forget to delete a
translation. There is a dedicated issue id for that scenario, with the id
ExtraTranslation.)

12 errors, 0 warnings

Posts: 1

Participants: 1

Read full topic

Ionic v5: Link from iFrame does not load on iOS

$
0
0

@H23 wrote:

I am using an Ionic v5 App on iOS: I use an iFrame from the external service of the “Deutsche Bahn”: https://www.bahn.de/p/view/home/partnerprogramm/anreiseservice.shtml

<iframe src="https://dbaw.specials-bahn.de/149cff8c-5fbd-11ea-8079-00163efd4d20.html" 
        width="100%" 
        height="346" 
        name="iFrame"> 
</iframe>

I specified

<allow-navigation href="*" />
<access origin="*" />

in config.xml, but it is still not possible to open the link of the external iFrame.

Whats the solution for this?

Posts: 1

Participants: 1

Read full topic

Alternatives from Ionic V3 to V4

$
0
0

@Fmhmd wrote:

Hello everyone,

I hope everyone is doing well.

I’m looking for some assistance upgrading from V3 to V4.

The issue we have is that in IonContent both getContentDimensions and resize methods have been removed in Ionic 4. Is there any other way to get the dimensions of and resize it?

Here is some sample code:

  @ViewChild(IonContent)
  content: IonContent
  const dimensions = this.content.getContentDimensions()
  this.pageHeight = dimensions.contentHeight
      // set height for some charts
	…..
	…..
  this.content.resize()

Thank you all for your assistance.

Posts: 1

Participants: 1

Read full topic

Viewing all 49526 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>