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

Show base64 image from JSON

$
0
0

@StoRmtec wrote:

Hello
I´m new to Ionic. I have some question.

I become Data from JSon that works perfektly.
So when i would display the Image i become always a ErrorMessage

WARNING: sanitizing unsafe URL value data:image/jpg;base64, (see http://g.co/ng/security#xss)
unsafe:data:image/jpg;base64,:1 GET unsafe:data:image/jpg;base64, net::ERR_UNKNOWN_URL_SCHEME

This is the Code.

      <ion-avatar item-start>
              <img src="data:image/jpg;base64,{{item.foto}}">
            </ion-avatar>

Can any Body Help Me.

Posts: 1

Participants: 1

Read full topic


Build a Desktop Application with Ionic 3 and Electron

Play .swf in android app

$
0
0

@Anirudha99 wrote:

hello,i m developing android app using iconic , i tried multiple documentation for playing .swf file in android app but all failed, please give me correct solution with source code.

Posts: 1

Participants: 1

Read full topic

Module parse failed: Unexpected token ionic 3

File Chooser plugin in ionic 2

$
0
0

@chandelkushal wrote:

Hi Team,

I need a plugin which can choose any file from phone and convert that file to base64 .urgently required such thing please help me out with this if anybody know.

thanks,

Posts: 1

Participants: 1

Read full topic

How to show multiple notification in status bar and badge?

$
0
0

@Arulmano wrote:

How do I show multiple notifications in the status bar in android and also show the badge in the icon. I’m using firebase API and cloud setting options

Posts: 1

Participants: 1

Read full topic

force uppercase

Resource generation down again?


Npm install isuue

Ping to the client

$
0
0

@Merrick17 wrote:

hello everyone I’m new on Ionic and trying to make an app for ending my studies :slight_smile:
I need to create an app which ping to multiple clients and push a notifications if there is no answer and gives the error code :slight_smile:
also it must be connected to the server :slight_smile:
and finally i need to make a login for the user :slight_smile:
I would like to know what should I learn
and what should I use ?
and if there is any tutorials or documentations

Posts: 1

Participants: 1

Read full topic

Dont work ionic and cordova

$
0
0

@SmeRT59 wrote:

Hey. I have a problem. I uninstalled the version of Node JS 9.1.0 and installed 8.9.1. After that, Ionik does not work in cmd. What is the problem? The command line just does not see it!

Posts: 1

Participants: 1

Read full topic

Cannot find module "@angular/animations"

$
0
0

@Madhawa wrote:

I’m added this calendar (https://market.ionic.io/themes/ionic-calendar-week )for my Application ,But I had some error
How to fix it ,
this is my
package.jason

{
  "name": "MyApp",
  "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/core": "4.3.2",
    "@ionic-native/splash-screen": "4.3.2",
    "@ionic-native/status-bar": "4.3.2",
    "@ionic/storage": "2.0.1",
    "angular-percent-circle-directive": "^1.1.1",
    "angular-svg-round-progressbar": "^1.1.1",
    "cordova-android": "6.3.0",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-whitelist": "^1.3.1",
    "ion2-calendar": "^2.1.1",
    "ionic-angular": "3.7.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic3-calendar": "^1.1.6",
    "ionicons": "3.0.0",
    "moment": "^2.19.1",
    "rxjs": "5.4.3",
    "sw-toolbox": "3.6.0",
    "uuid": "^3.1.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.0.1",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {}
    },
    "platforms": [
      "android"
    ]
  }
}

Thanks

