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

exportArchive: requires a provisioning profile with the Push Notifications feature

$
0
0

@yogeshbansal83 wrote:

I am getting this issue of ionic 4 and xcode 10.12.1

Running command: xcodebuild -exportArchive -archivePath Handshek.xcarchive -exportOptionsPlist /Users/kodetra/KodetraTechnologies/Projects/Ionic/handshek-mobile/platforms/ios/exportOptions.plist -exportPath /Users/kodetra/KodetraTechnologies/Projects/Ionic/handshek-mobile/platforms/ios/build/device
2019-06-23 10:17:10.760 xcodebuild[21542:121234] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path ‘/var/folders/4t/zl9fny29647b84ppqk1swcpr0000gn/T/Handshek_2019-06-23_10-17-10.759.xcdistributionlogs’.
error: exportArchive: “Handshek.app” requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9 ““Handshek.app” requires a provisioning profile with the Push Notifications feature.” UserInfo={NSLocalizedDescription=“Handshek.app” requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the “provisioningProfiles” dictionary in your Export Options property list.}

**** EXPORT FAILED ****

xcodebuild: Command failed with exit code 70
[ERROR] An error occurred while running subprocess cordova.

Any idea how to fix this issue

Posts: 2

Participants: 2

Read full topic


Webhook payload

$
0
0

@POLYPOINT wrote:

Hi,

I just configured an Automation. I configured a webhook so my CI system can be notified when the build is done. However the payload is not what is in the documentation. I am getting:

{"created":"2019-06-23T10:25:07.031526+00:00","environmentName":"Basic Environment","id":6564582}

That is not sufficient for me because I potentially have multiple builds running in parallel and my CI system needs to be able to differentiate between them. I had planned on using the commit SHA that is indicated in the documentation.

Why am I not getting the expected data? What I expected is described here: https://ionicframework.com/docs/appflow/automation/webhooks#webhook-body

With regards to my setup, I am pushing to Appflow. (No Github or Bitbucket integration).

Thanks,

Jesse

Posts: 1

Participants: 1

Read full topic

Npm install error

$
0
0

@safaAlshaarri wrote:

hi eveyone, i’m free lancer programmer someone give my his project to publish it but when i run 'npm install' it , it give me these error any one can help?

 Building solution configuration "Release|x64".
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.  [D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sa
ss\build\binding.sln]
Done Building Project "D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED.


Build FAILED.

"D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass\build\binding.sln" (default target) (1) ->
(_src_\libsass target) -> 
  MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Vis
