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

Installation problem plugin ionic v3

$
0
0

@goku-dev wrote:

I’m trying to install native ionic plugins, however, every time, the CLI installs a version 5 of the sample plugin (android-full-screen, screen-orientation), from what I understood these are betas versions, or for version 4 of ionic.

I have problems import modules, if we rely on the examples of use of the documentation Ionic v3 no longer work.

Ionic:

ionic (Ionic CLI) : 4.9.0 (C:\Users\BEII6\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 6 other plugins)

System:

NodeJS : v10.15.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

Thank you.

Posts: 1

Participants: 1

Read full topic


Settings provider defaults

$
0
0

@ESSADJI wrote:

What is the best practice to use _defaults in the settings provider (included in the starter app demo)
In other words, where and how can those defaults be defined?

Posts: 1

Participants: 1

Read full topic

Ionic 4: how to switch between two tabbars?

$
0
0

@AndreasK wrote:

In Ionic 3 it was pretty easy to switch between different tab bars simply by assiging a new compontent to the root propert: <nav [root]="rootPage"></nav> in app.component.html.
In Ionic 4 I though it should just as easy as defining two different routes:

  { path: '', loadChildren: './tabs/tabs.module#TabsPageModule' }, // default tabbar
  { path: 'tabs2', loadChildren: './tabs2/tabs2.module#Tabs2PageModule' }

Tabs2PageModule holds the same content as TabsPageModule (ionic starter tabs) by just changing the module name and route prepending ‘2’.
But this its not as soon as I try to activate the route tabs2 I’ll get an error: "Cannot match any routes. URL Segment: ‘tabs2/tab1’
Any idea whats going wrong and how to make it work?

Posts: 1

Participants: 1

Read full topic

Transparent status bar on iPhone X

Ionic v4 PWA: Dealing with root page and physical back button

$
0
0

@aguiarguilherme wrote:

Hi there, Ionicists!

I’m developing a PWA using the v4 (with ng 6.x) with a team. We’re currently close to the end of development for the first phase, but there is a bottleneck we are facing.

Imagine that our current flow of screens is the following: (Yes, there is some kind of exaggeration on the login stuff, but we were required by our customer to follow a pattern they already have on a working software, specially due to our target users)

  • pre-login: The user is prompted to continue authentication or as a guest, which has limited features. It’s the root page when they open the app.
  • login: If the user decides to log in, they input user/password and reset it thru this screen.
  • home: A home screen, with our customer logo and directions to our features, version etc. Just dummy static content. Should be our new root page after log in as authenticated/guest
  • [feature screen]: screens with features required by our customer, such as graphs, data and such.

Our issue is: I was supposed to set the root page before login to our pre-login page, and after the user is authenticated, on home page, so that when they hit the back button, it goes to the root page.

If user goes: HomePage > FirstPage > SecondPage and hit back, they return to home instead of FirstPage or the level of screens he has navigated through - and if they hit again at HomePage, it should close the PWA.

I tried almost everything I saw on forums and internet. Using navigateRoot, changing the Router.navigateByUrl() calls, and such but i can’t get this behavior to work.

Also, platform.backButton.subscribe() doesn’t get triggered on the PWA.

Any tips on how to deal with it? I’m also attaching our app-routing-module.ts for reference.

import { AuthService } from '@services';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PreLoginComponent, OidcComponent, RedirectSilentRenewComponent } from '@components';

const routes: Routes = [
    {
        path: '',
        loadChildren: './pages/pre-login/pre-login.module#PreLoginPageModule',
    },
    {
        path: 'home',
        loadChildren: './pages/home/home.module#HomePageModule',
    },
    {
        path: 'lista-atracacao',
        loadChildren: './pages/lista-atracacao/lista-atracacao.module#ListaAtracacaoPageModule',
    },
    {
        path: 'login',
        loadChildren: './pages/login/login.module#LoginPageModule',
    },
    {
        path: 'yard-kpi',
        loadChildren: './pages/yard-kpi/yard-kpi.module#YardKpiPageModule',
        canActivate: [AuthService],
    },
    {
        path: 'gestao-a-vista',
        loadChildren: './pages/gestao-a-vista/gestao-a-vista.module#GestaoAVistaPageModule',
        canActivate: [AuthService],
    },
    {
        path: 'retencao',
        loadChildren: './pages/retencao/retencao.module#RetencaoPageModule',
        canActivate: [AuthService],
    },
    {
        path: 'tracking-carga',
        loadChildren: './pages/tracking-carga/tracking-carga.module#TrackingCargaPageModule',
        canActivate: [AuthService],
    },
];
routes.push({
    path: '**',
    redirectTo: 'home',
});

@NgModule({
    imports: [RouterModule.forRoot(routes, { useHash: false })],
    exports: [RouterModule],
})
export class AppRoutingModule {}

Posts: 1

Participants: 1

Read full topic

Solved problem

$
0
0

