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

Ionic cordova run android: error in opening zip file

$
0
0

You are not running the command I gave you. You still have an ionic in front of it.


Ionic cordova run android: error in opening zip file

$
0
0

I'm sorry.I didnt understand you.
file.txt

ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_65
Subproject Path: CordovaLib
Unzipping C:\Users\Muhammet Tayyip\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3-all.zip to C:\Users\Muhammet Tayyip\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9

but

Best way to handle authenticated areas in app?

$
0
0

I have some pages in my app that should only be accessible after the user logged in. If the API indicates he uses auth, he should be shown the login page again. What are the best practices to implement this?

I know @rapropos wrote about this somewhere, but I can't find it now :frowning:

Longer running background process (synching huge amounts of data) - general pointers?

$
0
0

Observable.concatAll()

If you want to query foo1 only once, even if the app stops and restarts later, one way is to store the result of foo1 in local storage, along with a boolean flag that says foo1 has already been queried.

Error when i run the comand "cordova build android"

Ionic cordova run android: error in opening zip file

$
0
0

Could you please show the whole file.txt? Or is this it? The screenshot only shows part of the output, and not the important/interesting stuff.

This by the way shows there are still problems with your gradle.

Error when i run the comand "cordova build android"

$
0
0

I can't see a thing. Please post the error message as text.
(Add " > file.txt" to log the output of the command to a file)

Ionic cordova run android: error in opening zip file

$
0
0

This is file txt only 5 lines

ANDROID_HOME=C:\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_65
Subproject Path: CordovaLib
Unzipping C:\Users\Muhammet Tayyip\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3-all.zip to C:\Users\Muhammet Tayyip\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9

How to call methods of other java classes while creating plugins for ionic?

$
0
0


I Have created service using native android code to wake up the app for every 2 sec.The only problem is i am unable to call Mainactivity schedulealarm() method if i am trying to call that method from backgroundservicewithalarm class i am getting error can any one help me with this how to call?

Error when i run the comand "cordova build android"

$
0
0

Like that ?

Error: ./~/firebase/app/shared_promise.js
Module not found: Error: Can't resolve 'promise-polyfill' in 'C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\firebase\app'
resolve 'promise-polyfill' in 'C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\firebase\app'
Parsed request is a module
using description file: C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\firebase\package.json (relative path: ./app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\firebase\package.json (relative path: ./app)
resolve as module
looking for modules in C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules
using description file: C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\package.json (relative path: ./node_modules)
using description file: C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\package.json (relative path: ./node_modules/promise-polyfill)
as directory
C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.json doesn't exist
[C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill]
[C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill]
[C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.ts]
[C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.js]
[C:\Users\espem\Desktop\Universidad\Desarrollo de Apps\Practicas\node_modules\promise-polyfill.json]
@ ./~/firebase/app/shared_promise.js 37:35-62
@ ./~/firebase/app/firebase_app.js
@ ./~/firebase/app.js
@ ./~/firebase/firebase-browser.js
@ ./src/app/app.module.ts
@ ./src/app/main.ts

Longer running background process (synching huge amounts of data) - general pointers?

$
0
0

I'll take the chance and ask the newb question:
Why Observables and not Promises?

Longer running background process (synching huge amounts of data) - general pointers?

$
0
0

Ok, that makes sense. Is there a library that takes care of that (basically a queue for worker distribution) or should this be implemented manually?

Ionic cordova run android: error in opening zip file

$
0
0

my android studio gradle 4.0 but ionic 3.3 why?
How do I change it?

*** process.env.ENV is not defined, assuming 'prod' env

$
0
0

I have this warning in my console every time I open my app. It is probably harmless, but I want to know why this is appearing and who is causing it:

*** process.env.ENV is not defined, assuming 'prod' env

Here is a screenshot:

Any ideas?

Component color change (cache or someting else)

$
0
0

Hi, I am new developer on ionic framework

I try to change navbar color but it does not work

its my scss:

$colors: (
  navbar-color: #5c6bc0,
  primary:    #488aff,
  secondary:  #32db64,
  danger:     #f53d3d,
  light:      #f4f4f4,
  dark:       #222
);

And my html code:

  <ion-navbar color="navbar-color">
    <ion-title text-center>Çabuk Yazdır</ion-title>
  </ion-navbar>

But its show default color.

What I do for this ? this reason is cache? If reason is cache how I clear it ?


Error when i run the comand "cordova build android"

$
0
0

Almost. Please the whole output, also the correct one including the command your are executing. And then format it:

Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Data Sharing between two ios apps

Longer running background process (synching huge amounts of data) - general pointers?

$
0
0

One or the other might be easier, depending on your API. If you can choose, though, Observables feel like a better fit for your problem statement. (Though I've misunderstood your problem at least once already so who knows!) The issue is that you have more control over error handling with Observables. For example, if there's an error with an Observable, you can set your Observable to try again in five minutes. If a Promise rejects, the only thing you can do is return Reject. This also means that handling errors in Observables is more subtle and difficult than what most synchronous programmers are used to. So using Observables would probably require more of a learning curve. That was certainly true for me, and I'd say I'm only about 75% there.

Regarding your other question, there might be a library, I don't know. I'd implement it manually with an immutable Map<fooID, dataReceived>, and write to the Map as data arrived, simultaneously storing it in local storage. I don't think that step is hard. The hard part to what you describe is handling errors. Make sure you always get everything even if the internet connection is severed at the worst possible time.

Ionic cordova run android: error in opening zip file

$
0
0

Again: This has nothing to do with Ionic, this is a pure Cordova and Android thing.

You cordova requirements output actually shows you have 3.2 installed. Probably it tries to upgrade to 3.3 when running the build? No idea.

If I were you I would just uninstall Gradle, Android SDK, Android Studio, Java and everything that is connected to it and just start new from the beginning.

How to lazy load images?

$
0
0

I have a long list of items with images. I only want to load the images when the items are actually to be scrolled into view. Are there ready made libraries or implementation for that available? Any best practices?

Viewing all 228529 articles
Browse latest View live


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