Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49111 articles
Browse latest View live

Getting the value from a radio-list using FormGroup (Ionic 3, Angular 4)

$
0
0

@markbackhouse wrote:

I have been trying (hopelessly) to take a value from a radio-list form and return its name on another page. Currently I am not really getting an error - rather the challenge object does not seem to be getting passed to the other page at all! All the objects in the array list are listed using their names and it is the name that I need to pass to the other page. Here is my HTML:

<form [formGroup]="challengeForm" (ngSubmit)="logchallengeForm(form)">
  <ion-list radio-group formControlName="challenge" name="radio" >
    <ion-list-header>OR SELECT FROM THE LIST:</ion-list-header>
    <ion-item  *ngFor="let challenge of challengeList">
      <ion-label >{{challenge.name}}</ion-label>
      <ion-radio (ionSelect)="select(challenge)" ></ion-radio>
    </ion-item>
    <button ion-button full color="primary" type="submit">Save challenge</button>
  </ion-list>
</form>

Here is how I declared the FormGroup in the constructor:

this.challengeForm = formBuilder.group({
      challenge: ['']
});

And here is my logChallengeForm(form) method:

logOcaChallengeForm(form){
    this.challengeProvider.addChallenge(this.challengeForm.value.challenge);
    this.navCtrl.push(ChallengePage);
}

The addChallenge method in the provider literally just pushes the given object into an array.

Definitely part of the problem is that I am unable to find and adapt other peoples’ forms from the internet! They all seem to be using slightly different versions of Ionic/Angular/TypeScript/JS which, with my lack of experience, I am getting confused over. Can anyone spot what I’m doing wrong? Thanks!

Posts: 1

Participants: 1

Read full topic


Not able to run " ionic cordova run android "

$
0
0

@tejakumar wrote:

I’m getting error like this when i’m trying to run my project in windows10

" Running app-scripts build: --platform android --target cordova
[01:29:51] build dev started …
[01:29:51] clean started …
[01:29:51] clean finished in 10 ms
[01:29:51] copy started …
[01:29:51] deeplinks started …
[01:29:51] deeplinks finished in 89 ms
[01:29:51] transpile started …
[01:29:56] transpile finished in 4.85 s
[01:29:56] preprocess started …
[01:29:56] preprocess finished in 5 ms
[01:29:56] webpack started …
[01:29:56] copy finished in 5.29 s
[01:30:02] webpack finished in 6.52 s
[01:30:02] sass started …
[01:30:03] sass finished in 1.01 s
[01:30:03] postprocess started …
[01:30:03] postprocess finished in 14 ms
[01:30:03] lint started …
[01:30:03] build dev finished in 12.78 s

cordova run android
Error: Failed to find ‘ANDROID_HOME’ environment variable. Try setting setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.

[ERROR] An error occurred while running cordova run android (exit code 1).

[01:30:07] lint finished in 3.37 s "

Posts: 1

Participants: 1

Read full topic

Getting error while running ionic project

$
0
0

@tejakumar wrote:

Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: buildToolsVersion is not specified.
at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)
at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
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:38)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
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:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
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:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

BUILD FAILED

Total time: 1 mins 40.425 secs
FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\wamp64\www\ionic\spetinfo\platforms\android\CordovaLib\cordova.gradle’ line: 64

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: cmd: Command failed with exit code 1 Error output:
    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
    java.lang.IllegalStateException: buildToolsVersion is not specified.
    at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
    at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)
    at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
    at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
    at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
    at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
    at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
    at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
    at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
    at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
    at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
    at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
    at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
    at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
    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:38)
    at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
    at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
    at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
    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:120)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    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:120)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\wamp64\www\ionic\spetinfo\platforms\android\CordovaLib\cordova.gradle’ line: 64

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

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

[ERROR] An error occurred while running cordova run android (exit code 1).

Posts: 1

Participants: 1

Read full topic

Is Faceboo Auth Link below not valid on IONIC

$
0
0

@SaeedAnsari wrote:

Hi

I build my code using this logic

is this link no longer valid with the new IONIC? Can you suggest a alternative way of doing FB Auth using Firebase if this wont work?

Posts: 1

Participants: 1

Read full topic

Error: Cannot find module ‘../plugman/platforms/ios’

$
0
0

@benzblahblah wrote:

I got this error:
Error: Cannot find module ‘…/plugman/platforms/ios’

and I’ve find all similar issues already, but it doesn’t help me at all.

 | => ionic cordova build ios --prod


> cordova platform add ios --save
Using cordova-fetch for cordova-ios@^4.5.3

Adding ios project...

Creating Cordova project for the iOS platform:

	Path: platforms/ios

	Package: com.ben.blahblah
	Name: seen-that-car

iOS project created with cordova-ios@4.5.4

Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to the project

Installing "cordova-plugin-camera" for ios

Installing "cordova-plugin-compat" for ios

Adding cordova-plugin-camera to package.json
Saved plugin info for "cordova-plugin-camera" to config.xml

Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to the project

Installing "ionic-plugin-keyboard" for ios

Adding ionic-plugin-keyboard to package.json

Saved plugin info for "ionic-plugin-keyboard" to config.xml

Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project

Installing "cordova-plugin-whitelist" for ios

Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml

Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project

Installing "cordova-plugin-device" for ios

Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Installing "cordova-plugin-splashscreen" for ios

Adding cordova-plugin-splashscreen to package.json

Saved plugin info for "cordova-plugin-splashscreen" to config.xml

Discovered plugin "cordova-plugin-ionic-webview" in config.xml. Adding it to the project
Installing "cordova-plugin-ionic-webview" for ios

Adding cordova-plugin-ionic-webview to package.json
Saved plugin info for "cordova-plugin-ionic-webview" to config.xml

Discovered plugin "cordova-plugin-buildinfo" in config.xml. Adding it to the project

Installing "cordova-plugin-buildinfo" for ios

Adding cordova-plugin-buildinfo to package.json

Saved plugin info for "cordova-plugin-buildinfo" to config.xml

Discovered plugin "cordova-universal-links-plugin" in config.xml. Adding it to the project
Installing "cordova-universal-links-plugin" for ios

Installing dependency packages:
{
  "mkpath": ">=1.0.0",
  "node-version-compare": ">=1.0.1",
  "plist": ">=1.2.0",
  "rimraf": ">=2.4",
  "xml2js": ">=0.4"
}
Adding cordova-universal-links-plugin to package.json

Saved plugin info for "cordova-universal-links-plugin" to config.xml

Discovered plugin "cordova-plugin-browsertab" in config.xml. Adding it to the project

Installing "cordova-plugin-browsertab" for ios

Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.

Dependent plugin "cordova-plugin-compat" already installed on ios.
Adding cordova-plugin-browsertab to package.json
Saved plugin info for "cordova-plugin-browsertab" to config.xml

Discovered plugin "cordova-plugin-inappbrowser" in config.xml. Adding it to the project
Installing "cordova-plugin-inappbrowser" for ios

Adding cordova-plugin-inappbrowser to package.json
Saved plugin info for "cordova-plugin-inappbrowser" to config.xml

Discovered plugin "cordova-plugin-media-capture" in config.xml. Adding it to the project
Installing "cordova-plugin-media-capture" for ios

Installing "cordova-plugin-file" for ios

Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on ios.
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.

Dependent plugin "cordova-plugin-compat" already installed on ios.

Adding cordova-plugin-media-capture to package.json

Saved plugin info for "cordova-plugin-media-capture" to config.xml
Discovered plugin "cordova-plugin-customurlscheme" in config.xml. Adding it to the project
Installing "cordova-plugin-customurlscheme" for ios
Adding cordova-plugin-customurlscheme to package.json
Saved plugin info for "cordova-plugin-customurlscheme" to config.xml
Error: Cannot find module '../plugman/platforms/ios'

[ERROR] Exception:

| => ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.0
Cordova Platforms  : ios 4.5.4
Ionic Framework    : ionic-angular 3.7.1

System:

ios-deploy : 1.9.2
Node       : v6.11.2
npm        : 5.5.1
OS         : macOS High Sierra
Xcode      : Xcode 9.1 Build version 9B55

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro
{
  "name": "por",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.4.3",
    "@angular/compiler": "4.4.3",
    "@angular/compiler-cli": "4.4.3",
    "@angular/core": "4.4.3",
    "@angular/forms": "4.4.3",
    "@angular/http": "4.4.3",
    "@angular/platform-browser": "4.4.3",
    "@angular/platform-browser-dynamic": "4.4.3",
    "@ionic-native/camera": "^4.3.2",
    "@ionic-native/core": "4.3.0",
    "@ionic-native/media-capture": "^4.3.3",
    "@ionic-native/splash-screen": "4.3.0",
    "@ionic-native/status-bar": "4.3.0",
    "@ionic/storage": "^2.0.1",
    "angularfire2": "^5.0.0-rc.3",
    "cordova-android": "^6.3.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-browsertab": "^0.2.0",
    "cordova-plugin-buildinfo": "^2.0.1",
    "cordova-plugin-camera": "^2.4.1",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-customurlscheme": "^4.3.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-file": "^4.3.3",
    "cordova-plugin-inappbrowser": "^1.7.2",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-media-capture": "^1.4.3",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-universal-links-plugin": "^1.2.1",
    "firebase": "^4.6.0",
    "ionic-angular": "3.7.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "promise-polyfill": "^6.0.2",
    "rxjs": "5.4.3",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@angular/cli": "^1.5.0",
    "@ionic/app-scripts": "3.0.0",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-camera": {
        "CAMERA_USAGE_DESCRIPTION": " ",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": " "
      },
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-buildinfo": {},
      "cordova-universal-links-plugin": {},
      "cordova-plugin-browsertab": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-media-capture": {
        "CAMERA_USAGE_DESCRIPTION": " ",
        "MICROPHONE_USAGE_DESCRIPTION": " ",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-customurlscheme": {
        "URL_SCHEME": "com.ben.blahblah",
        "ANDROID_SCHEME": " ",
        "ANDROID_HOST": " ",
        "ANDROID_PATHPREFIX": "/"
      }
    },
    "platforms": [
      "android"
    ]
  }
}

Posts: 1

Participants: 1

Read full topic

Help with creating headers

$
0
0

@gasmeso wrote:

Im new to the angular and ionic but I want to design the exact same header as below for my small project but I seem to be getting it wrong. Below is what I seek to achieve.

This is what I’ve been able to do so far.

Also I wanted it such that when I scroll up, the segment hides and when I scroll down it appears again.
Also if you click on the my school header at the top it should switch to another page and vice versa… I know it’s a lot, I’m learning a lot and moving fast too. Any help would be much appreciated.

Posts: 2

Participants: 2

Read full topic

A very simple 5 star rating example

$
0
0

@JAR19 wrote:

I thought I would post my example of how to do a 5 star rating system using the Alert controller: The following is the end result:

rating1

The alert code to generate the rating shown above: (note:the alert is part of a promise so all I do is revolve that promise with the value of the star pressed.)

        const alert = this.alertCtrl.create({
               title: 'Rate your speech:',
               subTitle: bleu,
               cssClass: 'alertstar',
               enableBackdropDismiss:false,
               buttons: [
                    { text: '1', handler: data => { this.resolveRec(1);}},
                    { text: '2', handler: data => { this.resolveRec(2);}},
                    { text: '3', handler: data => { this.resolveRec(3);}},
                    { text: '4', handler: data => { this.resolveRec(4);}},
                    { text: '5', handler: data => { this.resolveRec(5);}}
               ]
          });
          alert.present();

The CSS code for the above which is in app.scss

