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

Plugin List Error

$
0
0

@haromaro wrote:

Hi, when i listing to plugins get this error. but app is working perfectly only onesignal plugin not working. Can you help me?

> cordova plugin ls
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.4.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.1.0 "cordova-plugin-ionic-webview"
cordova-plugin-mauron85-background-geolocation 2.3.5 "CDVBackgroundGeolocation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.4.0 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.4.3 "OneSignal Push Notifications"
net.js:704
    throw new TypeError(
    ^

TypeError: Invalid data, chunk must be a string or buffer, not object
    at WriteStream.Socket.write (net.js:704:11)
    at process.<anonymous> (C:\Users\HarunMarangoz\AppData\Roaming\npm\node_modules\ionic\bin\ionic:9:63)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emitPendingUnhandledRejections (internal/process/promises.js:108:22)
    at process._tickCallback (internal/process/next_tick.js:189:7)

Posts: 1

Participants: 1

Read full topic


Print after Javascript executed

$
0
0

@cfwebsitesde wrote:

Hello,

i want to use the cordova printer plugin to print a external website after the javascript is executed.

Do i have to edit the website or is there a possibility to execute the javascript of the website and then get the printer?

Or it is possible to open an system browser (not the InAppBrowser) to print? On the Website there is a button with javascript, which execute the print in browser. This button don’t work for the inappbrowser for me :frowning:

best regards

Posts: 1

Participants: 1

Read full topic

Camera preview plugin unusable on iOS?

$
0
0

@Marc2015 wrote:

Hi,

this plugin is unusable on iOS becasu of very bad performance (picture takes up to 10 seconds with a total lock of the phone). does anybody know a solution how this can be fixed on iOS? Or is it not fixable (cant belive it)?

Are there any similar plugins that can be use on iOS to “embed” a camera in the app and have HTML overlays? WkWebview does not allow getUserMedia on iOS what makes it really annoying.

thanks for any info on this!

best regards
marc

Posts: 1

Participants: 1

Read full topic

Set up different env variables in build process

$
0
0

@mateotherock wrote:

From my understanding, version 3.2 of ionic-app-scripts allows the ability to use process.env.MY_VAR syntax directly in typescript: https://github.com/ionic-team/ionic-app-scripts#environments
I originally discovered this reading over this thread here: https://github.com/ionic-team/ionic-cli/issues/1205.
I am a complete noob to the ionic build process and want to understand how I might be able to utilize this for creating a BASE_URL variable that would be dynamic for running either a “–prod” build or a “–dev” build to point to two different domains based on the build.
If someone could point me in the right direction that would be fantastic.

Posts: 1

Participants: 1

Read full topic

Google places autocomplete please need help

Ionic 3 config.xml Issue

Custom NPM Package

$
0
0

@nanocode wrote:

Hello.

I wonder if it is possible to create an NPM Package from an Ionic module, but remain the structure of HTML, CSS, TS.

Because creating components and pages with HTML and CSS as a string, it is quite tiring to perform maintenance. What’s more, you lose the power to use sass.

I followed this tutorial
https://devdactic.com/custom-ionic-module-npm/

Does anyone know if it has a way to render the html and .scss of good in building npm packages ??

Posts: 1

Participants: 1

Read full topic

Problems with READ_PHONE_STATE

$
0
0

@marvinug wrote:

I’m trying to upload a version to the Play Store but strangely it tells me that error, looking on the internet says it’s just to modify the android Manifest and put ‘tools: node = “remove”’ in that same line to do them I can not do the prod release because when it compiles the files it re-adds the line but without the remove and it throws me errror.
Do not know how to remove that permission.

Posts: 1

Participants: 1

Read full topic


How to add some security to ibeacons in ionic app?

$
0
0

@asimo35 wrote:

Hello I’im using ionic native ibeacon library to detect beacons.Is there any thing we can do to add some security to ibeacons in ionic app? For example people can simulate ibeacon so easily with app by reading uuid,minor and major values by an beacon locater app in store and then use an android phone as an beacon transmitter. What can we do for this?

Posts: 1

Participants: 1

Read full topic

Geocoder plugin not working

$
0
0

@kwanite wrote:

I installed the geocoder plugin in my Ionic 3 App, added it to appmodule.ts, and because it is not supported by DevApp, I build it on iOS platform and tested on a device. I am getting an error and the coordinates are not returned.

Here is my code in home.ts

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { NativeGeocoder, NativeGeocoderForwardResult, NativeGeocoderOptions } from '@ionic-native/native-geocoder';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
lat: string;
long: string;
error: boolean;

  constructor(public navCtrl: NavController, private nativeGeocoder: NativeGeocoder) {

  }

ionViewDidLoad() {

  let options: NativeGeocoderOptions = {
    useLocale: true,
    maxResults: 5
};

  this.nativeGeocoder.forwardGeocode('Berlin', options)
  .then((coordinates: NativeGeocoderForwardResult[]) => 
{  console.log('The coordinates are latitude=' + coordinates[0].latitude + ' and longitude=' + coordinates[0].longitude);
   this.lat = coordinates[0].latitude;
   this.long = coordinates[0].longitude;
   this.error = false;
})
  .catch((error: any) => {console.log(error)
  this.error = true;});
}

}

