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

Is there any way to build only a specific page in Ionic?

$
0
0

@skildfrix wrote:

I have a project that has plenty of pages which some components require login authentication from the server to navigate within the application. I wanted to access a specific page to test native plugins that doesn’t work on live debugging. I can save time rebuilding the project that way bypassing login authentication and navigating for that page manually. I wonder if this is possible for the sake of testing the module I’ve been working on with native plugins that works only on an APK build.

For now, I use ionic cordova run android to build my apk for my physical device running on Android 8.1.0. I hope someone could give me a good information about this. Thank you!

Posts: 1

Participants: 1

Read full topic


Is there a way to group/merge two related JSON?

$
0
0

@OxlPrince wrote:

I have a project that has two related json data. I want to group or merge that two json based the related object to be displayed as an accordion list.

Here is an example of that two related json :

The one is like this

    {
        {
          "ObjectId": '001',
          "ObjectName": 'Fruits'
        },
        {
          "ObjectId": '002',
          "ObjectName": 'Vegetables'
        }
    }

And the other one like this

    {
        {
          "Name": 'Apple',
          "Color": 'Red',
          "ObjectId": '001'
        },
        {
          "Name": 'Eggplant',
          "Color": 'Purple',
          "ObjectId": '002'
        },
        {
          "Name": 'Banana',
          "Color": 'Yellow',
          "ObjectId": '001'
        },
        {
          "Name": 'Spinach',
          "Color": 'Green',
          "ObjectId": '002'
        },
        {
          "Name": 'Garlic',
          "Color": 'White',
          "ObjectId": '002'
        },
    }

I hope someone could give me a solution. Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Is it possible to make a run tracker app in ionic?

$
0
0

@renasance21 wrote:

Havent started learning about angular and ionic, but just a heads up for me if it is possible an app like Nike run? Tracking you with GPS and recording it with time and average speed of the run. Thanks!

Posts: 1

Participants: 1

Read full topic

Audio volume levels

$
0
0

@JAR19 wrote:

OK here’s the issue. My ionic app has been out on the app store for six months or so. This week a user reported a problem where sometimes she cannot hear the audio files being played, whereas if she switches to another app the sound is OK.
I am not IOS expert but I suspect the audio volumes levels are being set lower for the webview by one of the other apps that are running.

What do you think - is that likely scenario?

Problem 2 is what to do about the volume levels, there seems little documentation on how to adjust the volumes levels and what solutions are out there are platform specific where goes against the idea of write once for all platforms.

Posts: 1

Participants: 1

Read full topic

How to access all jpg file from android using ionic native file

$
0
0

@hajarer8 wrote:

hii i am trying to create custom gallery for my app which can pick images from that gallery like instagram and twitter… Please help… Thanks in advanced…

Posts: 1

Participants: 1

Read full topic

Fix ion-segment button on the top of the page

$
0
0

@pksquare wrote:

segment

this is my page i want to fix the segment button ehile scrolling the page. How would i achieve this

Posts: 1

Participants: 1

Read full topic

Best iPhone Data Recovery Software

$
0
0

@cnvuiash wrote:

In essence, we are facing the danger of losing our iPhone or getting it broken at any time. However, we seldom consider the cost of losing an iPhone. The data on iPhone including messages, music, photographs, videos, contact lists and other information are absolutely more precious compared to the device.

What we need is an iPhone data recovery software to restore all losing files. We will introduce TunesKit iPhone Data Recovery in the following paragraph.

What makes TunesKit iPhone Data Recovery stand out from all iOS data recovery solutions is its fastest speed of completely restoring more than 20 types of the lost and deleted files on all iOS device, including iPhone 4 to iPhone X, all models of iPad, iPod touch 6, etc. With only three easy steps, you’ll get back all the missing data: choose data recovery mode, scan and preview the lost data, select and recover the desired files.

For whatever reason you lost files, TunesKit iPhone Data Recovery would rescue those files for you completely, including mistaken deletion, iOS upgrade failure, device damage, password locked, jailbreak error, system crash, virus attack, improper operation, screen broken, device lost, factory reset, etc

Pros

  •   Maximize restore of all data kinds on Device
    
  •   Recover deleted iOS data in case of diverse data loss
    
  •   Free lifetime update
    
  •   Fully compatible with all iOS devices
    

