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

Store Firebase data locally on phone

$
0
0

Hi, I need to get records from Firebase and store them locally in my Ionic 3 app such that every time I open the app, it checks Firebase for changes and updates the local one if need be. It needs to be listening for changes even when the app is closed. Kinda like an email app (when you open an email app, all the previous messages are already there - no need to redownload from the server - and is updated when new messages arrive).

Right now, every time I load the app, it pulls fresh data from Firebase, and when I navigate to a different page and return, it does a fresh pull of data. I’d rather it get all the data one time and store locally, only updating when there’s a change. It should also be listening to Firebase for changes.

How do I achieve that?

Thanks.


Android build falid (The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries)

$
0
0

Has this been solved yet, or do I still have to use the workaround described by Uehara?

HTTP: Onesignal does not accept my message

$
0
0

Try inspecting what’s really being sent to the OneSignal API from your app. You can do that by running in a local browser like Chrome with ˋionic serveˋ, open the developer tools (usually with F12) and choose the “Network” tab. There you can see request headers, payload and reply for every request sent from the browser app.

I assume there is some kind of translation happening when Angular serializes your “body” object into raw post data, e.g. escaping the double quotes.

Android build falid (The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries)

$
0
0

In your project-properties, try changing com.google.android.gms:play-services-analytics from 11.0.1 to 16.0.8.

Good luck.

Ionic 4 modal

Error: Command failed: platform-tools/adb -s DEVICEID shell getprop

$
0
0

same error, on any device and emulator, installing apk manually works fine

Ion-toast change background-color problem

IONIC3 - Tab bar hit boxes off


Ionic3 error AndroidManifest.xml:53:66-112 requires a placeholder substitution but no value for is provided?

$
0
0

Did you solve this issue? I have the same problem – it doesn’t seem to matter which version of the googlemaps plugin – it builds and runs fine for me local but not on AppFlow.

Ionic 4 devapp debugging

$
0
0

I’m experiencing the same error after updating to ionic 5.0.1

[IONIC 4] - How to make infinite scroll with content scroll horizontal?

$
0
0

Thanks man, I’ll do some research on the subject … :metal:

Ionic 3 not rebuilding on file change

$
0
0

Am starting a new project on ionic version 3.20

Every time I update a file, the web page isn’t refreshing/rebuilding, where it suppose to live reload on “localhost:8100”. So am stopping ionic and run “ionic serve” again on every update.

Although when i refresh the web page (localhost:8100) the page is reloading till infinity.

I have uninstall cordova and ionic, and still same issue.

Any solutions please?

theming inside shadow dom - v4

$
0
0

Hi All,

I’m facing some problems with theming ionic components (v4) and shadow DOM. In my ionic-pwa from stencil I even don’t get it to work.

For example:
<ion-button fill="solid" expand="full" color="success">Success</ion-button>

Without shadow DOM enabled this results in a success button as expected.
With shadow DOM enabled, the ion-color-base variable doesn’t seem to point to the success color.

To reproduce it:

  1. Install https://github.com/ionic-team/ionic-pwa-toolkit
  2. Go to this file: https://github.com/ionic-team/ionic-pwa-toolkit/blob/master/src/components/app-home/app-home.tsx
  3. add ‘shadow: true’ after rule 5.
  4. add ‘color=“success”’ to the ion-button

Regards, Peter

Ionic Android App Bundle

$
0
0

Hi,
We generated the bundle with Android Studio.

The steps are:

  1. Launch Android Studio
  2. Go To Import Project (Eclipse ADT, Gradle, etc).
  3. Select Android platform directory in your project (/platforms/android).
  4. Wait to finish the Sync
  5. Go to Build > Generate Sign Bundle
  6. Complete Signing info
  7. Upload de .aab file generated (in path /platforms/android/outputs/

Note: if you have problem related to minSDK version, fix this and make a resync

Error: spawn EPERM issue

$
0
0

Did anyone find out what the solution is? I am having the same problem and thought it was completely environment related but I am having the problem in another environment too. Is it security related?


Ionic 4 Cordova - Run Android Firebase error all of a sudden

Creating Interactive graphics

$
0
0

I am trying to create an interactive graphic on one of my pages that will allow me to click on a body part and it will toggle a value behind the scene and then also toggle a fill effect (filled if selected, not fill if unselected). (See the attached example)

Can anyone point me in the right direction?

Creating Interactive graphics

$
0
0

Use SVG - you can create vector image liek that AND apply clicks etc interactivity

net::ERR_CONNECTION_REFUSED (http://localhost:8080/)

$
0
0

hi i am also facing same issue
import { HttpClient } from ‘@angular/common/http’;
this.http.get(url).subscribe((response) => {
this.appointment_types=response;
});
i am getting result in browser but not getting response in real device in android
please provide a solution i am using ionic 4 i am getting error like
zone.js:3243 GET http://localhost:8100/sockjs-node/info?t=1559937025579 net::ERR_CONNECTION_REFUSED

Package build for ios fails

$
0
0
ionic cordova platform remove ios
ionic cordova platform add ios

works on local, but fails on HUB, with error

Exit status of command 'cordova platform add ios' was 1 instead of 0.
Using cordova-fetch for cordova-ios@5.0.1
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.example.app
	Name: MiAppName
iOS project created with cordova-ios@5.0.1
Source path does not exist: resources\ios\icon\icon-1024.png

Ionic:

Ionic CLI : 5.0.1 (C:\Users\coco\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.4.2
@angular-devkit/build-angular : 0.8.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : 0.3.0
native-run : 0.2.3

System:

Android SDK Tools : 26.1.1 (C:\Users\coco\AppData\Local\Android\sdk)
NodeJS : v10.0.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Viewing all 228565 articles
Browse latest View live