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

I cannot install cordova-res


Does Android App Bundle also benefit Cordova users?

I'm trying to upload my App for Android TV and the Google team rejects me

$
0
0

While I have never done any Android TV development, those resources are defined in the config.xml file that Cordova reads and merges into the android manifest. You might need to manually build your in Android Studio and edit the files directly.

Good luck!

Local notification exit my device

$
0
0

i’m working with android , so when i try to run it on an emulator it works perfectly but when i run it on a real device it crushes and the app exits so i’m asking if you know the problem . Reminder : i’m working with android
Also i check my device settings because at first i thought that notification settings were the problem but their configuration was fine i’m so confused what’s the problem

i’m using android version 7.1.1

How to write javascript code in typescript

$
0
0

Really what you need to spend a little time on is learning ES6. For example let or const might be the better choice instead of var. Also, I see you use $(), which makes me think you might be leaning in jQuery for DOM access. That also will trip you up with Ionic development.

There are some great tutorials out there and you should be up and coding in ES6 & Typescript in no time

AAPT: error: resource android:attr/fontVariationSettings not found

$
0
0

Managed to get it to build:

changes/added/removed the following plugins:

cordova-plugin-androidx (add)
cordova-plugin-androidx-adapter (add)
cordova-plugin-camera (updated)
cordova-plugin-compat (remove)

changed the target in project.properties to:

target=android-28

project.properties by the end:

target=android-28
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=androidx.legacy:legacy-support-v4:1.0.0
cordova.system.library.2=androidx.appcompat:appcompat:1.0.0
cordova.system.library.3=com.google.android.gms:play-services-analytics:+
cordova.system.library.4=androidx.legacy:legacy-support-v4:1.0.0

Still have no idea why it even started trying to use androidx. The app was building just fine a few weeks ago and I hadn’t changed anything. Oh well, it’s using it now I guess…

Ionic v3 Scroll issue after update iOS 12.2

$
0
0

Hi,
it seems that the problem still exists with Ionic v.4 and @ionic/angular 4.3.0

Ionic:
   Ionic CLI                     : 5.1.0 
   Ionic Framework               : @ionic/angular 4.3.0
   @angular-devkit/build-angular : 0.13.8
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.4.1

A page linked in the sidebar menu scrolls the first time I visit that page with an iOS device, but if you change page and visit again that page it doesn’t scroll.
If you click a button, it scrolls again.

cld

Ionic v3 Scroll issue after update iOS 12.2

$
0
0

I’ve tried this solution on Ionic v.4 but it doesn’t work.
Has anyone solved this problem on Ionic v.4?

Thank you very much

cld


Could not load IOSurface for time string. Rendering locally instead

$
0
0

did you find any solution, I’m facing the same issue.

Headers and footers hiding content?

$
0
0

Anyone found a solution? I’m having the same issue. Is there a way I could just add padding to the top of my router?

Ionic v3 Scroll issue after update iOS 12.2

Use Ionic 4 ion-picker without dialog

$
0
0

I don’t think you can easily do this. However, I have looked at primeng and it appears to have components that would do that.

Ionic v3 Icon button bug on iOS

$
0
0

Hello,

I have big trouble with icon buttons on iOS. On Android it works perfect, but on iOS I have problem with borders on icon inside buttons… I can’t fix them.

icons

My HTML file looks like:

SCSS:

scss

Please, give me solution for that :slight_smile:

Barcode Scanner with Ionic 3 docs

$
0
0

I had the same error, and while declaring it in the providers array I got an error:

image

The problem was the auto-imported Barcode Scanner:

import { BarcodeScanner } from '@ionic-native/barcode-scanner';

At the end of the path there is ngx missing!

This works:

import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';

What is the Default Activity Class Name From AndroidManifest.xml?

$
0
0

For me it was “MainActivity”


Error: ENOENT: no such file or directory, open 'platforms/android/app/build/outputs/apk/debug/app-debug.apk'

$
0
0

Hello,

I have created an app with ionic v3. I am facing issue while running live reload build on a real android device.

> native-run android --app platforms/android/app/build/outputs/apk/debug/app-debug.apk --connect --forward 8100:8100
[native-run] Selected hardware device 8a0ad564
[native-run] Error: ENOENT: no such file or directory, open 'platforms/android/app/build/outputs/apk/debug/app-debug.apk'
[ERROR] An error occurred while running subprocess native-run.

initially, when it was running, that time the debug apk file path was
’platforms/android/build/outputs/apk/android-debug.apk’

but not the path is
’platforms/android/app/build/outputs/apk/debug/app-debug.apk’

I am not able to figure it out exactly what is the cause, I have tried by upgrading versions of these - cordova, ionic-cli, native-run, cordova-android, Android Studio

Here is the ionic info

$ ionic info
       
Ionic:

   Ionic CLI          : 5.0.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.7

Cordova:

   Cordova CLI       : not installed
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : not installed
   native-run  : 0.2.6

System:

   Android SDK Tools : 26.1.1 (/Users/apple/Library/Android/sdk)
   NodeJS            : v11.11.0 (/usr/local/bin/node)
   npm               : 6.7.0
   OS                : macOS High Sierra
   Xcode             : Xcode 10.1 Build version 10B61

I have installed the android platform but it not showing in the info

$ sudo ionic cordova platform add android
Platform android already exists.

Ion-buttons with badges for IONIC 4

$
0
0

Hi, I try this

ion-button {
	ion-badge {
		position: absolute;
		opacity: 0.9;
        top: 0.1rem;
        right: 0.2rem;
		& ~ ion-icon {
			margin-right: 1.2rem;
		}
	}

       <ion-button (click)="message.emit()">
                    <ion-badge color="primary">11</ion-badge>
                <ion-icon name="md-chatboxes">

                </ion-icon>
            </ion-button>

Just remove slot=“icon-only”

Alternative time picker for ionic

$
0
0

I want a time picker without a scroll like ion-datetime.
I am looking at Angular time pickers but none of them work that well with ionic.

Does anyone know any good options?

FCM notification not working when app is kill/closed

$
0
0

Hi. how do you get the device token?

Alternative time picker for ionic

$
0
0


Viewing all 228535 articles
Browse latest View live


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