Runtime Error
Cannot find module "@angular/animations"
Stack
Error: Cannot find module "@angular/animations"
    at Object.<anonymous> (http://localhost:8100/build/vendor.js:132377:7)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.356 (http://localhost:8100/build/main.js:1179:95)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.337 (http://localhost:8100/build/main.js:1159:70)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at webpackJsonpCallback (http://localhost:8100/build/vendor.js:26:23)
    at http://localhost:8100/build/main.js:1:1

Posts: 1

Participants: 1

Read full topic

How can I convert JSP to angular 4?

$
0
0

@jithesh wrote:

We have a project to build mobile hybrid application. Web application already built on java spring. I have to convert jsp to angular 4 or entire project to ionic hybrid app

Posts: 1

Participants: 1

Read full topic

Geolocation.getCurrentPosition() stopped working

$
0
0

@inartech wrote:

Hi guys… Yesterday this function stopped working on android device! I rm android platform and add it again, rm plugin and add it again and nothing! Besides I clean device’s cache and I made a format. Do you have any idea what is going on???

Posts: 1

Participants: 1

Read full topic

Pictures inside cordova.file.dataDirectory don´t show

$
0
0

@FrankDieterS wrote:

Hey everyone,

I successfully developed an app with IONIC 1 last year. It was working until the new iOS Version 11. I solved all problems except one: On one page I display a fullscreen background picture which gets dynamically assigned. This picture is displayed if I use a relative path to the Portraits that are inside the Bundle. An absolute path isn´t working.

What did I try?

  1. I ran the App in the iOS Emulator and logged the path with console.log. Then I checked in the Mac OS Filesystem and the files are there (after the download).
  2. I experimented with the Paths. Wrote them hardcoded with file://, file:///, resolved them manually to cdvfile:// and cdvfile://. Added a call to $window.resolveLocalFileSystemURL() to get either an absolute native Path or an absolute cdvfile path. All absolute Paths fail to display the image. When I made a typo in the path I see the small default icon for file not found, so I know when the Paths are correct.
  3. Tried to use an absolute path to reference the bundle images. With a relative path I see the portrait, with the absolute path it´s the same as with Number 2.
  4. I searched the web and experimented with whitelist entries. No success.
  5. I experimented with different CSP Entries inside index.html, e.g. <meta http-equiv=“Content-Security-Policy” content="default-src ‘self’ data: gap: cdvfile: https://ssl.gstatic.com ‘unsafe-eval’; style-src ‘self’ ‘unsafe-inline’; media-src *”> or <meta http-equiv=“Content-Security-Policy” content="default-src * gap://ready file: cdvfile:; style-src ‘self’ ‘unsafe-inline’ *; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ *”>. No success.
  6. I experimented with the Template, used src instead of ng-src, used double quotes, removed them. No Success.

I am sure I missed something, probably something tiny that blocks displaying the images. The console messages show no nothing indicating that loading the images failed. I have searched for days on the web, trying the suggestions of various threads, examples and tutorials.
Please help me understand what I´m doing wrong.

I use the following versions:
Cordova 7.0.1
Ionic CLI 3.16.0
cc.fovea.cordova.purchase 7.0.2 "Purchase"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-ios-keychain 3.0.1 "KeyChain Plugin for Cordova iOS"
cordova-plugin-media 3.0.1 "Media"
cordova-plugin-splashscreen 4.0.2 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
ionic-plugin-keyboard 2.2.1 "Keyboard"
iOS-plattform 4.4.0

I put the code I found relevant into this plunker: https://plnkr.co/edit/TbAVjs70Tf3bf5AjHY6x

If someone buys/unlocks the app, they download additional portraits in a resolution depending on their device. These get extracted into cordova.file.dataDirectory. In the Mac OS finder I see that the pictures are there.
The Portrait Controller gets all Portrait Definitions from a Service and writes the current one (depending on the portraitId Parameter from the $state) into $scope.portrait.

Please help me understand where my mistake is and how to fix it.

Kind regards,
Frank

Posts: 1

Participants: 1

Read full topic


IONIC and PHP help

$
0
0

@Perial wrote:

**Hello hier ** i am new in IONIC , i write a program which allow the User to have a account on my Applicattion.
I want to manage my **Data Base with PHP ** and i would be thankfull , when someone give me more explanation about.
How does it work , and where i cant get examples as well.
thank you for all

Posts: 1

Participants: 1

Read full topic

List's items content loses alignment when changing the screen rotation

$
0
0

@Youtch wrote:

I’d like to diplay a list of cities with selection’s indicator at left on item’s buttons. I need really to show continuously the select UI at left, but the text can be truncated.
The error is when I rotates from landscape (picture #1) to portrait and I get the picture #2 : the content seems to bee centerd rather to aligned at left. Moreover, if I rotates again landscape and again portrait I get the same result.

lndscp

prtrt

There is the template’s extract :

<ion-list no-lines >
	<ion-item style="width:600px"  style="text-align:left;align-self:left;align-items:left;align-content:left"  [style.width]="ionItem_width" *ngFor="let f of favorites" no-lines>
		<button ion-button color="light_textCol" style="text-align:left;align-self:left;align-items:left;align-content:left;width:100%;  "  (click)="setItemAsDefault(f.id)">
		<i item-left (ionClick)="setItemAsDefault(f.id)" *ngIf="f.isDefaultCity"  style="font-size: 2em" class="fa fa-check-square-o" aria-hidden="true"></i>
		<i item-left (ionClick)="setItemAsDefault(f.id)" *ngIf="!f.isDefaultCity"  style="font-size: 2em"class="fa fa-square-o" aria-hidden="true"></i>
		<span style="font-size: 2em">{{f.cityName}}</span>
	</ion-item>
</ion-list>

NB : The select UI is an awesomeFont UI in a markup, which is alternativaly selected or not selected according to f.isDefaultCity.

Posts: 1

Participants: 1

Read full topic

Ionicv2 apk not showing anything

Converting a modularised app to Lazy Loading

$
0
0

@richardshergold wrote:

I’m working on a fairly complex application (approx 50+ page components) and would like to look at using Lazy Loading now to see if the app startup time can be improved a little bit. I have been reading up on Lazy Loading and have seen blog posts like this one from Ionic. However, I’m having problems getting my head around implementing this for a slightly more complicated app like mine. I already have the application separated into modules (based loosely on the Angular style guidelines [here])(https://v2.angular.io/docs/ts/latest/guide/style-guide.html).

In my applications I have 13 feature modules. As an example, I have a Settings module which seems a pretty good candidate for lazy loading as the user will probably only need it occasionally. The Settings module itself contains a list of sub-components and it’s structure currently looks like this:

the settings.module.ts file looks like this, with each of these sub-components imported:

// framework imports
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';

// components
import { SettingsComponent } from "./settings/settings.component";
import { ChangePasswordComponent } from "./change-password/change-password.component";
import { ConnectionsComponent } from "./connections/connections.component";
import { NotificationSettingsComponent } from "./notification-settings/notification-settings.component";
import { PersonalDetailsComponent } from "./personal-details/personal-details.component";
import { PinSettingsComponent } from "./pin-settings/pin-settings.component";
import { PinChangeComponent } from "./pin-settings/pin-change/pin-change.component";
import { RateUsComponent } from "./rate-us/rate-us.component";

// components array
export const myComponents = [
  SettingsComponent,
  ChangePasswordComponent,
  ConnectionsComponent,
  NotificationSettingsComponent,
  PersonalDetailsComponent,
  PinSettingsComponent,
  RateUsComponent,
  PinChangeComponent
];


@NgModule({
  imports: [IonicModule],
  declarations: [
    ...myComponents
  ],
  entryComponents: [
    ...myComponents
  ]
})

export class SettingsModule {}

The sub components are all imported into settings.component.ts which displays then in a list for the user to click on so I have:

import { PersonalDetailsComponent } from '../personal-details/personal-details.component';
import { ConnectionsComponent } from '../connections/connections.component';
import { NotificationSettingsComponent } from '../notification-settings/notification-settings.component';
import { PinSettingsComponent } from '../pin-settings/pin-settings.component';
import { ChangePasswordComponent } from '../change-password/change-password.component';
import { RateUsComponent } from '../rate-us/rate-us.component';
import { LoginComponent } from './../../login/login/login.component';

in my app.module.ts file I import the settings module i.e

import { SettingsModule } from "./feature-modules/settings/settings.module";

In my application when the user clicks on the Settings option on the side-menu I open the Settings component so in my app.component.ts file I import that component:

import { SettingsComponent } from "./feature-modules/settings/settings/settings.component";

and then reference it later:

this.nav.setRoot(SettingsComponent);

So my question is, what would be considered the best way of implementing Lazy Loading for my 12 feature modules such as the Settings module?

Do I follow the standard Lazy Loading pattern that is used for pages e,g create a module file for each component within my Settings module e.g change-password-component.module.ts and so or is there a better way of lazy loading a whole module itself rather than each individual component? Thanks for reading!

Posts: 1

Participants: 1

Read full topic

Has anyone actually deployed an Ionic app to the web?

$
0
0

@crkvend wrote:

Hi everyone!

I’m thinking of the possibility to deploy our Ionic 2+ app to the web. Right now, we have a separate website, and even tho it is also built with Angular and some code is shared, it would be amazing to actually properly have one codebase for both the apps and the web.

Has anyone actually tried this or has any experience with it?

There would have to be a lot of “css hacks”, i.e. overrides for larger screens (since i really don’t want just a blown up mobile app, I’d have to hide the tabbar, move everything from it to e.g. a side meny or alike) but technically, everything sounds doable. Plus, the material implementation in Ionic is superb, and I think users on the web are used to that design, so it wouldn’t really feel out of place.

I’d really like to hear your input about this!
/Daniel

Posts: 1

Participants: 1

Read full topic

Viewing all 70446 articles
Browse latest View live


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