.alertstar{
     button{
          width: 40px;
          margin: 0 !important;
          background-image:url('../assets/icon/star.png');
          background-repeat: no-repeat;
          background-position: center;
          color:white !important;
     }
     .alert-button-group{padding:0; margin-top: 10px; flex-direction: row; justify-content: space-around;}
     border-radius: 12px;
     .alert-wrapper{border-radius: 12px;}
}

And finally the image of the star which is kept in assets/icon folder
star

Posts: 1

Participants: 1

Read full topic

Oogle Sign-In, Google Drive and Sync with Ionic webapp

$
0
0

@rafaeldcastro wrote:

I’m trying to create an Ionic app where I can use the Google Sign-In feature and Google drive files to sync with a web version of my app.

I want my app to share the users preferences and details through a file(json) stored on google drive. So the user will log on the site, make some changes, log on the app and receive those changes.

I’m here to ask your guidance on my problem, cause I don’t know if this is the best way to do it. Should I keep trying and implement this solution or try another approach?

Thanks for your comments!

I’m using Ionic2 and Angular 4.

Posts: 1

Participants: 1

Read full topic


Will ionic-core on stencil have an equivalent of polymer's "vulcanize"?

$
0
0

@LMWiddess wrote:

Hi,

Framework agnostic is clearly the way to go for ionic 4! We were very pleased to see your recent post The end of framework churn … this sums up our feelings precisely, and we’re glad to see that you guys also “get it”.

One great piece of potential that could be unlocked for us here is the possibility of layout/wireframe re-use between tablet form-factor cordova/SPA/PWA context and non-SPA public-web desktop browser context, where bookmarkable crawlable SEO-optimal rapidly-indexed content is absolutely paramount for us!

To unlock this potential we would really need some kind of capability for stencil to produce for our devs a pure-HTML version of the markup with the ionic web components completely compiled-out to inline pure (non-custom) HTML with all shadow DOM hoisted to light DOM etc… a-la polymer “vulcanize” or some kind of full SSR/Universal render capability that we can run in node then save to disc and pass around.

Are there plans to include such a “full build-out/inlining” functionality for ionic-core + stencil?

In case you’re unconvinced and thinking “why do you need that, you only think you need that but actually you’ve got an X Y problem, you don’t really need that; your real solution should be addressed elsewhere”, let me explain why such a capability would be very important and useful to us.

So why do we need vulcanize/full build-out to share code between tablet form factor and public web?

TLDR:

Plain SPA SEO story does not meet our needs, Full stack SSR/Universal is not an option for us, so to unlock this re-use we need a capability to build out tablet form-factor wireframes to “pure” HTML so that we can take that, and then sprinkle server-side ASP+razor/Django+blade templating directives in there, (instead of Angular/Vue/Whatever ones).

Full Explanation:

To clarify, when I mentioned SEO, we really care about crawlers such as Baidu, Facebook, and Twitter - we produce shareable snippets for social media that should be well promoted in business customers’ followers’ news feeds for example, and handle travel bookings from Asia, so: “don’t worry, route all requests server-side to your SPA and pass in an initial route parameter, avoid hashbang urls, add appropriate hand-rolled shims for location bar and back button compatibility, (gee thanks for the help mr. framework!) and check with google fetch: the crawlers that ‘matter’ will reach you… …eventually” is simply not a valid answer for us. Time-to-indexing, suggestion/summary links, it all matters to us!

We’re very happy with tried and tested toolchains like ASP.NET Core/razor and Django/blade etc for serving out fast loading, server-side injected “classic public-web bookmarkable/indexable content” and are extremely reluctant to adopt full-stack server-side javascript node.js + angular (or framework de jour) Universal/SSR “solutions” that involve going to some frankly creepy variant of a “headless pre-rendering browser inside node” style setup. All just as a workaround for the limitations of the crippled SEO capabilities of plain SPA, and so as to get us back from negative to zero.

