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

App monetize

$
0
0

@fabioferrero wrote:

Any hint on library/services to monetize an app? Like banner or interstitial? I’ve used admob but now I’d like to change (some problems with the account).

I’ve tried adbuddiz that I can compile without problems, seems to work but there aren’t any ad available for iOS in many days, works good on Android… support doesn’t reply…

I’ve tried leadbolt that seems to work but on iOS I always got the error: “Module inapp failed to cache:no fill” while I can’t download android sdk… support replies very slowly…

Any suggestion?

Thanks…

Posts: 1

Participants: 1

Read full topic


How to globally set Ionic components buttons translations

$
0
0

@fabianotavallini wrote:

Hi all,
is there a way to globally configure ionic components buttons text?

I need to translate for example Input Properties like:

  • cancelText, okText from Select component
  • cancelText, doneText from DateTime component

Is there a similar way to set those strings in Config? Like backButtonText:

this.config.set('backButtonText', this.translate.instant("BACK"))

I would like to do something like:

this.config.set('cancelText', this.translate.instant("CANCEL"));
this.config.set('doneText',   this.translate.instant("DONE"));
this.config.set('okText',   this.translate.instant("OK"));

Instead of doing this for each component template:

<ion-select [cancelText]="translate.instant('CANCEL')" [okText]="translate.instant('OK')"></ion-select>
<ion-datetime [cancelText]="translate.instant('CANCEL')" [doneText]="translate.instant('DONE')"></ion-datetime>

Thanks in advance

Posts: 1

Participants: 1

Read full topic

How to better catch/do/empty with RXJS 5.5.2 Updates

$
0
0

@reedrichards wrote:

As staten in the ionic-angular 3.9.0 release notes (https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md), using the advantages of updating to RXJS 5.5.2 could reduce the bundle size and therefore lead to a faster boot time

Cool, cool, cool :slight_smile:

The example provided by Ionic, to migrate for example debounceTime is pretty clear, I get it.

But it’s pretty unclear to me how I should update my following code to take the full advantage of this update.

Anyone could help me to convert it?

 import {Observable} from 'rxjs/Observable';
 import 'rxjs/add/observable/empty';
 import 'rxjs/add/operator/do';
 import 'rxjs/add/operator/catch';

 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {

    return next.handle(req).do((event: HttpEvent<any>) => {
        if (event instanceof HttpResponse) {
            // do stuff with response if you want
        }
    }).catch((err: HttpErrorResponse) => {
        if ((err.status == 400) || (err.status == 401)) {
            this.interceptorRedirectService.getInterceptedSource().next(err.status);
            return Observable.empty();
        } else {
            return Observable.throw(err);
        }
    })
}

** EDIT **

Maybe like following, but unsure about empty

import {Observable} from 'rxjs/Observable';
import 'rxjs/add/observable/empty';
import {tap} from 'rxjs/operators';
import {catchError} from 'rxjs/operators';

intercept(req: HttpRequest<any>, next: HttpHandler):   Observable<HttpEvent<any>> {

       return next.handle(req).pipe(
        tap((event: HttpEvent<any>) => {
            if (event instanceof HttpResponse) {
                // do stuff with response if you want
            }
        }),
        catchError((err: HttpErrorResponse) => {
            if ((err.status == 400) || (err.status == 401)) {
                this.interceptorRedirectService.getInterceptedSource().next(err.status);
                return Observable.empty();
            } else {
                return Observable.throw(err);
            }
        })
    );
}

Posts: 1

Participants: 1

Read full topic

Cannot read property ''" of null

$
0
0

@jchoh0522 wrote:

This is one of the common issues I noticed in ionic 3

My current app requires me to fetch eventlist from third party web API. I always notice that ionic will throw this error (which happens when you did not define your variable property before hand, and trying to interpolate it in view).

What happens is when i run my app via ionic serve -l , the view will attempt to interpolate the eventlist array, but because it takes a while for the eventlist to fetch, it will always throw this error…but upon dismissing the error screen, some of the information has already been loaded.

Is there a way to ensure the information has been fully fetched before the html renders?

Posts: 1

Participants: 1

Read full topic

Ionic native base64 not working in xcode9

$
0
0

@Nulra wrote:

I have using crop native plugin, after it I need to change the image path to base64 string, but in xcode9, the function is not calling. Everything is fine when not using xcode9.

Posts: 1

Participants: 1

Read full topic

Intergrate jar file into ionic project

$
0
0

@Rim007 wrote:

Hey there,

I’m developing an app (Ionic v3) with a chatbot using AIML. My project goal: The chatbot should ask questions and the user have to answer. But I’ve one big problem: There’s no working AIML-Interpreter. There’s only ProgramAB as a jar file and I’ve found this tutorial to work with ProgramAB in java.
My plan: I’ve tried to integrate this jar file into my projekt as a cordova plugin like this…

plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="aiml-interpreter" version="1.0.0">
    <name>AIML Interpreter</name>
    <description></description>
    <license>MIT</license>
    <keywords></keywords>

    <js-module src="www/plugin.js" name="plugin">
        <runs/>
        <clobbers target="AIMLInterpreter" />
    </js-module>

    <!-- android -->

    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="AIMLInterpreter">
                <param name="android-package" value="com.example.AIMLInterpreter" />
                <param name="onload" value="true" />
            </feature>
        </config-file>
        <source-file src="src/android/libs/aiml-plugin.jar" target-dir="src/com/example/" />
    </platform>
</plugin>

and in config.xml

<lib-file src="plugins/aiml-plugin/src/android/libs/aiml-plugin.jar"/>

…and now - I’m honest - I’ve no idea what to do next. What should I write into the plugin.js and the chat.ts files? Can anyone help me?

Rim

Posts: 1

Participants: 1

Read full topic

User locked orientation

Getting referrer parameter inside an Ionic app

$
0
0

@hitpopdimestop wrote:

Hello!
Couldn’t find any recent info about getting referrer parameters in the Ionic app. Have anybody done that? Need to do it both for android and ios platforms.
Thanks!

Posts: 1

Participants: 1

Read full topic


AlertController event propagation issue

$
0
0

@inder wrote:

hi all,
i have some issue with "AlertController"
my layout includes a number of “ion-range” bar and a button at the bottom. when user click on button, i calls an api , if any error of connection or any other error, an alert will display(instance of AlertController). when user click on “ok/cancel” buttons, it propagates the click event to the background and change the value of “ion-range”, that is just below the “ok/cancel” buttons.
so i brief is their any way that i can stop click event propagation of alertCtrl.
Please help me in this. any help will be appreciated

Posts: 1

Participants: 1

Read full topic

Introduction to AI for Ionic developers: Synaptic training

Compiling scss manually

$
0
0

@HinderiksR wrote:

Hi,

I was wondering if it were possible to create the main.css yourself via cli.

Backstory: We need to create a container app for 120+ customers and currently we have 120+ apps with different variables.scss files. Since Apple dropped a bomb on it’s developers and are ignoring any contact, we are going to create a container app. We would like to retrieve these different stylesheets from a server (which we already got working) But now i need a way to build 120+ different versions of main.css

With best regards,
Robin Hinderiks

Posts: 1

Participants: 1

Read full topic

Problem with ionic-native/serial and live reload

$
0
0

@fredericbrandtinovsh wrote:

Hey !
I encounter a bit of an issue here, I’m currently trying to develop an android app reading from a usb serial device, and it seems to work for now.
But using the live-reload feature of Ionic CLI seems to break the plugin. Everything works on the first run of the app, but when it reloads after making code changes, the plugin methods throws error with this message : “plugin_not_installed”. Everything seems right to me, and since I don’t see much user experiences on the web with this plugin, I’m asking for help here :slight_smile:

Thanks for you help !

My package.json

{
 "name": "testApp",
 "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": "5.0.0",
   "@angular/compiler": "5.0.0",
   "@angular/compiler-cli": "5.0.0",
   "@angular/core": "5.0.0",
   "@angular/forms": "5.0.0",
   "@angular/http": "5.0.0",
   "@angular/platform-browser": "5.0.0",
   "@angular/platform-browser-dynamic": "5.0.0",
   "@ionic-native/core": "4.3.3",
   "@ionic-native/serial": "^4.3.3",
   "@ionic-native/splash-screen": "4.3.3",
   "@ionic-native/status-bar": "4.3.3",
   "@ionic/storage": "2.1.3",
   "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",
   "cordovarduino": "0.0.8",
   "fr.drangies.cordova.serial": "~0.0.7",
   "ionic-angular": "3.9.2",
   "ionic-native": "^2.9.0",
   "ionic-plugin-keyboard": "~2.2.1",
   "ionicons": "3.0.0",
   "rxjs": "5.5.2",
   "sw-toolbox": "3.6.0",
   "zone.js": "0.8.18"
 },
 "devDependencies": {
   "@ionic/app-scripts": "3.1.0",
   "typescript": "2.4.2"
 },
 "description": "An Ionic project",
 "cordova": {
   "plugins": {
     "ionic-plugin-keyboard": {},
     "cordova-plugin-whitelist": {},
     "cordova-plugin-device": {},
     "cordova-plugin-splashscreen": {},
     "cordova-plugin-ionic-webview": {},
     "fr.drangies.cordova.serial": {}
   },
   "platforms": [
     "android"
   ]
 }
}

The page where I currently work

export class HomePage {

  public console: string = '';

  constructor(public navCtrl: NavController, private serial: Serial) { }

