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

How to build photo editing app in Ionic 3

$
0
0

@ishitajkanani wrote:

Hi! I am planning to build a photo editing app in ionic v3 for android platform in which I want to integrate following features :
1)Take photo and video from app’s camera
2)Edit photo with effects
3)Able to take photo in panorama mode inside app itself.

Can anyone please help me with this? Which photo editing library(preferably free) should I use ? And MOST IMPORTANTLY HOW TO TAKE PHOTOS IN PANORAMA MODE INSIDE THE APP ITSELF.

@Gajotres and @mhartington I have been following your tutorials.Is there a way possible for this? Any suggestions will be very helpful.

Thank you.

Posts: 1

Participants: 1

Read full topic


App icon issue in android app

$
0
0

@rajesh5129 wrote:

I am developing ionic 4 apps. I have an app icon issue. in a few mobiles app, icons displaying but in few android phones, it show default android app icon but it is now showing my app icon.
can anyone help me to solve this issue?

Posts: 1

Participants: 1

Read full topic

Ngx-socket-io nut working after build using appFlow

$
0
0

@m7ammad7assan wrote:

Hi

I am using ngx-socket-io package and it works good when build android apk on my machine but when build using appFlow it stop working also it is not providing any errors, I guess it is related to the modification on config.xml done by appFlow during build process …

<allow-navigation
<allow-intent

any advice ?!

Posts: 1

Participants: 1

Read full topic

I'm not able to run my app on android device because of this error

$
0
0

@AyushGandhi wrote:

— This error show all the time even I try to remove the Android platform and add again —

Please if anyone knows about it let me know

BUILD SUCCESSFUL

Total time: 1 mins 18.416 secs
Built the following apk(s):
E:/Aproject/Project file/thenationaltv app/mynationaltv/platforms/android/build/outputs/apk/android-debug.apk

native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk
No hardare devices found, attempting emulator…
Selected emulator HKE839LB
Error: ENOENT: no such file or directory, open ‘E:\Aproject\Project file\thenationaltv app\mynationaltv\platforms\android\app\build\outputs\apk\debug\app-debug.apk’
[ERROR] An error occurred while running subprocess native-run.

    native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

Posts: 1

Participants: 1

Read full topic

Capacitor package build trying to build Cordova instead of Capacitor

$
0
0

@pedronieto1984 wrote:

I upload a capacitor ionic4 project and when i try to package build i get error. And on the logs I see that the package build from ionicframework is trying to build a Cordova project. How to set the package build to build with capacitor?