To briefly justify this reticence in case full-stack evangelists are not convinced:

  1. From a design perspective it’s bad separation of concerns, unnecessary complexity, and those experienced with local/remote isomorphism metaphors, (think back to COM+, CORBA etc) know such abstractions to be inherently leaky no matter how “cool” it sounds. It makes routing and content injection hard to reason about, where a more practical workflow would be to simply take our wireframes and sprinkle them with Angular/Whatever templating directives for cordova/SPA/PWA context and razor/blade directives for server-side public web context. (With server-side razor/blade tag helpers we can potentially even have a mode where razor/blade removes itself and injects angular/whatever directives when a flag is set, making the workflow full code-reuse with a “sprinkle-once/maintain-once” workflow pass).

  2. From a practical/ops perspective, the idea of being vulnerable to running potentially CPU intensive DOM-render edge cases (e.g. a rarely hit page gets requested with atypical params and results in rendering an unreasonably large list where the backend devs forgot to limit the number of returned results) and having the whole single-threaded single-cpu node event loop grind a to halt while this goes on is toublesome to say the least! A single threaded non-blocking async event loop is great when you’re I/O bound. If you go CPU bound, not so much, as CPU is by definition blocking on a single thread. so in reality you want a farm of node processes with a round-robin proxy and monitoring etc etc, but don’t worry, for that there are… FRRRRAMEWORKS (oh joy!). Would you care to npm install -g forever and upstart and caretaker and snozberry and God knows what else?

No.

No we wouldn’t.

All we wanted was to use good mobile-friendly widgets in our UI content, with a bit of lightweight templating, and to send the odd button click to JSON instead of GET/POST.

Now aggressive opinionated rapidly-depracating frameworks are telling us “yes you can, but you must embrace the foo-bar.js TM way, and replace your entire sever-side stack with our preferred one”.

We’re sick to death of rapid deprecation, (we’ve been burned a number of times already just in the cordova space), framework churn and decision fatigue; we’d rather just keep maintaining an extra independent set of wireframes for public-web indexable content (bootstrap + a bit of jQuery) and give up on re-use than tie ourselves further to all that.

We want good well-encapsulated libraries and tools, not opinionated frameworks that want to encroach on our whole stack…

…but we’re crossing our fingers and hoping that stencil+ionic core will be “fully vulcanizable” and therefore also non-js server side templateable, and allow us to share great full-SEO capable layout with industry best widgets between all our tablet/desktop style form-factor contexts :wink:

Sorry for the length of post, but the full background to the use-case considerations is both interesting and complex. Good luck with Ionic 4!

Did I mention we hate javascript? :smiley:

Yours, Liam

“Save us WebAssembly!” they cry out in vain, cold and alone, adrift in the eternal darkness of the ancient void, waiting for their np̀m̢ dependencies to resolve… B̢̬̣͉̫̱Ṳ̱̩̜͎͉̩T̮̠̼̺̪͓͠ ̖̜̻̦͢H̳͓̱͎̳͎E̘̯L̳̼̤̤P̧̰̪̤̠̥̠͍ ̛̯D͎̘̩͇͎O͈̺̮͍͙̙E͍͇̟̼S̝̲ ̢̮̩͇̟N̮̭̰̬̟̕O̪̙͙̗̼̝̮͜T̲̮̯͇͢ ͖͢C̗̥O̡͔͎͓̳͇M̖̗̻E͈̣̲̥̱!

Z̪̤͔̫̯͔̼̯͡͞͠A̷̛̛͚͍̭͓͙̥͕͕̭͎̘̼̹͉͉̼̫͖̺L̷͠҉̣͖̙̖̼̣̘̥̝̙̖͟ͅG̻͈͉̲̤̻̫̖̭̭̺͚͚̣̱̗͘͘͜Ó̷̗̜̗̣̤̭̲̳̺̥͍̩͇͍͓́

Posts: 1

Participants: 1

Read full topic

Cast $event(in .html) to NgForm (in .ts), for DRY purpose

$
0
0

@davidvalen95 wrote:

so here is the condition
I’m making multi template driven form, if satisfied then ionic-slide will trigger next.