@hasankilic wrote:

i think new update has caused this problem.
We should add;

import { SQLite, SQLiteObject } from ‘@ionic-native/sqlite/ngx’

Posts: 1

Participants: 1

Read full topic

Create gif with gallery images

$
0
0

@slmarcos wrote:

Hello, I need to create a gif using some pictures taken by the camera, does anyone have any idea how I can generate this gif and save it to the device?
Tnks

Posts: 1

Participants: 1

Read full topic

Using ionic 4 with firebase store

$
0
0

@NoorAlhuda1990 wrote:

HI to all , i want to download an image from my firebase store databse to my ionic 4 app and i don’t know what the steps are , can someone tell me what the steps please :sob::sob::sob::sob:

Posts: 1

Participants: 1

Read full topic


Errror using plugin AdmobFree

Unit tests and TDD with Ionic 3/4

$
0
0

@ioclaudio wrote:

Hi,
is it possible to produce unit tests with Ionic?
Which are the suggested tools?

Do you think it is possible to use the TDD (Test Driven Development) with Ionic?

Thank you very much

cld

Posts: 1

Participants: 1

Read full topic

Take and save photo with an overlay image

$
0
0

@slmarcos wrote:

Hello, I need to display an image overlaying the camera image and saving the photo with that image. I can already display the image with the camera using the camera preview plugin, but how can I save the two together as a frame?

Tnks

Posts: 1

Participants: 1

Read full topic

What is wrong with my page transition? Ionic 4 (video)

$
0
0

@johced wrote:

I used a default ionic 4 starter app with side menu after Ionic 4 was released, so it’s the latest version. Then built a new app from that. I’ve changed nothing really apart from adding content. Bare bone app with just functional stuff added.

Is this how it’s supposed to perform? It behaves like this in browser with ionic:serve and deployed to Android. Forcing iOS has the same white space blinking going on.

Have I forgot to enable something in Ionic 4?

Posts: 3

Participants: 2

Read full topic

Best way to get a list of all image & video file url's in camera roll in Android & iOS

$
0
0

@meatloaf4 wrote:

I have been bashing my head against the whole here for a couple hours and still don’t have a great solution.

Does anyone know of the best way to a list of all photo and image url’s in Android & iOS camera roll?

All the cordova plugins that go about trying to accomplish focus on a user choosing photos, whereas I just want url’s to all files in the camera roll.

My thought here is to use https://github.com/apache/cordova-plugin-file potentially to move to the camera roll destination and piece through it that way.

Do you guys have any thoughts on a better solution? Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Ionic v4 error argümanda array must have argümanda help me please

$
0
0

@muratcankuruoffical wrote:

btcservice.ts page

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';


@Injectable({
  providedIn: 'root'
})
export class BtcService {
	  public items:any;

	constructor (public navCtrl: NavController, public http: HttpClient) {
		 this.getData();
  }
    getData(){
    
    let data: Observable<any> = this.http.get('https://api.coinmarketcap.com/v1/ticker/');
    data.subscribe(result =>  {
      this.items = result;
    });
  } 


}

home.page.ts page

import { Component } from '@angular/core';
import { NavController, ModalController } from '@ionic/angular';
import { HttpClient } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { CurrencyPage } from '../currency/currency.page';
import { Router } from '@angular/router';
import { BtcService } from '../btc.service';
//import { Push, PushObject, PushOptions } from '@ionic-native/push';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {
  constructor(private BtcService: BtcService){
	  
  }
}

home.page.html

<ion-list>
 <ion-item [href]="'/currency/' + todo.id" detail="true" *ngFor="let item of BtcService.items">
{{item.id}}
</ion-item>


</ion-list>

Error not:

ERROR Error: Uncaught (in promise): Error: Arguments array must have arguments.
Error: Arguments array must have arguments.
at injectArgs (core.js:1804)
at core.js:15509
at callFactory (core.js:21182)
at createProviderInstance (core.js:21140)
at resolveNgModuleDep (core.js:21115)
at NgModuleRef
.push…/node_modules/@angular/core/fesm5/core.js.NgModuleRef
.get (core.js:21809)
at resolveNgModuleDep (core.js:21120)
at NgModuleRef_.push…/node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:21809)
at resolveDep (core.js:22180)
at createClass (core.js:22052)
at injectArgs (core.js:1804)
at core.js:15509
at callFactory (core.js:21182)
at createProviderInstance (core.js:21140)
at resolveNgModuleDep (core.js:21115)
at NgModuleRef
.push…/node_modules/@angular/core/fesm5/core.js.NgModuleRef
.get (core.js:21809)
at resolveNgModuleDep (core.js:21120)
at NgModuleRef_.push…/node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:21809)
at resolveDep (core.js:22180)
at createClass (core.js:22052)
at resolvePromise (zone.js:831)
at resolvePromise (zone.js:788)
at zone.js:892
at ZoneDelegate.push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
at Object.onInvokeTask (core.js:17280)
at ZoneDelegate.push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
at Zone.push…/node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
at drainMicroTaskQueue (zone.js:601)
defaultErrorLogger @ core.js:15714
push…/node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:15762
next @ core.js:17761
schedulerFn @ core.js:13504
push…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196
push…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134
push…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77
push…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54
push…/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47
push…/node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:13488
(anonymous) @ core.js:17311
push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:391
push…/node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:150
push…/node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:17248
onHandleError @ core.js:17311
push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:395
push…/node_modules/zone.js/dist/zone.js.Zone.runGuarded @ zone.js:164
_loop_1 @ zone.js:694
api.microtaskDrainDone @ zone.js:703
drainMicroTaskQueue @ zone.js:608
Promise.then (async)
scheduleMicroTask @ zone.js:584
push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:413
onScheduleTask @ zone.js:301
push…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:404
push…/node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:238
push…/node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:258
scheduleResolveOrReject @ zone.js:879
resolvePromise @ zone.js:825
(anonymous) @ zone.js:741
webpackJsonpCallback @ bootstrap:25
(anonymous) @ home-home-module.js:1

