Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70435 articles
Browse latest View live

How to create a smooth transition when moving from modal to another page in Ionic 5 app?

$
0
0

@Sweg wrote:

In my Ionic 5 / Angular app, I am trying to navigate from a Modal to another page in the app.

I’m able to navigate & close the modal, but the transition isn’t smooth.

I don’t know how to explain it exactly, but it just doesn’t look right.

Here is the button on my modal:

<ion-button color="primary" (click)="onSendMessage()">Send Message</ion-button>

onSendMessage() {
    this.modalCtrl.dismiss(null, 'cancel'); //
    this.router.navigateByUrl('conversation-list'); // need to smoothen out this transition
  }

As I said, this works "functionality-wise", but is there a way to make the smooth transition?

Thanks a lot!

Posts: 1

Participants: 1

Read full topic


Add platform android : Failed because of upload images error

$
0
0

@ravikab wrote:

Iam using ionic 3 and every time when i execute ionic cordova platform add android I get the below pasted error.

Is the server down? How can it be solved?

ionic cordova resources android --force
:heavy_check_mark: Collecting resource configuration and source images - done!
:heavy_check_mark: Filtering out image resources that do not need regeneration - done!
:heavy_multiplication_x: Uploading source images to prepare for transformations - failed!
HTTP Error 503: POST https://res.ionic.io/api/v1/upload

cordova@8.1.2
ionic@3.20.0
cordova-android@~7.1.1

Posts: 1

Participants: 1

Read full topic

HTTP iOS url string

$
0
0

@basti wrote:

Hi, I try to deal with the native HTTP and pass some data via get to a server. On android it works without any problem.
On iOS there is unfortunately this error:

***** Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:], /Users/.../Plugins/cordova-plugin-advanced-http/AFURLRequestSerialization.m:347**

A search brought that the problem should be in the provided url, but on Android the same url is no problem.
Here is a demo-url which crashes:

http://demo.com/app-set.php?id=GOZFGHET&klasse=3&stunde=112&uebungen=[{"title":"Hampelmann","uebung":"","saetze":3,"wiederholungen":10,"done":false}]&wow_id=QVTOPGLD

Could there be something with this url?

Posts: 1

Participants: 1

Read full topic

Want to download youtube video?

$
0
0

@convertmp3 wrote:

if you want to convert your favorite youtube video to mp3 and download easily its free tool and safe website you can visit website convertmp3 its convert your tube video easily.

convert mp3 video

convert mp3 for youtube

convert mp3 youtube

youtube mp3 converter online

youtube to mp3 cc

youtube mp3 free

youtube convert mp3

i suggest same tool Ytmp3Conv its free and safe.

youtube mp3 online

youtube to mp3 hd

youtube mp3 music

Posts: 1

Participants: 1

Read full topic

Best Ingineering Institute in Delhi NCR, UP

Streaming videos are not playing in IOS

$
0
0

@VigneshBalakrishnan wrote:

Hi all,
I have using the html5 video tag to stream media files from aws. IOS devices are not playing videos, even mp4 files are not playing. Could any one please help me to solve this issue, thanks.

Posts: 1

Participants: 1

Read full topic

Ngrx in Ionic 5

$
0
0

@zornic wrote:

I have few concerns when using ngrx in mobile app with Ionic 5:

  1. Performance issues on mobile devices. = ngrx is state management so all data from API will be stored in memory and accessible all the time. Could this effect some older devices(e.g. android 4.4)?

  2. Too much ngrx boilerplate can increase app bundle size.

  3. Can’t use ngrx/data due to a lot of limitations

  4. ngrx is 3rd party library. Is it 100% compatible with Ionic Angular?

Is there anyone out there who has faced the similar issues?

Posts: 1

Participants: 1

Read full topic

Submit Your Free Guest Post site

$
0
0

@dariyatim12 wrote:

Are you searching for article submission for a platform where you can freely express your views in a form of article and image submission which is worthy and informative then you should definitely try guest node which is the one you are looking for?
Submit your written article and your created images here for free also you will get a do-follow link if you want.

Posts: 1

Participants: 1

Read full topic


Please Help: TypeError can't assign to property

$
0
0

@AIBug wrote:

Sorry to bother you, but I really need help :frowning: i can’t figure out how to make this submit correctly :frowning:

Whenever I hit the submit button, it says:
ERROR TypeError: “can’t assign to property “username” on “Bob Jones”: not an object”
onSignup signup.ts:37
View_SignupPage_0 SignupPage.html:72

I don’t understand why it won’t let me set Bob Jones to “fullName” or how to do it :frowning:

here is my signup.html:

<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-menu-button></ion-menu-button>
    </ion-buttons>
    <ion-title>Sign-Up</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>

  <div class="signup-logo">
    <img src="assets/img/officialLogo.jpg" alt="Ionic Logo">
  </div>

  <form #signupForm="ngForm" novalidate>
    <ion-list lines>
      <ion-item class = "backColor">
        <ion-label position="stacked" color="primary">Full Name</ion-label>
        <ion-input [(ngModel)]="signUpAll.fullName" name="fullName" type="text" #fullName="ngModel">
        </ion-input>
      </ion-item >
     
      <ion-item class = "backColor">
        <ion-label position="stacked" color="primary">E-mail</ion-label>
        <ion-input [(ngModel)]="signUpAll.email" name="email" type="text" #email="ngModel">
        </ion-input>
      </ion-item>
     
      <ion-item class = "backColor">
        <ion-label position="stacked" color="primary">Phone Number</ion-label>
        <ion-input [(ngModel)]="signUpAll.phoneNumber" name="phoneNumber" type="text" #phoneNumber="ngModel">
        </ion-input>
      </ion-item>
    </ion-list>
    
    
      <p class="ion-padding-start ion-padding-end alignText" color="primary">
        Receive Text Message and E-mail Updates About Freedom Church?
      </p>
 <div class="alignText">
      <ion-checkbox name="text" checked="true" color="dark"></ion-checkbox>
    
      <ion-label class="ion-padding-start ion-padding-end">Text Messages </ion-label>
   
      <ion-checkbox name="text" checked="true" color="dark"></ion-checkbox>
  
      <ion-label class="ion-padding-start ion-padding-end">E-Mails </ion-label>
    </div>
      
    <div class="ion-padding">
      <ion-button (click)="onSignup(signupForm)" type="submit" expand="block">Create</ion-button>
    </div>
  </form>

</ion-content>

here is my signup.ts:

import { Component } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Router } from '@angular/router';

import { UserData } from '../../providers/user-data';
import Parse from 'parse'


@Component({
  selector: 'page-signup',
  templateUrl: 'signup.html',
  styleUrls: ['./signup.scss'],
})
export class SignupPage {
  signUpAll = {fullName:'', phoneNumber:'', email:''}
  password: string;
  username: string;
  isSigningup: boolean;
  submitted = false;
  
  
  

  constructor(
    public router: Router,
    public userData: UserData
  ) {}

  onSignup(form: NgForm) {
    this.password = "hiMe1235"
    this.username = "hello12345"
    this.submitted = true;
   
    Parse.User.signUp(this.password, this.username, this.signUpAll.fullName, this.signUpAll.phoneNumber, this.signUpAll.email).then((resp) => {
      console.log('Logged in successfully', resp);
    }, err => {
      console.log('Error signing in', err);
    });

    if (form.valid) {
    
     
    }
  }
}

please help if you can, sorry to bother.

Posts: 1

Participants: 1

Read full topic

Ionic 3 code convert into ionic 5 or 4

$
0
0

@AvkAvk wrote:

blePopup() {
let alert = this.alertCtrl.create();
alert.setTitle(‘Select NautAlert Unit’);
for(let i=0; i< this.devices.length; i++) {
alert.addInput({
type: ‘radio’,
label: this.devices[i].name,
valae: this.devices[i].id
});
}
alert.addButton(‘Cancel’);
alert.addButton({
text: ‘Ok’,
handler: device => {
//this.setStatus('Connecting to ’ + (device.label || device.value));
//this.setStatus(JSON.stringify(device));
// This is not a promise, the device can call disconnect after it connects, so it’s an observable
this.ble.connect(device).subscribe(
peripheral => this.onConnected(peripheral),
peripheral => {
this.showAlert(‘Disconnected’, ‘The peripheral unexpectedly disconnected’);
this.disconnect();
}
);
}
});
alert.present();
}

for ionic developer

Posts: 1

Participants: 1

Read full topic

Ionic v4 Page Not Available Error when hosting it as a website

$
0
0

@bochey1314 wrote:

so I build web app with ionic v4 angular (tabs style) recently. the problem is that i m constantly getting the “webpage not available” error randomly when I try to access my site on the server end. It happen very frequently on the mobile phone browser. I would say it happen 1 out of 10 hit/refresh. does any body have any idea what went wrong?

I tried to start a brand new project with “ionic start myApp tabs” and I got the same error. the only thing i change is to use HashLocationStrategy and change the to to fix the refreshing page not found issue. I have been researching on this issue for days and found no answer. If any one know what the problem is, please let me know. thanks in advance.

Posts: 1

Participants: 1

Read full topic

Open device settings with Capacitor

$
0
0

@Jongbonga wrote:

I’m trying to find a way to open the settings/preferences app with capacitor but I’m unsuccessful.

App.canOpenUrl({ url: 'com.apple.Preferences' }) is failing with error message -canOpenURL: failed for URL: "com.apple.Preferences" - error: "Invalid input URL"

I’m not sure if I’m doing it wrong or if it’s even possible with capacitor to open native app…?

this article open the facebook app, but I can’t find a way for native app

Posts: 1

Participants: 1

Read full topic

Ionic Appflow ios build issue

$
0
0

@altobo wrote:

I am trying to build an ios app using ionic appflow. Its breaking with message:

“error: Value for SWIFT_VERSION cannot be empty. (in target ‘App name’ from project ‘App name’)”

Could any one help

Posts: 1

Participants: 1

Read full topic

Master Detail Layout

$
0
0

@varunparmar wrote:

May I know if ionic will ever have a Master Detail Layout, similar to the one achieved using UISplitViewController on iOS. The current split pane layout on Ionic is similar but not exactly Master Detail Layout because it opens a hamburger menu on small screens.