which mean i had to pass the value of #currentForm="ngForm" to the TS function submitForm(#currentForm) then check if currentForm.valid in the ts

problem is that, i cannot make any dynamic ID #anotherForm, #anotherForm2 because of angular syntax hence i must rewrite all other forms

do you have any sugestion how to make it DRY

i have an idea to submitForm($event) and cast event as NgForm but cannot


  <ion-slide >
          <h2>{{this.vechileForm.title}}</h2>
            <form class="ionContent" #idVechileForm="ngForm"  (submit)="completionFormSubmit(idVechileForm)">
              <ion-list *ngFor="let currentBaseForm of this.vechileForm.baseForms" >
                    <floating-input [parentForm]="idVechileForm" [baseForm]="currentBaseForm"></floating-input>
              </ion-list>

              <button  ion-button=""  type="button" (click)="slidePrevious()" color="light">Previous</button>
              <button  ion-button=""  color="primary">Next</button>
            </form>
        </ion-slide>

        <ion-slide >

          <h2>{{hostForm.title}}</h2>
          <form class="ionContent" #idHostForm="ngForm"  (submit)="completionFormSubmit(idHostForm)">
            <ion-list *ngFor="let currentBaseForm of hostForm.baseForms">
              <floating-input  [parentForm]="idHostForm" [baseForm]="currentBaseForm"></floating-input>
            </ion-list>
            <button  ion-button=""  type="button" (click)="slidePrevious()" color="light">Previous</button>
            <button  ion-button="" color="primary">Submit</button>
          </form>
        </ion-slide>


  completionFormSubmit(form: NgForm) {
    if (form.valid) {
      this.slideNext();
      for(var key in form.value){
        console.log('sdfsdfdsfsd');
        this.formValues[key] = form.value[key];
      }
    }
    else {
      this.alert("Field(s) is not valid");
    }


  }

Posts: 1

Participants: 1

Read full topic

How to append button in QR Scan Page?

Couldn't load background image to a certain page only

$
0
0

@sam1408 wrote:

hi guys, I am trying to implement a background image to a page in my app. i have read many methods but none of them works out for me.
the page I want to put my background image:
homehtml

i tried to put this code in app.scss and home.scss but both did not work for me.
scss

I’m out of ideas…any suggestions would be helpful

Posts: 1

Participants: 1

Read full topic

VS Code Cordova Tools with Ionic Live Reload - How do you do debugging on iOS?

$
0
0

@ryanhow wrote:

Hi Guys, Finally got myself a Mac so I can do some debugging on iOS.

I can’t get Cordova Tools in VS Code to work with live-reload though, so every time I make a change I need to recompile the whole thing and launch the simulator again, which isn’t quick.

If I use live reload it just says it can’t find the webview.

Does anyone else have it working, or what do you do?

Even a way so it doesn’t relaunch the simulator, but uses the existing one, would be a halfway step.

I am just running ionic cordova emulate ios, then attaching to simulator using Cordova Tools in VS Code. (It seems the cordova tools option for ionicLiveReload is broken).

Posts: 1

Participants: 1

Read full topic

Global methods

$
0
0

@josh2k44 wrote:

How do I define and call global methods?

For example:

showLoading()

hideLoading()

Instead of defining and calling these on every component, how would I define them on app.component and call them from child components?

Thanks

Posts: 1

Participants: 1

Read full topic

Unable to Link project to Ionic Pro

$
0
0

@SaeedAnsari wrote:

Hello

i am trying to migrate to ionic PRO but every time i try i keep keep getting ssh-keygen error

? App ID bb16c680 is already set up with this app. Are you sure you want to link it to caa89fcc instead? Yes
> ionic ssh setup
[ERROR] Command not found: ssh
[WARN] OpenSSH not found on your computer.
Looks like you haven't configured your SSH settings yet.