  ionViewDidLoad(){
    this.serial.requestPermission({
      vid:'2405',
      pid:'000b',
      driver: 'CdcAcmSerialDriver'
    }).then(() => {
      this.serial.open({
        baudRate: 9800,
        dataBits: 4,
        stopBits: 1,
        parity: 0,
        dtr: true,
        rts: true,
        sleepOnPause: false
      }).then(() => {
        this.console += 'Serial connection opened' + '\n';
        this.serial.registerReadCallback().subscribe(data => {
          this.console += JSON.stringify(data) + '\n';
        }, (error: any) => this.console += error + '\n');
      }).catch((error: any) => this.console += error + '\n' );
    }).catch((error: any) => this.console += error + '\n' );


  }

}

Posts: 1

Participants: 1

Read full topic

Ionic cordova run android on windows

$
0
0

@proiertti wrote:

On my windows 10 pc
cordova 7.1.0
ionic 3.16.0
npm 5.5.1

I run ionic cordova run android but I obtain the following error:

Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
[ERROR] An error occurred while running cordova run android (exit code 1).

Now It could be clear, but I installed Android Studio and my android sdk is placed under

C:\Users\Utente\AppData\Local\Android\Sdk

I set my ANDROID_HOME environment variables and I added it also on my PATH variable.

C:\Users\Utente\AppData\Local\Android\Sdk\tools
C:\Users\Utente\AppData\Local\Android\Sdk\platform-tools

I don’t understand why I continue to obtain the error above. If I type android or if I type echo %ANDROID_HOME% from cmd, all seems correct!

Please, anyone have a solution?

Posts: 1

Participants: 1

Read full topic

According to best practices in ionic 3... what should I use? Pages or Components?

$
0
0

@msettecasse wrote:

My questions is … what should i use when creating an app … Pages or Components? i don’t understand the difference. Can anybody explain me this?

Posts: 1

Participants: 1

Read full topic

VM error on iOS builds

$
0
0

@thisisarray wrote:

iOS builds are failing on all of my branches with the following error:

Running with gitlab-runner 10.2.0~beta.134.g56c0aa3c (56c0aa3c)
on ip-10-2-74-66 (edf4f84a)
Creating new VM…
ERROR: Preparation failed: An error occurred while saving the snapshot: Too many levels of redo logs.
Will be retried in 3s …

Android builds are working. Is there anything I can do or is this an infrastructure issue?

Posts: 1

Participants: 1

Read full topic


Huge difference between android and ios app sizes

$
0
0

@alesub wrote:

Hi,

I’m developing my first app, it’s super small as it only checks for a wifi network to open a web view. It has just one screen with a small js script.

Plugins in use:

  • com.pylonproducts.wifiwizard
  • ionic-native/in-app-browser

The android app size is 13mb, it seemed a bit big, but I can live with it. The thing is when I compiled the app for iOS, the resulting file uploaded to iTunes is 55mb!!!

Is this size difference between platforms normal? Is there a way to optimize?

Thanks!

Posts: 1

Participants: 1

Read full topic

PWA and Lighthouse

$
0
0

@david_bc wrote:

Hello everyone,

I am trying to build a PWA using ionic.

I created a new project using sidemenu. After enabled service-workers, and run an audit with lighthouse, I get a lot of bad performance (main.css specialy)

To launch my PWA , I do :

npm run ionic:build --prod
ionic cordova emulate browser --livereload

And obtain this result :

My ionic info :

@ionic/cli-utils : 1.10.1
ionic (Ionic CLI) : 3.10.1

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : browser 4.1.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v7.7.1
npm  : 4.1.2
OS   : Windows 10

Main.css is a generated file. so i can’t do this https://developers.google.com/web/tools/lighthouse/audits/blocking-resources

Any help or suggestion would be great :slight_smile:
Thanks in advance

Posts: 1

Participants: 1

Read full topic

How can I run Ionic V1 app in V3 envirinment?

$
0
0

@ankushgoyal wrote:

I already have an app which was created using ionic V1. It is a very huge app so difficult to migrate easily.

But from now onwards I do not want to develop the app using V1.

So, I am thinking if it is possible to run the V1 app in V3 environment for time being till the complete migration is done.

If possible please provide your inputs.

Thanks in advance.
Ankush

Posts: 1

Participants: 1

Read full topic

Local Notifications icon sound

Ionic Cloud Deploy and Push Notification limits and costs for exceeding them

$
0
0

@reallyquitetoby wrote:

Hi all,

I hope someone will be able to help me here. I have an app in production that is still using the old Cloud services as we haven’t had an opportunity to upgrade to Ionic Pro yet (January is getting very close now eek). That said we still need to use Deploy and Push with the old services in the interim and the app in question now has enough users that our next Deploy / hot push and Push Notification send will definitely exceed the Deploy 5000/month and Push 10,000/month free limits.

However I can not find anywhere where the old pricing information is and the cost implication for exceeding these limitations as everything is now focused on Ionic Pro pricing. Can anyone shed any light on how much it will cost us to deploy and push beyond these limits?

Many thanks for your help in advance.

Kind regards,

Toby

Posts: 1

Participants: 1

Read full topic

Viewing all 70448 articles
Browse latest View live


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