Here is my code in home.html

<ion-content padding>
    <p>LAT: {{lat}}</p>
    <p>LONG: {{long}}</p>
    <p>ERROR: {{error}}</p>
</ion-content>

The output shows ERROR: true meaning that the plugin returned an error and of course latitude and longitude does not show.

Here are the messages I got while installing the plugin:

Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
Importing NativeGeocoder-Bridging-Header.h into /Users/M/HAPPA/platforms/ios/Happa/Bridging-Header.h
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
Update SWIFT version to 3.0 Debug
Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone for build configuration Debug
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
Update SWIFT version to 3.0 Release

Here is my package.json

{
  "name": "AngularApp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "start": "ionic-app-scripts serve",
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint"
  },
  "dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/core": "~4.10.0",
    "@ionic-native/native-geocoder": "^4.14.0",
    "@ionic-native/splash-screen": "~4.10.0",
    "@ionic-native/status-bar": "~4.10.0",
    "@ionic/storage": "2.1.3",
    "angularfire2": "^5.0.0-rc.6",
    "cordova-ios": "~4.5.5",
    "cordova-plugin-add-swift-support": "^1.7.1",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.1.2",
    "cordova-plugin-ionic-webview": "^2.1.4",
    "cordova-plugin-nativegeocoder": "^3.1.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "firebase": "^4.12.1",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "rxjs": "5.5.11",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26",
    "cordova-android": "~7.0.0"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.11",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-nativegeocoder": {
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
      }
    },
    "platforms": [
      "ios",
      "android"
    ]
  }
}

How can I debug this? I cannot see the error message in the console because I am testing on a device and do not know even what the problem could be.

I really would love to use the plugin instead of a third-party service.

Thanks.

Posts: 1

Participants: 1

Read full topic

How to update real-time values returned from an endpoint in any view?

$
0
0

@JoseGonzaga wrote:

Hello everyone, I’m in need of guidance. I need to create a bar of icons like the facebook example, in this bar we will have the notification icons with their values ​​internally. My question is how to make the values ​​from within the icons update automatically the same as the facebook bar. I created a message icon, and the amount of messages comes from an http: // localhost: 4000 / person / message endpoint. How do I get the amount of messages updated in real time?

01

Researching me said that I should use Socket.io, but how to implement this in this situation?

I can get the amount of messages through get method using subscribe. But I do not know how to make it update in real time, equal to the values ​​inside the red balloons of the figure.

Posts: 1

Participants: 1

Read full topic

How to tell which button in fab container was clicked

$
0
0

@jd314159 wrote:

I have an ionic fab

<ion-fab (click)="doSomething($event, fab)">

and click handler code:

doSomething(event: any, fab: FabContainer) {
    // what was clicked???
}

This will be called if the main fab button is clicked AND if any of the buttons inside the fab list were clicked. How can i tell what was clicked in the “doSomething()” function?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Ionic v3 - Camera Permission

$
0
0

@shinsnake wrote:

I am trying to request camera and location permissions when the app starts. The location permission works fine, but the camera permission comes back with a status of “always_denied”. Here’s what the code looks like:

  requestCameraPermissions(): Promise<boolean> {
    return new Promise(resolve => {
      if (this.platform.is('android')) {
        this.andPerms.requestPermission(this.andPerms.PERMISSION.CAMERA).then((result) => {
          console.log('Android Perm Request Result:',  result);
          resolve(result.hasPermission);
        });
      } else {
      this.diag.requestRuntimePermission(this.diag.permission.CAMERA).then((authorization) => {
        //this.diag.requestCameraAuthorization().then((authorization) => {
        console.log(`Camera request result: ${authorization}`);
        // resolve the promise to true or false based on whether it was granted
        resolve(authorization === this.diag.permissionStatus.GRANTED);
      });
    }
    });
  }

The result I get back from the android permissions response is always:

Perm Request Result: Object {hasPermission: false}

When I tried the diagnostics approach, “authorization” is always “DENIED_ALWAYS”.

Here’s my ionic info:

Ionic:

ionic (Ionic CLI) : 4.1.2 (C:\Users\HinesRemote\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 7.1.0
Cordova Platforms : android 6.3.0, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 7 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\android\sdk)
NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

This is occurring on the Android Emulator and I’m currently trying to see what happens on an iOS simulator. I’ll update with that info when it runs. My Mac is a little lightweight so sometimes it’s really slow.

