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

Problen with diagnostic and geolocation on Android +6

$
0
0

@Jalvarez05 wrote:

hello guys.

I am trying to getcurrent position using geolocation and diagnostic , but it doesnt function well on android device +6 .

I’ve used observables to achieve that :
>

this._gps.diagnosticGPSFlatMap()
.flatMap(res => {
if (res)
{
let options={ maximumAge: 3000, timeout: 5000, enableHighAccuracy: true };
return Observable.fromPromise(this.geolocation.getCurrentPosition(options));
}
else
return Observable.throw(“errorGPSEnabled”);
})
.flatMap(res => {
this.lat = res.coords.latitude;
this.lng = res.coords.longitude;
return this.callObservablesToPrintMap();
})
.subscribe(results => {
alert(“PRINT MAP WITH MY POSITION”)
}, error => {
alert(“ERROR”+JSON.stringify(error));
this.showMap = false;
console.log(“ERROR” + JSON.stringify(error))
if (error === “errorGPSEnabled”) {
this.activateGPS()
} else if (error === “appLocationDenied”) {
this.navCtrl.pop().then(() => this.diagnostic.requestRuntimePermission(this.diagnostic.permission.ACCESS_FINE_LOCATION))
.then(()=>console.log(“OK”))
.catch(error=>console.log(error));
}
})

My service is :
diagnosticGPSFlatMap(): Observable {
let locationAuthObs = Observable.fromPromise(this.diagnostic.isLocationAuthorized());
let locationEnabledObs = Observable.fromPromise(this.diagnostic.isLocationEnabled());

return locationAuthObs
  .flatMap(res => {
    if (res)
      return locationEnabledObs;
    else
      return Observable.throw("appLocationDenied")
  })
  .catch(error => {
    return Observable.throw(error)
  });

}
I’ve control if app location authorized is ok and if Gps is enable.

And I’ve catched errors to user turn on GPS or the app show alert to authorize app gps.

On android +6 I am getting error : {}

On android -6 , it function well

Could someone help me ?

Posts: 1

Participants: 1

Read full topic


Set Max Year on ionic datetime don't refresh month

$
0
0

@ravo93 wrote:

I need to set max date on ionic dateTime (ISOString es: 2021-03-05T16:49:39.197+01:00), When I change year going back (es:2019), it don’t show all month, but only January february and march.
How can I show all the remaining months?

Html example

<ion-datetime max="2021-03-05T16:49:39.197+01:00"></ion-datetime>

This is what I see on my program:
Cattura

Posts: 1

Participants: 1

Read full topic

@ionic/react starter templates

$
0
0

@jjdev wrote:

Hello everyone!

I have been learning Ionic and Angular for the past 3 years now, since the Angular 2/Ionic v2.

With the release of Ionic 4 and becoming framework-independent, I decided to learn React since it is the larger job market, because I am worried if Ionic is universally available, no one will need my Angular skills :cry:

So far, there has not been much documentation regarding Ionic with React yet, since it is still v0.0.5, so I thought I would dive right in and start contributing to the community.

I have extended facebook’s create-react-app package to create the same blank, sidemenu, and tabs starter templates for React that we are all familiar with in Angular.

Let me know if I have made any errors, can make any improvements, or anything else I should try to demo for @ionic/react


Blank

$ npm install -g create-react-ionic-blank
$ create-react-ionic-blank my-blank-app

Sidemenu

$ npm install -g create-react-ionic-sidemenu
$ create-react-ionic-sidemenu my-sidemenu-app

Tabs

$ npm install -g create-react-ionic-tabs
$ create-react-ionic-tabs my-tabs-app

Posts: 1

Participants: 1

Read full topic

Same header and footer for all app ionic 4

$
0
0

@fsergio wrote:

Hello!, i am noob ionic developer.
I need make one app, with single header and footer. Into one page in ionic 4
Example:
-header

  • N-1 Pages here!
    -footer
    I need about make inherit pages into pages.
    In angular 4.xxx is really easy.

Posts: 1

Participants: 1

Read full topic

How to dismiss the ion-loading?

$
0
0

@raz-ride4you wrote:

From the official Ionic docs:
[https://ionicframework.com/docs/api/loading](See it here)

async function presentLoading() {
  const loadingController = document.querySelector('ion-loading-controller');
  await loadingController.componentOnReady();

  const loading = await loadingController.create({
    message: 'Hellooo',
    duration: 2000
  });

  await loading.present();
}

That’s great. How to dismiss it programatically?

Posts: 1

Participants: 1

Read full topic

Failed to load resource pointed in script tag in src/index.html

$
0
0

@ferreat wrote:

Hi,
I am trying to integrate a payment platform (Culqi) in my Ionic application. According to the docs, I have to include the following in src/index.html at the end of the body:

< script src=“https://checkout.culqi.com/js/v3” ></ script >

That loads the Culqi Checkout JS library on board. My App is able to successfully use the library and its methods on the web (localhost) and on an Android device. On an iOS device the App won’t be able to load the library. I can see an error in the Safari web inspection console:

Failed to load resource: the server responded with a status 404 ()
https://checkout.culqi.com/js/culqijs.min.js.map

What is interesting here is that the App after the build process for iOS seems to have changed the URL from where it should retrieve the library. I don’t know whether the /v3 at the end of the URL has something to do with it. For the record, if you don’t use the /v3 at the end you get to possibly a previous version of the library which has a tag that points to /culqijs.min.js.map, which may be lead to think that the compiler is not considering the /v3 part of the URL… but the question in any case is why?

I don’t know if this has to do with polyfills or not but I also see in the Safari console the following error:

Error: Network Error … runTask - polyfills.js:3:109116

Again, the App does what is supposed to do on the browser and on an Android device… Any idea what might be going on here on iOS??

Posts: 1

Participants: 1

Read full topic

Error: Network Error

$
0
0

@ferreat wrote:

Hi,
I get the following error in the Safai console when inspecting my Ionic app:

Error: Network Error … runTask - polyfills.js:3:109116

It is weird as I don’t see it on Chrome or when inspecting an Android device.

Any idea of what that means?

Posts: 1

Participants: 1

Read full topic

Error build android app in ionic 4


Ionic 4 - android release build error

$
0
0

@nuvoaire wrote:

I’m trying to build a release version APK but am experiencing the follwing error:

Caused by: org.gradle.api.GradleException: Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:

android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

I don’t know which file I am supposed to add this too, … some posts have said add it to the build.gradle file … when I try to do this, I get the following error:

org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file ‘F:\N\NuvoAire\users\Larry\App\src\ozone-treatment-calculator\android\build.gradle’ line: 29
A problem occurred evaluating root project ‘android’.
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:154)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:55)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.internal.exceptions.LocationAwareException: Build file ‘F:\N\NuvoAire\users\Larry\App\src\ozone-treatment-calculator\android\build.gradle’ line: 29
A problem occurred evaluating root project ‘android’.
at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:49)
at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:152)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:55)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.GradleScriptException: A problem occurred evaluating root project ‘android’.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:206)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:211)
at org.gradle.configuration.BuildOperationScriptPlugin$1$1.run(BuildOperationScriptPlugin.java:69)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:66)
at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:48)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:105)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:68)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:687)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:140)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:41)
at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:274)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:182)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:141)
… 67 more
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method android() for arguments [build_8katbs3tqlg23q0gwpy272kgg$_run_closure3@228561f1] on root project ‘android’ of type org.gradle.api.Project.
at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:179)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.methodMissingException(BasicScript.java:160)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:164)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:82)
at build_8katbs3tqlg23q0gwpy272kgg.run(F:\N\NuvoAire\users\Larry\App\src\ozone-treatment-calculator\android\build.gradle:29)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)
… 103 more

any thoughts?

Posts: 1

Participants: 1

Read full topic

Why can't I export my App into a App That I can upload on my site?

$
0
0

@Soxine wrote:

Why can’t I turn my Ionic Creator 3.2.0 App into a Bunch Of HTML/CSS/JS Files and upload them straight-up to my website?

I can export the app but I can’t just straight-up upload the app, why?
why don’t we have a option for this?

Posts: 1

Participants: 1

Read full topic

Ion refresher bug

$
0
0

@vorex4 wrote:

Hi, i using this refresher but when i try testing him my application fixed.

I recording this => https://youtu.be/SXutFfRxnJQ
When i try scroll down after refresh ionic fixed and again try refresh.

Can you help me? What can i do to repair this :frowning:

My code:

  <ion-refresher slot="fixed" (ionRefresh)="products.refreshProducts($event)">
    <ion-refresher-content
    ></ion-refresher-content>
  </ion-refresher>

Posts: 1

Participants: 1

Read full topic

Ionic firebase pagination

$
0
0