Posts: 1

Participants: 1

Read full topic

What's the best practice for displaying dynamic images

$
0
0

@djcrmix wrote:

Hi,
I’m trying to create an application that reads dynamically the content from a service connected to a database. My idea was to create a web application that feeds the database and the mobile application will consume the “news” inserted in the database. In my mind, this news will have the content including images. As long as I’m fresh in Ionic I wonder how the images should be moved or loaded in the mobile app, is something I load to a public location a later reference it through the url, or store the image in the db (which I don’t want) or what I have to do with the image in order to feed the app and display it with the content of the news.
Thanks in advance.

PD. I’m actually working in Ionic Beta 4.

Posts: 1

Participants: 1

Read full topic


Google+ APIs and OAuth requests are being shutdown

$
0
0

@dgarber89 wrote:

Has anyone received emails from Google about the Google+ Auth API being shutdown? Any known solutions? Havent found any new cordova plugins.

Posts: 1

Participants: 1

Read full topic

Doubt how to use javascript external libraries

$
0
0

@slmarcos wrote:

Hi, I’m starting now with ionic and I’m doubtful how do I use javascript external libraries in ionic, for example similar to these two links:


How do I proceed with the imports and do I have to do some special configuration?

Tnks

Posts: 1

Participants: 1

Read full topic

Ios doc picker Invalid callback id received by sendPluginResult

$
0
0

@cikcoh wrote:

Hi, i’m using ios document picker.
When i tested it yesterday, this runtime error showed on xcode console

Invalid callback id received by sendPluginResult

If i’m debugging from safari console, nothing shows up, no success/error log

used to work tho,not sure what went wrong
I’ve tried re-installing both cordova plugin and ionic native package,removing and adding platform
None works.

Appreciate any help.

Posts: 2

Participants: 1

Read full topic

Ionic and google plus shutdown

$
0
0

@kevred wrote:

Hi, in the recent news google plus api’s will have a gradual shutdown and no longer be available.

So I have an app that use ionic google plus package to login.

My question is will that package stop’s working all of a sudden, or will it work even after google shutdown the google plus api’s?

Thank you

Posts: 1

Participants: 1

Read full topic

Build Error , Manifest merger

$
0
0

@dipankar123 wrote:

Hello Guys,
I am facing build error after installing cordova-plugin-qrscanner
i have installed QR scanner using this command bellow

ionic cordova plugin add cordova-plugin-qrscanner

npm install @ionic-native/qr-scanner

I have also import this to my app module
but after this when i am building apk, getting err

Execution failed for task ‘:app:processDebugManifest’.
Manifest merger failed with multiple errors, see logs

Not sure but probably problem occurred because of these lines inside androidManifest.xml(Last three Lines)

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />
    <uses-feature android:name="android.hardware.camera" android:required="true" />
    <uses-permission android:name="android.permission.CAMERA" android:required="false" />
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <uses-feature android:name="android.hardware.camera.front" android:required="false" />

also in my android.json

{
    "xml": "<uses-permission android:name=\"android.permission.CAMERA\" android:required=\"false\" />",
    "count": 1
},
{
    "xml": "<uses-permission android:name=\"android.permission.CAMERA\" />",
    "count": 1
 },
{
   "xml": "<uses-feature android:name=\"android.hardware.camera\" android:required=\"true\" />",
   "count": 1
},
{
  "xml": "<uses-feature android:name=\"android.hardware.camera\" android:required=\"false\" />",
  "count": 1
},
{
  "xml": "<uses-feature android:name=\"android.hardware.camera.front\" android:required=\"false\" />",
  "count": 1
}

I also install cordova-plugin-camera to capture images

please help me to solve this

thanks

Posts: 1

Participants: 1

Read full topic

Viewing all 70434 articles
Browse latest View live


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