But otherwise any ideas?

Posts: 1

Participants: 1

Read full topic

IONIC 3 - platform.ready() triggered slowly

$
0
0

@natarajamanis wrote:

I had developed Android application in the Ionic framework,

I have used 23 Plugins in my Application

When open the Application , the Platform.ready() state is triggered very lately.

It takes so much of time. How can we improve it ?

Based on that application start time takes 5 to 7 seconds in Android 6.0 and above devices.

I have used below plugins in my config.xml

MySample An awesome Ionic/Cordova app. Ionic Framework Team

<platform name="android">
    <allow-intent href="market:*" />
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
    <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
    <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
    <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
    <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
    <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
    <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
    <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
    <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
    <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
    <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
    <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
    <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <icon height="57" src="resources/ios/icon/icon.png" width="57" />
    <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
    <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
    <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
    <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
    <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
    <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
    <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
    <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
    <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
    <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
    <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
    <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
    <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
    <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
    <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
    <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
    <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
    <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
    <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
    <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
    <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
    <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
    <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
    <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
    <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
    <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
    <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
    <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
    <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
    <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
    <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-advanced-http" spec="^2.0.1" />
<plugin name="cordova-plugin-android-permissions" spec="^1.0.0" />
<plugin name="cordova-plugin-background-mode" spec="^0.7.2" />
<plugin name="cordova-plugin-calendar" spec="^5.1.2" />
<plugin name="cordova-plugin-camera" spec="^4.0.3" />
<plugin name="cordova-plugin-datepicker" spec="^0.9.3" />
<plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
<plugin name="cordova-plugin-filepath" spec="^1.4.2" />
<plugin name="com-darryncampbell-cordova-plugin-intent" spec="^1.1.1" />
<plugin name="cordova.plugins.diagnostic" spec="^4.0.10" />
<plugin name="cordova-plugin-network-information" spec="^2.0.1" />
<engine name="android" spec="7.0.0" />
<plugin name="cordova-plugin-fcm-with-dependecy-updated" spec="^2.2.4" />
<plugin name="cordova-plugin-geolocation" spec="^2.2.4" />

<plugin name="cordova-plugin-dreamover-uid" spec="^2.2.4" />

<plugin name="de.applant.cordova.plugin.localnotification" spec="^2.2.4" />

Blockquote

<platform name="android">
    <allow-intent href="market:*" />
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
    <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
    <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
    <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
    <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
    <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
    <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
    <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
    <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
    <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
    <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
    <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
    <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <icon height="57" src="resources/ios/icon/icon.png" width="57" />
    <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
    <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
    <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
    <icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
    <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
    <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
    <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
    <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
    <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
    <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
    <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
    <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
    <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
    <icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
    <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
    <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
    <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
    <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
    <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
    <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
    <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
    <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
    <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
    <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
    <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
    <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
    <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
    <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
    <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
    <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
    <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-advanced-http" spec="^2.0.1" />
<plugin name="cordova-plugin-android-permissions" spec="^1.0.0" />
<plugin name="cordova-plugin-background-mode" spec="^0.7.2" />
<plugin name="cordova-plugin-calendar" spec="^5.1.2" />
<plugin name="cordova-plugin-camera" spec="^4.0.3" />
<plugin name="cordova-plugin-datepicker" spec="^0.9.3" />
<plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
<plugin name="cordova-plugin-filepath" spec="^1.4.2" />
<plugin name="com-darryncampbell-cordova-plugin-intent" spec="^1.1.1" />
<plugin name="cordova.plugins.diagnostic" spec="^4.0.10" />
<plugin name="cordova-plugin-network-information" spec="^2.0.1" />
<engine name="android" spec="7.0.0" />
<plugin name="cordova-plugin-fcm-with-dependecy-updated" spec="^2.2.4" />
<plugin name="cordova-plugin-geolocation" spec="^2.2.4" />

<plugin name="cordova-plugin-dreamover-uid" spec="^2.2.4" />

<plugin name="de.applant.cordova.plugin.localnotification" spec="^2.2.4" />

Posts: 1

Participants: 1

Read full topic

Custom overlay on camera

$
0
0

@sumitk91 wrote:

I want to create a custom overlay when camera opens. i want to indicate the capture region, so that the user can keep the target with in that region. Is there any way to do that in ionic?

Posts: 1

Participants: 1

Read full topic


Dialog Flow API V2 with Ionic V3

$
0
0

@DipakJain wrote:

Hi All,
How to integrate Dialog Flow API V2 with Ionic V3 Application for different formats of request like text, audio, event. Please share any sample code or reference example for it.

Thanks!!

Posts: 1

Participants: 1

Read full topic

Validate Download Size

$
0
0

@patrikd wrote:

Hi all,
I’m trying to solve a simple problem but it seems in js it’s not that simple as expected :frowning:
I have an app (Android, iOS) which is playing some videos which are downloaded from a server and locally stored.
For the download I use the FileTransferObject from ‘@ionic-native/file-transfer’ which works like expected.

      await fileTransfer.download(source, this.filepath + dest)
      .then((entry) => {
        console.log('loaded: ' , entry );

          entry.file(function (file) {
            var reader = new FileReader();
    
            reader.onloadend = function() {
              
              console.log("Successful file read: " + this.result);
              let tmp: ArrayBuffer = this.result;              
              console.log('tmp.byteLength: ', tmp.byteLength)
            };
    
            reader.readAsArrayBuffer(file);
         });  
        }

At the end of the download I want to validate the local stored filesize against my stored file info which also has the size of the original file.
FileReader has not such a property and the byteLength is not the filesize.
Any hints how to get the size of a local stored file?
thx,
patrik

Posts: 1

Participants: 1

Read full topic

Ionic Native: Social sharing plugin with ES2015

$
0
0

@shashwattripath wrote:

Can we use social sharing ionic/native in native JS without having dependency on Angular.

Looks like when I install Social Sharing Ionic native it has dependency on AngularJS and RxJS.

Posts: 1

Participants: 1

Read full topic

How can I restrict the typing of special characters in my in my ionic 3 cordova app?

$
0
0

@Xiaolue244 wrote:

Hello friends, A warm good morning to one and all. I am new to this hybrid mobile development. I am using to get the details from the user such as mobile number, primary number etc. I need to restrict the special characters in those contact number related fields. How can I do that? I am really struggling to do this. Please help me out.
Here’s what I have done so far:
I have created a separate folder called directives inside shared folder. In that folder, I have created a separate ts(typescript) file called onlynumber.directive.ts and it has the following code:

import { Directive, ElementRef, HostListener } from '@angular/core';

@Directive({
  selector: '[onlyNumber]'
})
export class OnlyNumber {
debugger;
  constructor(private el: ElementRef) {}

  @HostListener('keydown', ['$event'])
  onKeyDown(event) {
    debugger;
  
    let e = <KeyboardEvent> event;
    if ([46, 8, 9, 27, 13, 110].indexOf(e.keyCode) !== -1 ||
      // Allow: Ctrl+A
      (e.keyCode === 65 && e.ctrlKey) ||
      // Allow: Ctrl+C
      (e.keyCode === 67 && e.ctrlKey) ||
      // Allow: Ctrl+X
      (e.keyCode === 88 && e.ctrlKey) ||
      // Allow: home, end, left, right
      (e.keyCode >= 35 && e.keyCode <= 39)) {
      // let it happen, don't do anything
      return;
    }
    // Ensure that it is a number and stop the keypress
    if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
      e.preventDefault();
    }

  }

  @HostListener('contextmenu', ['$event'])
  onMouseRightClick(event) {
    if (event.which === 3) {
      let e = <MouseEvent>event;
      e.preventDefault();
    }
  }
}

Here’s how I have defined it in my shared.module.ts file:

shared.module.ts:

import { OnlyNumber } from './directives/onlynumber.directive';

@NgModule({
    imports: [
      
  ],
  declarations: [
    OnlyNumber
  ],
    exports: [
        ComponentsModule,
        
    ]
})

Here’s how I have used it in my :

<ion-item>
<ion-input no-border class="mydate" type="tel" onlyNumber [(ngModel)]="vm.mobileNumber" minlength="12" maxlength="12" (tap)="mobilecode()"
                               formControlName="mobile" tabindex="1" (keyup)="moveFocus($event,password, false)" Mask="(000) 000-0000"></ion-input>
</ion-item>

It doesn’t worked. Please help me. Thanks. I need some detailed steps to solve it.

Posts: 1

Participants: 1

Read full topic

Ion-datetime with placeholder and ngModel value in ionic

$
0
0

@sundaramoorthy wrote:

Hi,

I am using ion-datetime tag for showing picker in my ionic application. It showing UTC datetime by default and I need a datepicker with specific timezone. So I have done a small piece of code added to get achieve this requirement. I have mentioned my code is given below:

let pickedDate = moment(new Date()).tz(‘Asia/Bangkok’).format();

<ion-datetime (ionChange)=“getPickedDate()” displayFormat=‘DD/MMM/YYYY hh:mm a’ pickerFormat=‘DD/MMM/YYYY hh:mm a’ [(ngModel)]=“pickedDate” placeholder=“Pick Date”>

I need to show the placeholder as “Pick Date” and after open the picker, it needs to show the mentioned timezone datetime value. This is my expected behaviour, but right now placeholder now showing and current time of the mentioned timezone showing in the picker field before picker open.

Anyone having idea to break this, let me know.

Posts: 1

Participants: 1

Read full topic

Viewing all 71016 articles
Browse latest View live


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