? How would you like to connect to Ionic Pro? Automatically setup new a SSH key pair for Ionic Pro
The automatic SSH setup will do the following:
1) Generate a new SSH key pair with OpenSSH (will not overwrite any existing keys).
2) Upload the generated SSH public key to our server, registering it on your account.
3) Modify your SSH config (C:\Users\Hp\.ssh\config) to use the generated SSH private key for our server(s).


? May we proceed? Yes
> ionic ssh generate C:\Users\Hp\.ssh\ionic\793051
[ERROR] Command not found: ssh
[WARN] OpenSSH not found on your computer.
You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone
has your private key, they can impersonate you!) Passphrases are recommended, but not required.
'ssh-keygen' is not recognized as an internal or external command,
operable program or batch file.
[ERROR] Command not found: ssh-keygen

I have installed latest Git and Git for Desktop on my Windows 10 system 64 bit

My Paths were correct till now

I have nothing in the User/.ssh Folder

I am stuck how do i fix this, please can you help

Posts: 1

Participants: 1

Read full topic


IONIC & WebRTC app

$
0
0

@mankota wrote:

Is there a possibility to create an ionic app with webRTC that can video or audio call another user that is offline just like whatsapp and skype? If so please I need help. I have an ionic app that video chat. If the two users are online line, they can chat perfectly, but when one user is offline, the other user cannot video call that user to chat. Need code example please

Posts: 1

Participants: 1

Read full topic

Alert message API

$
0
0

@Faizyfaazz wrote:

I used a API to get flight details.and they provide flight details through alert message.But the problem is to use the Alerts API they says, “The developer must implement a web service that accepts an HTTP POST and parses an Alerts Message, then set up a rule specifying that service as the destination”.

if i fill this with my email address, i get the response to my email address.

but i need this detail to my ionic application as a notification.
how i can do this . can i use fire base ? please help to resolve this.

Posts: 1

Participants: 1

Read full topic

Is it possible image conver to pdf?

Ionic3 android status bar no icon shown

$
0
0

@Nulra wrote:

When I update my project ionic version, the android app have status bar can’t show any icon when enter to the app:07 PM
When enter to app:57 PM
Anyone know how to solve? My info:

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.17.0
ionic (Ionic CLI) : 3.17.0
global packages:

cordova (Cordova CLI) : 7.1.0
local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.3.0 ios 4.6.0-nightly.2017.11.22.24bfb734
Ionic Framework    : ionic-angular 3.8.0
System:

ios-deploy : 1.9.2
ios-sim    : 5.0.13
Node       : v7.10.0
npm        : 5.5.1
OS         : macOS Sierra
Xcode      : Xcode 9.0.1 Build version 9A1004
Environment Variables:

ANDROID_HOME : not set
Misc:

backend : legacy

Posts: 1

Participants: 1

Read full topic

Pass variable without use Push

$
0
0

@ahmadklsany wrote:

hello ;
i need some info about send param from page to another without use
this.navCtrl.push(SomethingElsePage, payload)
i want pass param from profile page To rating page by this function:
1-profile page:
rating() {
let popover = this.popoverCtrl.create(Rating);
popover.present();
}
2-rating page:

import {Component} from ‘@angular/core’;
import {NavController, Events, ViewController} from ‘ionic-angular’;
import { UsersProviders } from “…/…/providers/users”;
import {AppUtilFunctions} from ‘./…/…/app/appglobal/app.utilfuns’;//
import { MyVariabels } from “…/…/providers/variables”;

@Component({
selector: ‘page-rating’,
templateUrl: ‘rating.html’,
})
export class Rating {
ratingVal= “0:0”;
loader: boolean = false;
constructor(
public navCtrl: NavController,
public events: Events,
public viewCtrl: ViewController,
public usersProviders: UsersProviders,
) {

}

// close() {
// this.viewCtrl.dismiss();
// }
onModelChange(ev) {
this.ratingVal = ev+’:0’;

    this.viewCtrl.dismiss();

}

}
thanks :grinning::slightly_smiling_face:

Posts: 1

Participants: 1

Read full topic

Viewing all 49111 articles
Browse latest View live


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