ual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.  [D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-
sass\build\binding.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.57
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\AhmedAlHashmi\\Tasamoh\\Tasamoh\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Safaa Alshaarri\AppData\Roaming\npm-cache\_logs\2019-06-23T18_30_05_320Z-debug.log

Posts: 1

Participants: 1

Read full topic

Ion-datetime - scroll has too much momentum

$
0
0

@wekas wrote:

Is it possible to make this grip to the selected values more rather than continuing to scroll? i.e. to be more “grippy”.

I have this in an app and the users keep entering the wrong time as it is hard for them to use.
I know it works better if you touch on the time rather than scroll but educating users is hard.

Alternative time picker suggestions welcome also.

Posts: 1

Participants: 1

Read full topic

Reason behind using this keyword in ionic

$
0
0

@Rishab24 wrote:

date: any;
this.date = new Date().toISOString();``

can anyone please help me why do we use this keyword in ts or any other javascript frame work 

thanks

Posts: 1

Participants: 1

Read full topic

Can we use "ng-animate" in ionic 4 for page transitions, and for modal animations

White screen comes scroll fast [List]

$
0
0

@Tamsel wrote:

When i am scrolling the list fast [has 2000 data] , it shows white screen and data updated very slowly. Is anybody having solution for this. Thanks in advance !

Posts: 1

Participants: 1

Read full topic

Ionic cordova build error after install @ionic-native/firebase

$
0
0

@Sidorenko-Denis wrote:

I installed firebase in ionic application (https://ionicframework.com/docs/v3/native/firebase/)

After installation, I started to give an error

@ionic-native/firebase/ngx/index.d.ts, found version 4, expected 3

I downgrade version to 3.14.0 and after the app stops building (android version)

then i run

ionic cordova build android --prod --release

or

ionic cordova run android

these errors appear in the console

Configure project :app
WARNING: The onesignal-gradle-plugin MUST be before com.android.application!
   Please put onesignal-gradle-plugin first OR update to com.android.tools.build:gradle:3.0.0 or newer!
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

FAILURE: Build failed with an exception.

* Where:
Script 'app/platforms/android/cordova-support-google-services/app-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
 Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   For input string: "+"

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

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

BUILD FAILED in 0s
Command finished with error code 1: app/platforms/android/gradlew cdvBuildDebug,-b,app/platforms/android/build.gradle
app/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Script 'app/platforms/android/cordova-support-google-services/app-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
 Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   For input string: "+"

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

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

BUILD FAILED in 0s
Error: app/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Script 'app/platforms/android/cordova-support-google-services/app-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
 Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
    For input string: "+"

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

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

BUILD FAILED in 0s
    at ChildProcess.whenDone (app/node_modules/cordova-common/src/superspawn.js:125:23)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
[ERROR] An error occurred while running subprocess cordova.
        
        cordova run android --verbose exited with exit code 1.

my dependencies in package.json

  "dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/core": "4.3.2",
    "@ionic-native/facebook": "^4.2.1",
    "@ionic-native/firebase": "3.14.0",
    "@ionic-native/firebase-analytics": "^4.5.3",
    "@ionic-native/in-app-browser": "^4.4.2",
    "@ionic-native/keyboard": "^4.5.2",
    "@ionic-native/onesignal": "^4.5.3",
    "@ionic-native/social-sharing": "^4.2.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic/storage": "2.0.1",
    "@types/route-parser": "^0.1.1",
    "cordova-android": "8.0.0",
    "cordova-browser": "5.0.3",
    "cordova-custom-config": "^5.1.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-console": "^1.1.0",
    "cordova-plugin-customurlscheme": "^4.4.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-facebook4": "^1.10.1",
    "cordova-plugin-firebase": "2.0.5",
    "cordova-plugin-firebase-analytics": "^0.12.1",
    "cordova-plugin-inappbrowser": "^1.7.2",
    "cordova-plugin-ionic-webview": "^1.2.1",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.4.1",
    "cordova-support-google-services": "^1.0.0",
    "es6-promise-plugin": "^4.2.2",
    "font-awesome": "^4.7.0",
    "fractional": "^1.0.0",
    "humps": "^2.0.1",
    "ionic-angular": "3.7.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "lodash": "^4.17.5",
    "onesignal-cordova-plugin": "^2.4.1",
    "pluralize": "^7.0.0",
    "route-parser": "0.0.5",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.3",
    "typescript": "2.3.4"
  },
  "description": "Hybrid App",
  "config": {
    "ionic_copy": "./config/copy.config.js"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-console": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-x-socialsharing": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "xxxxxxxxxxxx",
        "APP_NAME": "xxxxxxx"
      },
      "cordova-plugin-ionic-webview": {},
      "cordova-support-google-services": {},
      "cordova-plugin-firebase-analytics": {
        "FIREBASE_VERSION": "11.0.+"
      },
      "onesignal-cordova-plugin": {},
      "cordova-plugin-customurlscheme": {
        "URL_SCHEME": "xxxxxxx",
        "ANDROID_SCHEME": " ",
        "ANDROID_HOST": " ",
        "ANDROID_PATHPREFIX": "/"
      },
      "cordova-custom-config": {},
      "cordova-plugin-firebase": {}
    },
    "platforms": [
      "browser",
      "ios",
      "android"
    ]
  }

ionic info

Ionic:

   ionic (Ionic CLI)  : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.7.1
   @ionic/app-scripts : 3.2.3

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : cordova-plugin-ionic-webview 1.2.1, (and 13 other plugins)

app/platforms/android/cordova-support-google-services/app-build.gradle

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:+'
        classpath 'com.google.gms:google-services:3.1.0'
    }
}

// apply plugin: 'com.google.gms.google-services'
// class must be used instead of id(string) to be able to apply plugin from non-root gradle file
ext.postBuildExtras = {
    apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
}