@ndblackandblue wrote:

Hi everyone, can someone help me this, first all english its not my native langague, so i can said something wrong, i’m try to make a chat, and from some reason i get only get from last 80 messages, one friend told me its limit from ionic and firebase, can someone tell me this? if its that true, and how i can make pagination with firebase using ionic?

Posts: 2

Participants: 2

Read full topic

Sqlite - Local Storage - Json

$
0
0

@Samide wrote:

Hello everyone I want to build an Offline Recipes App with Ionic 4 and Angular 7, I want to use Sqlite to save data locally but I don,t want to fill the Database in ionic project because it’s a lot of Records to wright, so I want to Create the database with Sqlite Studio and attache it to my project is that possible in Ionic 4, If no Please what do you suggest Local Storage or Local Json file, But if I use Local Storage i won’t be able to store the data Dynamically.
Please excuse my English, Thank you in advance

Posts: 1

Participants: 1

Read full topic

Cordova build fail

$
0
0

@JerryBels wrote:

Hello,

So I tried to install a new plugin in my (working) Ionic app, and that would be https://ionicframework.com/docs/native/firebase-dynamic-links/

I had an odd error, so I tried a few things and ultimately got back to where I was using a git reset to completely undo what have been done.

… But the error won’t disappear.

I tried to upgrade Cordova and Ionic, to remove node_modules and npm install again, to remove and add back Android platform… nothing helps.

cordova build android
cordova-android-firebase-gradle-release: Android platform: V7+
cordova-android-firebase-gradle-release: No custom version found in config.xml - using plugin default
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-android-support-gradle-release\azkara-cordova-android-support-gradle-release.gradle
Android Studio project detected
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
config file res/values/facebookconnect.xml requested for changes not found at C:\Users\JB\Dropbox\dev\azkara\platforms\android\res\values\facebookconnect.xml, ignoring
cordova-android-firebase-gradle-release: Android platform: V7+
cordova-android-firebase-gradle-release: No custom version found in config.xml - using plugin default
cordova-android-support-gradle-release: Android platform: V7+
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle
cordova-android-support-gradle-release: Wrote custom version '27.+' to C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-android-support-gradle-release\azkara-cordova-android-support-gradle-release.gradle
Preparing Firebase on Android
ANDROID_HOME=C:\Users\JB\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_171
studio
:wrapper

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
+-----------------------------------------------------------------
| cordova-android-firebase-gradle-release: 15.+
+-----------------------------------------------------------------
+-----------------------------------------------------------------
| cordova-android-support-gradle-release: 27.+
+-----------------------------------------------------------------
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_889mq4973ul5dy09k37yyn7v6.run(C:\Users\JB\Dropbox\dev\azkara\platforms\android\app\build.gradle:155)

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-support-google-services\azkara-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   > Cannot add extension with name 'googleServices', as there is an extension already registered with that name.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 1s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\JB\Dropbox\dev\azkara\platforms\android\cordova-support-google-services\azkara-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   > Cannot add extension with name 'googleServices', as there is an extension already registered with that name.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 1s
[ERROR] An error occurred while running subprocess cordova.

I really need help understanding what the hell happens and how I can get over it.

Posts: 1

Participants: 1

Read full topic

How to downgrade from Ionic 4 to 3.20

$
0
0

@renasance21 wrote:

Im having troubles understanding version 4 because I dont have tutorials yet to base on and want to revert back to 3. Currently im back to ionic 3.20. Started a blank project to test it out. When I serve it runs okay, but when I ‘npm install’ it does this.

is this okay? or should I downgrade my angular as well? npm global packages here:
image

Posts: 1

Participants: 1

Read full topic


I cannot build my appication

$
0
0

@brulao wrote:

Hi, please help me. I cannot generate a build/apk for my app, the error log is:

brulao@brulao-notebook:~/Documentos/workspaces/ionic/calculaIMC$ ionic cordova build android
The Ionic CLI has an update available (3.20.0 => 4.10.3)!

[WARN] No write permissions for global node_modules--automatic CLI updates are 

       disabled.
       To fix, see https://docs.npmjs.com/getting-started/fixing-npm-permissions
       
       Or, install the CLI update manually:
       
       npm i -g ionic@latest
       