Cons

  •   The trial version has limited features.

Posts: 1

Participants: 1

Read full topic

How to create a directory inside the Android application's data directory?

$
0
0

@skildfrix wrote:

I am trying to create a directory on the data directory of my Android application. However, there’s no directory being created. I have followed the documentation on the Files plugin and modified the code a little bit for testing.

this.file.checkDir(this.file.externalDataDirectory, 'testDir') .then(_ => alert('Directory exists: '+_+". File path: "+this.file.externalDataDirectory)) .catch((err) => { alert("No directory. Created \"testDir\". File path: "+this.file.externalDataDirectory); this.file.createDir(this.file.externalDataDirectory, 'testing', false); });

What seems to be wrong? Thank you!

Posts: 1

Participants: 1

Read full topic


Not able to TESTING build for IOS

$
0
0

@saravananthemesoft wrote:

While running build code am getting following error
The following build commands failed:
CompileC /Users/themesoft/Library/Developer/Xcode/DerivedData/MyApp-bkemlyweisesndehdvyeqrojralm/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/IONAssetHandler.o MyApp/Plugins/cordova-plugin-ionic-webview/IONAssetHandler.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
CordovaError: Promise rejected with non-error: ‘Error code 65 for command: xcodebuild with args: -xcconfig,/Users/themesoft/Desktop/myapp/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/themesoft/Desktop/myapp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/themesoft/Desktop/myapp/platforms/ios/build/sharedpch,-UserModernBuildSystem=0’
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

Posts: 1

Participants: 1

Read full topic

Cordova plugin for Google pay

$
0
0

@arun_yokesh wrote:

Hi guys,
Is there any Cordova plugin available to integrate Google pay as one of the payment option in ionic based app ?

Posts: 1

Participants: 1

Read full topic

Is ionic dashboard aka ionic appflow available now?

Kill tasks in background after some min?

$
0
0

@ahmadklsany wrote:

hello everyone >>>
I send API from my app to my dataBase to save some info
and i used interval or observable.interval or setTimeOut
the problem is just in background mod and after 5 min in background no data save in database
i think my OS stop app tasks after 5 min , so i am looking for something to prevent OS stop my App tasks
any helps ?
thanks

Posts: 1

Participants: 1

Read full topic

WkWebview with Advanced-http & native-http-connection-backend

$
0
0

@JMourao wrote:

Hello,

I am finally porting my application to use WkWebview, but since i am using some third party APIs i had problems with CORS, this led me to use the plugin https://github.com/silkimen/cordova-plugin-advanced-http, great this solves my problem of CORS not working on the device, but adds a problem browser now doesn’t work for development(bummer) i have found then the following plugin https://github.com/sneas/ionic-native-http-connection-backend which fixes my problem about not working on the Browser.

So currently my application is working on the Browser which is great. Is also working 100% on the device. But now i have a problem. Since i am using native http requests they will not show up in the “network” section of my browser but i also use the connection-backend plugin which wraps all the calls. Now i dont know how can i check the network requests in case is needed to debug some issue. Anyone has any idea?

Best regards
JMourao

Posts: 1

Participants: 1

Read full topic

Error with firebase on ios in Xcode

$
0
0

@acryforhelp wrote:

Hi, I am facing the following error.

Can someone please help?

This is in XCode after building using:

ionic cordova product build ios

Showing Recent Messages

:-1: Multiple commands produce '/Users/pritishbhavnani/Library/Developer/Xcode/DerivedData/MyApp-cvfvgodfqzbtsidsrufkptosprej/Build/Products/Debug-iphonesimulator/MyApp.app/GoogleService-Info.plist':

1) Target 'MyApp' (project 'MyApp') has copy command from '/Users/pritishbhavnani/loginRegisterApp/platforms/ios/MyApp/Resources/GoogleService-Info.plist' to '/Users/pritishbhavnani/Library/Developer/Xcode/DerivedData/MyApp-cvfvgodfqzbtsidsrufkptosprej/Build/Products/Debug-iphonesimulator/MyApp.app/GoogleService-Info.plist'