It wasn`t possible to find a solution, maybe someone has encountered this problem and will help to solve it.
Thank!

Posts: 1

Participants: 1

Read full topic


Styling ion-label of disabled ion-input

$
0
0

@yash-jain wrote:

I want to set the opacity of ion-label of disabled ion-input where I have the ion-label in position-floating

<ion-item>
  <ion-label position="floating">Submitssion Code</ion-label>
  <ion-input name="{{user.fieldName}}" type="{{user.fieldType}}" [disabled]="true" [value]="user.subCode.value"></ion-input>
</ion-item>

I have already set the opacity for ion-input value if the field is disabled using following code in global.scss

.native-input[disabled] {
    opacity: 10 !important;
}

How can I do the same for ion-label also. I want that label to be visible properly in any color.

Posts: 1

Participants: 1

Read full topic

How update tab badge dynamically while user add any item to cart

Text truncation in selected select

$
0
0

@Doomkin wrote:

Dear Ionites,
I’m trying to show full text of the selected option but text-wrap doesn’t work.
I used the following css to achieve that into the alert with the select options, but cannot make it work after the selection has been made.

.alert-tappable.alert-radio {
    height: auto;
    contain: content;
}

.alert-radio-label.sc-ion-alert-md,
.alert-radio-label.sc-ion-alert-ios {
    white-space: normal;
}

Anyone can give me a tip on how to do that?

Screenshot_1

Thanks!

Posts: 1

Participants: 1

Read full topic

LokiDB persistenceAdapter error

$
0
0

@Marko-Matijevic wrote:

I get this error when setting up LokiDB.
ERROR Error: Uncaught (in promise): Error: persistenceAdapter not configured.

import {Loki} from "@lokidb/loki";
export class LokiService {
    db: any; // LokiJS database
    constructor() {
        console.log('Loki initialization');
        this.db = new Loki('db', {env:"CORDOVA"});
    }

Posts: 1

Participants: 1

Read full topic

How to execute periodic tasks?

$
0
0

@ioclaudio wrote:

Hi,
I have to send periodically some data from the app to the server.

I’m using this code to start the sending:
this.timerSendDataToServer = setInterval(this.sendGeolocationDataToServer, 10000, this.device.getValue(), pageObject);

And this code to stop the sending:
clearInterval(this.timerSendDataToServer);

This code works testing the app with Chrome and deploying it on my Android phone.
However, on other devices, especially iOS, it doesn’t seem to work.
That is the trigger doesn’t start every 10 seconds.

So the question is, is this the best way to execute periodic tasks or there are better methods?

Thank you.

cld

Posts: 1

Participants: 1

Read full topic

No permission to read a file my app wrote to /Data dir?

$
0
0

@VictorNorman wrote:

When I try to play a file using my html5 <audio> tag, I get this error now:
2019-06-24 08:33:08.595 19791-19861/io.ionic.starter E/Capacitor: Unable to open asset URL: http://localhost/_capacitor_file_/DATA/EN-1.mp3

I’ve used webview convertFileSrc() to get this URL. As far as I can tell, the file is there – I didn’t see errors when copying the file there using capacitor Filesystem.

Anyone know why I cannot open that url?

Posts: 1

Participants: 1

Read full topic

Dual Camera

$
0
0

@Drop wrote:

Hello everyone!
I need to access the cameras simultaneously. In particular I need to start a video from the rear camera and take a picture with the front camera. I found some examples with the native camera2 API. Is there a possible solution to do it with ionic?
Thanks

Posts: 1

Participants: 1

Read full topic


Use of ViewChild in angular

$
0
0

@Rishab24 wrote:

import { ViewChild } from ‘@angular/core’;

what is use of Viewchild in angular /ionic

thanks in advance :grinning:

Posts: 2

Participants: 2

Read full topic

Get notification into ionic app after clearing app data from setting

$
0
0

@krunal54 wrote:

I am using ionic native push notification for sending a notification into an app using firebase. But when I clear app data of my app from setting page, still I am getting notification into my mobile.

Can anyone help me out with this?

Posts: 1

Participants: 1

Read full topic

Issue with html tag

$
0
0

@immcse wrote:

Problem:
Trying to use html code tag within Ionic app. Instead, Ionic app renders the actual Custom Component itself.

Context:
In html page I have:

<p>Code sample</p>
  <pre>
    <code class="html" width=100%>
    <empty src={this.messages} message="No messages in this conversation"></empty>
  </code>
</pre>

Now, I was expecting to see the code as-is. However, it shows the output from tag as below.
image%20(2)

Solution
Please suggest how to use code tag within ionic?

Thanks

Posts: 1

Participants: 1

Read full topic

What are observables in ionic

On pressing mobile back button, app is refreshed and reloaded instead of going back

$
0
0

@kunalkakkad wrote:

Hello Folks,

I am facing one weird issue with my ionic android application. When I press mobile phone hardware back button it is reloading/refreshing whole application instead of going back.
I have tried to use event.stopPropogation() and also this.nav.pop() but nothing works.
So kindly help me out.

Thanks & Regards,
Kunal Kakkad

Posts: 1

Participants: 1

Read full topic

Viewing all 70434 articles
Browse latest View live


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