Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228510 articles
Browse latest View live

Creating a popup form that appears only once

$
0
0

How about using some sort of storage - Ionic Storage? In that case, you would save some property which would tell if user has submitted the form before. If the user deletes an app, data from storage will be deleted automatically.


Nav pop two pages back

IONIC 4 : getActiveIndex() is not working in ion-slides

$
0
0

I can’t get the active index properly when using slidesPerView: 1.15 to display a bit of the next slide at the end.

Currently I have three slides created by ngFor, and using @rip3rs solution above but tweaked to:

async slideChanged() {
    const index = await this.sliderRef.getActiveIndex();
    console.log(index);
}

it displays the index as 0, 1, 1 for the three slides instead of 0, 1, 2 which it should show.

Does anyone know how to get the correct index for the third slide using slidesPerView?

How to make page appear only once

$
0
0

I believe only once means smthg like a login page that only appears once when users install the app. After seeing the page, it will never appear again.

How to use navCtrl.parent in ionic4

$
0
0

Thank you for your reply.
You suggest changing the code structure.
But I’d like to use parent and nowhere is written how to use parent in ionic4.
Could you give me an example code for ionic4?

Cannot find module '@ionic-native/file' in ionic 4

$
0
0

Even with
import { File } from ‘@ionic-native/file/ngx’;

It is saying : Cannot find module ‘@ionic-native/file/ngx’

Removing space between ion-header and ion-content

$
0
0

That’s the inspection page I am refering to. Now you have to search in that inspection page your elements and watch if there are margins and/or paddings between elements. You can also click on the elements you want to inspect and analize their css properties.
I think you can find your elements inside app-root.

Help us test the Ionic 5 Release Candidate!


Prevent app to be killed from background

$
0
0

Hi,
I am working on an app which uses cordova-plugin-geolocation service to track live location of logged in users. It works fine if app is in foreground. But when we minimize the app, it stops tracking after specific time(5 minutes or something). To resolve this problem , I change battery sever mode to “No restrictions” manually in phone.
So I am facing two major issues here -

  1. I can not change settings manually in each user’s phone. So please suggest if there is any way in ionic 4 to do this through code.
  2. When I change setting manually the app works fine, but android automatically kill the app during phone call or any kind of notification.
    Please suggest me how can I fix the above problems .
    Thanks in advance.

Explicitly specify a type for created components in ionic 4

$
0
0

bump

Somebody must know… surely?

Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25

$
0
0

Thanks for the prompt response @chameera1. I really appreciate.
I tried what you suggested and still didn’t get a successful build. Here’s what I got this time

gradle2

Here’s what my build.gradle looks like now, after your suggestion.
gradle1

Cordova-plugin-fcm-with-dependecy-updated plugin

$
0
0

We did like you suggested


Here you can see our /platforms/android folder with google.services.json included, then rebuild app using “npx cap add android” (previously we removed android folder) but we still have errors in console:

Configure project :app
FCM PLUGIN GRADLE TOOLS VERSION: 3.5.0google-services.json not found, google-services plugin not applied. Push Notifications won’t work
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/debug]

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException: Cannot add task ‘processDebugGoogleServices’ as a task with that name already exists.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

CONFIGURE FAILED in 7s
Cannot add task ‘processDebugGoogleServices’ as a task with that name already exists.

Dual screen to show data differently - IONIC v4

$
0
0

Respected Ionic community,

I’ve a dual screen Android device(point of sale) Monitor which have two screens and show data separately using Android native app. I want to create my own ionic app to handle both screens. Can anyone help me out in this matter !? I tried to find plugins but unable to find one.

Thank you

Change Ion-fab-button close icon size

$
0
0

Is it possible to change Ion-fab-button close icon class inside shadow dom?
I have tried with everything, editing inside globals.scss, using ::ng-deep but still doesn’t work.
Please help!!

test

Cordova-plugin-fcm-with-dependecy-updated plugin

$
0
0

But a bit strange for us is the fact we didn’t have android folder in folder platforms and created It by ourselves


'Push' and 'Firebase Analytics' plugin conflict

$
0
0

@ [pedroDousseau] did you find any solution?

Passing data from form to an other ionic 4

$
0
0

Hi,
can anyone help me please : i want to validate data in form #form-1 ,then pass it to #form-2 and submite the all there!

ERR_FILE_NOT_FOUND(file:///android_asset/www/index.htm) & ERR_CONNECTION_REFUSED(http://localhost/)

$
0
0

I can run .apk file in Android Studio simulator and in my phone !
I made this .apk with this command : ionic cordova build android
But when i copy this apk to my phone and install it i get these errors !

What is the structure to update the sdk26 to sdk28 in ionic v1

$
0
0

I’m using ionic version1 trying to update to support android 9 and sdk 28, icann’t able to install after i took the build

Ionic emulate fails with *** Terminating app due to uncaught exception 'NSInvalidArgumentException',

$
0
0

I also have same problem, How did you solved it.

Viewing all 228510 articles
Browse latest View live


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