You have been opted out of telemetry. To change this, run: cordova telemetry on.
{ Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOLOCAL
npm ERR! Could not install from “android” as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-06-15T13_08_20_815Z-debug.log
at ChildProcess.whenDone (/usr/local/lib/node_modules/@ionic-enterprise/cordova/node_modules/cordova-common/src/superspawn.js:125:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
stderr: ‘npm ERR! code ENOLOCAL\nnpm ERR! Could not install from “android” as it does not contain a package.json file.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /root/.npm/_logs/2019-06-15T13_08_20_815Z-debug.log\n’,
code: 1 }

±-----±----------------------±------------+
| fastlane summary |
±-----±----------------------±------------+
| Step | Action | Time (in s) |
±-----±----------------------±------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 1 |
| 3 | add_git_credentials | 0 |
| 4 | modify_config_xml | 0 |
| 5 | build_pro_app | 54 |
| 6 | add_cordova_to_index | 0 |
| 7 | download_credential | 0 |
| :boom: | build_android_cordova | 3 |
±-----±----------------------±------------+

[13:08:20]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane…

/var/lib/gems/2.3.0/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/interface.rb:153:in `shell_error!’: [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

You have been opted out of telemetry. To change this, run: cordova telemetry on.
{ Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ENOLOCAL
npm ERR! Could not install from “android” as it does not contain a package.json file.

Posts: 1

Participants: 1

Read full topic

Ionic3 and woocomerce problem

$
0
0

@ndblackandblue wrote:

HI guys, i’m try to make a woocomerce app with ionic3, and i’m using that code:

this.wooCommerce = WC({
      url: 'http://localhost/WooComerce/wp-json/',
      consumerKey: 'ck_8788c50903b73af1260b5ee557946ecc32a1c166',
      consumerSecret: 'cs_d2e8c7cb2b718d3be27a3df67521313d638084ae'
    });
    this.wooCommerce.getAsync("produtos").then((res) => {
      console.log(res);
    }, (err) => {
      console.log("error => ", err);
    })

but for some reason i’m get the error: “Error => Invalid Object”

Posts: 1

Participants: 1

Read full topic

Ionic4 Unoptimized APK

$
0
0

@arlevi wrote:

I build the app using:

ionic cordova build android --prod --release

Then I upload the APK to Google Play Console, it says ( warning ):

Unoptimized APK
Warning:

This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices.

Resolution:

Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.

How I can get out of this ? can’t continue

Posts: 2

Participants: 1

Read full topic

Ionic studio import error

$
0
0

@d0um wrote:

Hi all,
I am trying to open a VueJS/Ionic 4/capacitor with Ionic Studio and I am facing this error :

Ionic Studio v0.0.66 - 2019-06-15T14:00:41.590Z

TypeError

TypeError: expected author to be a string
at file:///C:/Users/ronaa/AppData/Local/Programs/Ionic%20Studio/resources/app.asar/www/build/app/chunk-90be676c.es5.js:1:237313
at file:///C:/Users/ronaa/AppData/Local/Programs/Ionic%20Studio/resources/app.asar/www/build/app/chunk-90be676c.es5.js:1:237662
at step (C:\Users\ronaa\AppData\Local\Programs\Ionic Studio\resources\app.asar\node_modules\tslib\tslib.js:133:27)
at Object.next (C:\Users\ronaa\AppData\Local\Programs\Ionic Studio\resources\app.asar\node_modules\tslib\tslib.js:114:57)
at fulfilled (C:\Users\ronaa\AppData\Local\Programs\Ionic Studio\resources\app.asar\node_modules\tslib\tslib.js:104:62)

Do you have an idea ?

Posts: 1

Participants: 1

Read full topic


Help on Deciding Ionic - Website, PWA and App

$
0
0

@iqbal-ahmed wrote:

Hi all,

We are in the midst of planning a new business application and there are a few requirements for us to fill in multiple iterations:

  1. A desktop web app (first iteration)
  2. A mobile friendly PWA (first or second iteration)
  3. A native app (third iteration)

Now in order to save time and help us re-use logic and move quicker, I thought of Ionic and if it will be possible to use it for all 3.

My concern is can Ionic actually be used for a main desktop website or is it better to create that separately using just Angular and then create a separate mobile website later on which is a PWA using Ionic and hopefully re-use some of the business logic, and API written in Angular.

Finally the idea was if we could do the PWA using Ionic, we can then publish that as hybrid app-store app?

So to summarise two questions really:

  1. Is it possible to create a full desktop website using Ionic or better to create separately?

  2. If we create a PWA using Ionic either as the same or different mobile site based on the above answer, how easy is it to maintain this PWA and also publish it as a hybrid app-store app? From the documentation I see we need to turn off the serviceWorker option in a JSON file? Is that it or is it more complicated?

Appreciate all the help.

Posts: 1

Participants: 1

Read full topic

Jason.package malformed

$
0
0

@shanu12345 wrote:

{
“name”: “ionicserversave”,
“version”: “1.0.0”,
“description”: “ionicServerSave: An Ionic project”,
“dependencies”: {
“gulp”: “^3.5.6”,
“gulp-sass”: “^1.3.3”,
“gulp-concat”: “^2.2.0”,
“gulp-minify-css”: “^0.3.0”,
“gulp-rename”: “^1.2.0”
},
“devDependencies”: {
“bower”: “^1.3.3”,
“gulp-util”: “^2.2.14”,
“shelljs”: “^0.3.0”
},
“cordovaPlugins”: [
“com.ionic.keyboard”
],
“cordovaPlatforms”:
}

Posts: 1

Participants: 1

Read full topic

IONIC 4 - Angular - Build First App - Error

How to run project on simulator (ios) live reload after update

$
0
0

@iconio wrote:

Hey guys, after the latest update to ionic cli 5.0.2 I can’t run my project anymore using the
ionic cordova emulate ios --livereload --consolelogs --target="iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2"

How can I do that now?

Thanks

Posts: 1

Participants: 1

Read full topic

Error TS1005: ';' expected

$
0
0

@rishironak wrote:

export class PersonalDetail {
constructor(private screenOrientation: ScreenOrientation) {
initializeApp();
}
}
initializeApp(){
this.platform.ready().then(() => {
this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
});
}

Compilation error: error TS1005: ‘;’ expected after initializeApp() (6 line).

Posts: 1

Participants: 1

Read full topic

Ionic 4 caching on browser and not reacting to updates until cache is cleared

$
0
0

@hanigb wrote:

I’m using firebase hosting for my web app which is built with Ionic 4 using a template. After every update I implement and deploy to my hosting, the app displays a cached version of the UI and only displays the new deployed update after I hit ctrl+f5. I don’t have much experience with service workers, however with a quick google search I think the problem is in my service-worker.js file:

importScripts('./build/sw-toolbox.js');

self.toolbox.options.cache = {
  name: 'ionic-cache'
};

self.toolbox.precache(
  [
    './build/main.js',
    './build/vendor.js',
    './build/main.css',
    './build/polyfills.js',
    'index.html',
    'manifest.json',
    'https://fonts.googleapis.com/css?family=Changa&display=swap'
  ]
);

self.toolbox.router.any('/*', self.toolbox.fastest);

self.toolbox.router.default = self.toolbox.networkFirst;

Can someone point me to how can I disable this behavior or perhaps have the service worker clear the cache automatically if there are new updates deployed to the hosting?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Can app-routing.module.ts has 2 path with :/id

$
0
0

@lily28 wrote:

Hi, I trying to open maindetail and childdetails page with :/id. But when I run it on localhost, there is no details that i wanted in maindetail page.

What I am trying to do is, i can click the name “aniq” in dashboard (image 1)and shows the child detail page. But the child detail page is not showing the card i wanted (image 2). However when I try to reenter the link localhost:8100/maindetal (image 3) the card is showing. I dont know what is wrong. Can anyone help me, thanks.

this is my app-routing.module.ts

const routes: Routes = [
  { path: 'login', loadChildren: './login/login.module#LoginPageModule' },
  { path: 'register', loadChildren: './register/register.module#RegisterPageModule' },
  { path: '', redirectTo: 'login', pathMatch: 'full' },
  { path: '', loadChildren: './pages/tabs/tabs.module#TabsPageModule' },
   { path: 'maindetail', loadChildren: './pages/maindetail/maindetail.module#MaindetailPageModule' },
  { path: 'maindetail/:id', loadChildren: './pages/maindetail/maindetail.module#MaindetailPageModule' },
  { path: 'childdetails', loadChildren: './pages/childdetails/childdetails.module#ChilddetailsPageModule' },
  { path: 'childdetails/:id', loadChildren: './pages/childdetails/childdetails.module#ChilddetailsPageModule' },
];

image 1

image 2

image 3

maindetail.html

<ion-content padding>
    <ion-card [routerLink]="['/childdetails', profile.id]" *ngFor="let profile of (profiles | async)">
      <ion-card-content>
        <ion-card-title>{{profile.name}}</ion-card-title>
  
        <p>{{profile.notes}}</p>
      </ion-card-content>
    </ion-card>
</ion-content>

tab1.html (dashboard)

<ion-content>
    <ion-fab vertical="bottom" horizontal="end" slot="fixed">
        <ion-fab-button routerLink="/childdetails">
          <ion-icon name="add"></ion-icon>
        </ion-fab-button>
    </ion-fab>

    <ion-searchbar type="item.dname"></ion-searchbar>
  
    <ion-item button [routerLink] ="['/maindetail',profile.id]"*ngFor="let profile of (profiles | async)">
      {{ profile.name }}
    </ion-item>
  </ion-content>

Posts: 1

Participants: 1

Read full topic


Ionic 4 function execute twice on Tabs

$
0
0

@eaxidev wrote:

Function in pages of tab1 loaded twice - ionic-v4
after i call navigateByUrl the function on ngOnInit call twice can someone help me please
after login i call

this.router.navigateByUrl(’/tabs/tab1’);
this is my tabs-router.module
code –

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { TabsPage } from './tabs.page';

const routes: Routes = [
  {
    path: 'tabs',
    component: TabsPage,
    children: [
      {
        path: 'tab1',
        children: [
          {
            path: '',
            loadChildren: '../tab1/tab1.module#Tab1PageModule'
          }
        ]
      },
      {
        path: 'tab2',
        children: [
          {
            path: '',
            loadChildren: '../tab2/tab2.module#Tab2PageModule'
          }
        ]
      },
      {
        path: 'tab3',
        children: [
          {
            path: '',
            loadChildren: '../tab3/tab3.module#Tab3PageModule'
          }
        ]
      }
      // {
      //   path: '',
      //   redirectTo: '/tabs/tab1',
      //   pathMatch: 'full'
      // }
    ]
  },
  {
    path: 'responders',
    component: TabsPage,
    children: [
      {
        path: 'feed',
        children: [
          {
            path: '',
            loadChildren: '../feed/feed.module#FeedPageModule'
          }
        ]
      },
      {
        path: 'reported',
        children: [
          {
            path: '',
            loadChildren: '../reported/reported.module#ReportedPageModule'
          }
        ]
      },
      {
        path: 'reports',
        children: [
          {
            path: '',
            loadChildren: '../reports/reports/reports.module#ReportsPageModule'
          }
        ]
      },
      {
        path: 'waitingforapproval',
        children: [
          {
            path: '',
            loadChildren: '../modals/responderswaitinglist/responderswaitinglist.module#ResponderswaitinglistPageModule'
          }
        ]
      }
    ]
  },
  {
    path: '',
    redirectTo: '/login',
    pathMatch: 'full'
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})

export class TabsPageRoutingModule { }

Posts: 1

Participants: 1

Read full topic

AdmobFree is not showing ads

$
0
0

@salman7263 wrote:

From the past 3 days, I am trying to show admob ads in my real device but no success till yet. I am implementing AdmobFree plugin from this link. What I am doing wrong can anyone please suggest me.

Posts: 1

Participants: 1

Read full topic

Android not working Mapbox on ionic 4 with capacitor?

$
0
0

@raspej wrote:

Hi,
I have a good working iOS en PWA app with Mapbox working.
But when trying to test it on my Android emulator: it doesn’t show anything and my Emulator just stops responding.
How can I debug this?
OR who can tell me what I do wrong / or should I do to make Mapbox JS GL work with Android?
This is how I add it: var mapboxgl = require('mapbox-gl/dist/mapbox-gl.js');

Posts: 1

Participants: 1

Read full topic

Background video in IOS plays in-player or not at all

$
0
0

@SirajKakeh wrote:

I’m trying to have a video background on a page

I’m using tag with source and with some styling it’s working fine on web and Android, but on IOS it’s not showing unless I add autoplay attribute which is openning video player on IOS devices instead of showing the video in the background :sweat_smile:
code sample:

<video playsinline webkit-playsinline autoplay loop muted  id="bg-video">
     <source src="assets/backvideo.mp4" type="video/mp4">
</video>

I tried adding <preference name="AllowInlineMediaPlayback" value="true" /> to confing.xml but that didn’t solve the issue
Does anyone have this issue? How can I overcome it?

Posts: 1

Participants: 1

Read full topic

Create landscape mode when that page is visited

$
0
0

@rishironak wrote:

How could i can create default screen as in landscape for particular page and for other pages it should be in portrait?

Posts: 1

Participants: 1

Read full topic

Viewing all 70435 articles
Browse latest View live


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