Running app-scripts build: --platform android --target cordova
[21:18:12]  build dev started ... 
[21:18:12]  clean started ... 
[21:18:12]  clean finished in 70 ms 
[21:18:12]  copy started ... 
[21:18:12]  deeplinks started ... 
[21:18:12]  deeplinks finished in 42 ms 
[21:18:12]  transpile started ... 
[21:18:27]  transpile finished in 14.35 s 
[21:18:27]  preprocess started ... 
[21:18:27]  preprocess finished in less than 1 ms 
[21:18:27]  webpack started ... 
[21:18:27]  copy finished in 15.29 s 
[21:18:32]  webpack finished in 5.07 s 
[21:18:32]  sass started ... 
[21:18:34]  sass finished in 2.14 s 
[21:18:34]  postprocess started ... 
[21:18:34]  postprocess finished in 6 ms 
[21:18:34]  lint started ... 
[21:18:34]  build dev finished in 22.36 s 
> cordova build android
Android Studio project detected

[21:18:37]  lint finished in 2.82 s 
ANDROID_HOME=/opt/android/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details


FAILURE: Build failed with an exception.

* Where:
Build file '/home/brulao/Documentos/workspaces/ionic/calculaIMC/platforms/android/CordovaLib/build.gradle' line: 41

* What went wrong:
A problem occurred evaluating project ':CordovaLib'.

> Failed to apply plugin [id 'com.android.library']
   > 
Minimum supported Gradle version is 4.10.1. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in /home/brulao/Documentos/workspaces/ionic/calculaIMC/gradle/wrapper/gradle-wrapper.properties to gradle-4.10.1-all.zip


* Try:
Run with --stacktrace
 option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED
 in 10s
(node:2132) UnhandledPromiseRejectionWarning: Error: /home/brulao/Documentos/workspaces/ionic/calculaIMC/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file '/home/brulao/Documentos/workspaces/ionic/calculaIMC/platforms/android/CordovaLib/build.gradle' line: 41

* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> Failed to apply plugin [id 'com.android.library']
   > Minimum supported Gradle version is 4.10.1. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in /home/brulao/Documentos/workspaces/ionic/calculaIMC/gradle/wrapper/gradle-wrapper.properties to gradle-4.10.1-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 10s
    at ChildProcess.whenDone (/home/brulao/Documentos/workspaces/ionic/calculaIMC/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
(node:2132) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2132) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

brulao@brulao-notebook:~/Documentos/workspaces/ionic/calculaIMC$ ^C

Posts: 1

Participants: 1

Read full topic

Native Audio asset not found

$
0
0

@danielcsrs wrote:

Hello friends!

I’m trying to play custom songs with Native Audio, i did as recommended documentation, but does not work.

The error message is: (NATIVE AUDIO) Asset not found. (assets/audio/custom.mp3)

I searched and read into forum some posts, but not find any practice solution.

My code that’s here:

this.platform.ready().then(() => {
  this.nativeAudio.preloadComplex('id1', 'assets/audio/custom.mp3', 1, 1, 0).then(() => {
    // after loaded

    this.nativeAudio.play('id1', () => console.log('notificationSong is done playing'));
  }).catch(error => {
    console.log(error);
  });
})

Thats code is started in my ionViewDidLoad of page, in this event i start a local-notification and it works.

Where i can be wrong?

Posts: 1

Participants: 1

Read full topic

Ionic start projectname blank --type=angular works weird

$
0
0

@pdj wrote:

Hello :slight_smile:

I made project with command ionic start projectname blank --type=angular
so that I can create ionic 3 project!

but it works weird…like ask me to connect appflow…(I said no)
anyway
the result was weird

from what I have known,
there’s src/app/pages folder which contain html/.ts/.scss files.
but the result is like below. is it ionic 4?

and what happening when I command ionic cordova run android --device to check on my device,
it comes with second screen error. (I’ didn’t touch any of code…so it should work)

Posts: 2

Participants: 2

Read full topic

How to redirect to specific route in ionic4 on click of push notification?

Cordova platform is not detecting in ionic v3

$
0
0

@yashwanth493 wrote:

Hi all,
I stuck in a problem that in my app I am detecting the platform using
this.platform.is(‘cordova’) which should as true when we run the app in android emulator but I am getting that as false. If i change to this.platform.is(‘mobile’) this will work.

Also, when I debug in inspector, I am getting as ‘deviceready is not fired in 5000ms’ So I suspect it is problem with cordova is not being called when we are checking platform.
Please let me know how we can proceed with this.

Posts: 1

Participants: 1

Read full topic

Viewing all 70442 articles
Browse latest View live


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