2) Target 'MyApp' (project 'MyApp') has copy command from '/Users/pritishbhavnani/loginRegisterApp/platforms/ios/MyApp/Resources/Resources/GoogleService-Info.plist' to '/Users/pritishbhavnani/Library/Developer/Xcode/DerivedData/MyApp-cvfvgodfqzbtsidsrufkptosprej/Build/Products/Debug-iphonesimulator/MyApp.app/GoogleService-Info.plist'

Posts: 1

Participants: 1

Read full topic

"sudden removal of @angular "as soon as i install ionic app scripts

$
0
0

@sdhupe19 wrote:

Ionic:

ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.0, browser 5.0.3
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 24 other plugins)

System:

NodeJS : v8.9.4 (/home/shubham/.nvm/versions/node/v8.9.4/bin/node)
npm : 5.6.0
OS : Linux 4.15

Posts: 1

Participants: 1

Read full topic


Add input inside actionsheet ionic-v4 beta

$
0
0

@Quouhadiho wrote:

Can anyone help me.
I’m trying to use ionic-v4 beta and I want to add an ion-input inside an actionSheetController.
Any answer will be helpful for me.

Posts: 1

Participants: 1

Read full topic

Unable to use template variables inside ts file

$
0
0

@sdhupe19 wrote:

we are using <ion-tags-input [(ngModel)]=“tags” [verifyMethod]=“verifyTag”> as follows
<ion-tags-input [(ngModel)]=“emails” [type]="‘email’" [color]="’#DC7054’" [maxTags]=“10” [once]="‘true’" (onChange)=“onChange()” [verifyMethod]=“verifyTag”>myname@gmail.com;
but inside the functiion verifyTag we are unable to use ‘this reference’ or any other ts variable

verifyTag(str: string): boolean{
console.log(" gottttttttttttttttttttttt" + JSON.stringify(str) + “other” + this.email.toLocaleLowerCase())
// if(email== str){
// return false;
// }

var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(str).toLowerCase());

}

can anyone suggest how to fix this?

Posts: 1

Participants: 1

Read full topic

Change streaming direction with tv control

$
0
0

@jcaro0207 wrote:

Hi, I an making an app for an android tv box, who recive many streaming directions and I want to change de url with the TV control of the Android Box. The problem is when starts video the HTML only receive information from the back button to close the video; I need it responds to the other buttons without closing the video.

Thank you so much if you know how to do that.

Posts: 1

Participants: 1

Read full topic

Ionic 3 Windows 10 app HTTP POST replaced by GET

$
0
0

@avishai_peretz_dev wrote:

Hey,
I am develop ionic 3 app all works fine when serve on browser, but when i run it on windows as app the http post request replaced by get request.
Ayn idea?

Posts: 1

Participants: 1

Read full topic

Ionic 4: Default route now working

$
0
0

@loki9182 wrote:

The default path in app-routing.module.ts does not seem to be working in my app.
Here is the start of the file:

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { IsReadyGuard } from './is-ready.guard';
import { LoggedInGuard } from './logged-in.guard';

const routes: Routes = [
  { path: '', redirectTo: '/login', pathMatch: 'full' },
  { path: 'login', canActivate:[IsReadyGuard], loadChildren: './pages/login/login.module#LoginPageModule' },

When I navigate to localhost:8100/login, I see my login page no problem.
If I simply go to localhost:8100, I just get a blank page. (I removed the canActivate guard on /login but no help)

So I tried a patch by adding a condition in app.component.ts after platform.ready()

if (window.location.pathname === "/"){
      this.router.navigateByUrl('/login');
    }

This works BUT it seems to stack /login as the second page in the navigation stack. The back button (on browser and android) brings me back to a blank page so I’m guessing I’m seeing app.component.ts without a selected path?

Any idea why my default path is not working?
Otherwise, does anyone know what’s the latest and greatest method of managing the navigation stack in Ionic 4? Is there a way I can specify that I want /login to be first (root) in the navigation stack?

Here’s my ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.8.0 (C:\Users\lucch\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.16
   @angular-devkit/build-angular : 0.12.2
   @angular-devkit/schematics    : 7.0.6
   @angular/cli                  : 7.0.6
   @ionic/angular-toolkit        : 1.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 5 other plugins)

System:

   NodeJS : v11.4.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

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>