Posts: 1

Participants: 1

Read full topic

Build qr code scanner in ionic4

$
0
0

@itosoft wrote:

hi i want to build qr code scanner app i tried lots of code but doesn’t work
anyone can send me codes or project and help me to compile

Posts: 2

Participants: 1

Read full topic


How to download pdf file other then File transfer plugin

$
0
0

@ayubIonicpro wrote:

I’m facing issues in using file transfer plugin because of multiple issue, I put Authorization token in header part but it’s not working and when file downloaded(if I don’t use Authorization) then file shows invalid format . Is there any workable plugin so that I can use and solve this issue?

Posts: 1

Participants: 1

Read full topic

Problemas con cordova y ionic

$
0
0

@AndresGG wrote:

Hola, estoy usando ionic y luego de hacer una actualización he estado teniendo problemas, no puedo ejecutar comandos como, ionic start my-app, ionic cordova platform add android, ionic cordova plugin add <plugin>, entre muchos mas.

Este es el error que sale cuando intento ejecutar alguno de estos comandos

ionic integrations enable cordova
[INFO] Downloading integration cordova
events.js:288
throw er; // Unhandled ‘error’ event
^
Error: TAR_BAD_ARCHIVE: Unrecognized archive format
at Unpack.warn (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\warn-mixin.js:19:40)
at Unpack.warn (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\unpack.js:188:18)
at Unpack. (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:82:14)
at Unpack.emit (events.js:323:22)
at Unpack.[emit] (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:286:12)
at Unpack.[maybeEnd] (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:402:17)
at Unpack.[consumeChunk] (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:434:21)
at Unpack.write (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:365:25)
at Unpack.end (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:479:14)
at IncomingMessage.onend (_stream_readable.js:679:10)
Emitted ‘error’ event on Unpack instance at:
at errorOrDestroy (internal/streams/destroy.js:108:12)
at Unpack.onerror (_stream_readable.js:746:7)
at Unpack.emit (events.js:311:20)
at Unpack.warn (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\warn-mixin.js:19:12)
at Unpack.warn (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\unpack.js:188:18)
[… lines matching original stack trace …]
at Unpack.[consumeChunk] (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli\node_modules\tar\lib\parse.js:434:21) {
recoverable: false,
cwd: ‘C:\Users\felipe\AppData\Local\Temp\ionic-integration-cordova’,
code: ‘TAR_BAD_ARCHIVE’,
tarCode: ‘TAR_BAD_ARCHIVE’
}

Estoy limitado a la hora de necesitar este tipo de comandos, sin embargo si puedo usar comandos como ionic serve, ionic g page <name>. Estuve buscando y al parecer alguien tiene el mismo problema pero sin resultados. https://forum.ionicframework.com/t/cannot-complete-ionic-start-command/183584

Mi ionic info:

Ionic:
Ionic CLI : 6.5.0 (C:\Users\felipe\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0
Utility:
cordova-res : 0.11.0
native-run : 1.0.0
System:
NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10

De antemano muchas gracias si pueden ayudarme, he perdido mucho tiempo por este problema.

Posts: 1

Participants: 1

Read full topic

Is there a way to reopen the last opened directory to select a file and return the URI?

$
0
0

@leonardofmed wrote:

I’m using the Cordova FileChooser[1][2] and facing a small problem. On the most current Android devices, file selection always starts at root. Is there a way to open the file selection in a specific place on the device? Can I pass this parameter to this library? The only parameter I saw in the repository was to filter by file type.

If not, is there another way to do this, using this library or not?

Posts: 1

Participants: 1

Read full topic

Deprecation of injectCapacitor method

$
0
0

@mandolyte wrote:

There is currently a warning, followed by an error, when Electron is executed after the build:

WARNING: injectCapacitor method is deprecated and will be removed in next major release. Check release notes for mi
gration instructions

Trace
    at getURLFileContents (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js:
7:11)
    at injectCapacitor (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js:20:
33)
    at Timeout._onTimeout (C:\Users\mando\Projects\cecil.new\r2\electron\node_modules\@capacitor\electron\index.js:
156:44)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

After some debugging, I discovered that if I changed this line in ./electron/index.js from init(inject = true) to init(inject = false), then it works fine.

Then I found that this is the fix is already in place in the Github repo, but has not yet been released.

So two questions:

  • when will this fix be released to NPM?
  • any advice on a work-around in the meantime?

Posts: 2

Participants: 2

Read full topic

Having to call detectChanges() when using camera plugin

$
0
0

@Tanakasan1734 wrote:

I’ve that adding the ionic-native cordova camera plugin seemed to break change detection such that I had to call ChangeDetectorRef to get some bound data to change in the UI based on a Segment change- and not just in the component the plugin was added into others across different modules. I swapped it out for the Capacitor camera in Plugins, same problem. If I remove them the issue goes away. Any ideas on why? I have tried versions 1.5.1, 2.0.0 beta and released 2.0.0, same behaviour across all of them.

Posts: 1

Participants: 1

Read full topic

Viewing all 70435 articles
Browse latest View live


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