Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228527 articles
Browse latest View live

Use Headers in http get request

$
0
0

did you get solution? i also face same


Creating an Ionic AI Chatbot with API.AI

$
0
0

Hi,

I created a Chatbot in an app Android with Ionic 3 using this example, but I have two questions:
Who can I print que questions too? They print, but in sequence (question1,question2,…).
It is valid after March 31, 2020, when DialogFlow V1 is deprecated?

Tanks,

Use Headers in http get request

$
0
0

HOw to allow OPTIONS headers in Apache ?

Cannot find module '@ionic-native/diagnostic/ngx'.ts(2307)

Creating an Ionic AI Chatbot with API.AI

$
0
0

Hi,

The second link give me a 404. can you see that?

Tanks,

Ionic Plugin for SQLite Dont build for Windows Platform

$
0
0

I am creating offline app for microsoft windows using Ionic 4. Also I am using Visual Studio 2015 Community version. Once I install plugin for sqlite, I am unable to generate built for windows. Any help will be highly appreciated.

Ionic 3: Deeplinks. Please Help

$
0
0

Hi everyone

I am trying to run the DeepLinks in an application created in Ionic 3. On Android it is working fine with this plugin: https://ionicframework.com/docs/v3/native/deeplinks/. Declare the URL Scheme, Host and others requesting the plugin. It is in a first instance.

On the other hand, create a base application, with this plugin to open: https://github.com/lampaa/com.lampa.startapp. Declare in the config.xml the URL Scheme to be able to open it in iOS. I leave the example here:

<config-file overwrite = "true" parent = "LSApplicationQueriesSchemes" target = "* - Info.plist">
            <array>
                <string> providers: // </string>
            </array>
</config-file>

Anyway, it doesn’t work. I understand that iOS always has complications. The error he gives me is the following:

-canOpenURL: failed for URL: “providers: //” - error: “The operation couldn’t be completed. (OSStatus error -10814.)”

Anyone could do Deeplinks in any application in Ionic 3? Thank you very much for the help

Attached list of plugins and ionic info

com.lampa.startapp 6.1.6 “startApp”
com.telerik.plugins.nativepagetransitions 0.6.5 “Native Page Transitions”
cordova-plugin-3dtouch 1.3.5 “3D Touch”
cordova-plugin-androidx 1.0.2 “cordova-plugin-androidx”
cordova-plugin-androidx-adapter 1.1.0 “cordova-plugin-androidx-adapter”
cordova-plugin-background-mode 0.7.2 “BackgroundMode”
cordova-plugin-badge 0.8.7 “Badge”
cordova-plugin-camera-preview 0.10.0 “cordova-plugin-camera-preview”
cordova-plugin-cocoapod-supportx 1.7.3 “Cordova CocoaPods Dependency Support”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-email-composer 0.9.2 “EmailComposer”
cordova-plugin-file 6.0.2 “File”
cordova-plugin-file-opener2 2.2.1 “File Opener2”
cordova-plugin-firebasex 7.0.1 “Google Firebase Plugin”
cordova-plugin-inappbrowser 3.1.0 “InAppBrowser”
cordova-plugin-ionic-webview 4.1.1 “cordova-plugin-ionic-webview”
cordova-plugin-local-notification 0.9.0-beta.2 “LocalNotification”
cordova-plugin-nativestorage 2.3.2 “NativeStorage”
cordova-plugin-splashscreen 5.0.3 “Splashscreen”
cordova-plugin-statusbar 2.4.3 “StatusBar”
cordova-plugin-whitelist 1.3.4 “Whitelist”
cordova-universal-links-plugin 1.2.1 “Universal Links Plugin”
ionic-plugin-deeplinks 1.0.20 “Ionic Deeplink Plugin”
phonegap-plugin-barcodescanner 8.0.0 “BarcodeScanner”

Ionic:

Ionic CLI : 5.2.7 (/Users/equiporeserv/.nvm/versions/node/v10.15.3/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.6
@ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-webview 4.1.1, (and 18 other plugins)

Utility:

cordova-res : 0.6.0 (update available: 0.8.1)
native-run : 0.2.8 (update available: 0.3.0)

System:

Android SDK Tools : 26.1.1 (/Users/equiporeserv/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v10.15.3 (/Users/equiporeserv/.nvm/versions/node/v10.15.3/bin/node)
npm : 6.11.3
OS : macOS Mojave
Xcode : Xcode 11.1 Build version 11A1027

Change animations or transitions(Ionic 4)

$
0
0

Sure, adapt it to your needs, here’s my example, put it somewhere into your styles:

@keyframes zoom-in {

    from {

        opacity: .5;
        transform: scale3d(.5, .5, .5);
    } 
    
    to {

       opacity: 1;
    }

}

ion-fab[horizontal="end"][vertical="bottom"] {

	& ion-fab-list {

        animation: zoom-in .25s;

    }

}

Hope it helps.

Cheers
Unkn0wn0x


Leaflet map can't be loaded ionic 4...pleas help!

Problem with deeplinks on iOS

$
0
0

Any update? I need to found a solution :C

Open external app with uri scheme using Deeplinks

$
0
0

Same problem here, i can’t found a solution

Any workaround to solve?

Error with opening external application via custom url scheme

$
0
0

Hi! You found any solution? Thank you very much

Ionic 4 React Fonts and Styles

$
0
0

I don’t fully understand how the vars and styles work in Ionic 4 react app. I was able to successfully install and style my app globally with a font, but want to use different fonts for different elements.

In /src/theme/variables.css I have defined my fonts, as such

/* Fonts */
@font-face {
  font-family: 'Comfortaa', ;
  src: url('/assets/fonts/comfortaa.woff');
}

@font-face {
  font-family: 'OpenSans',;
  src: url('/assets/fonts/opensans.woff2');
}

and applied the style by setting the root font family:

: root {
  ...
  --ion-font-family: 'Comfortaa';
}

However I want to style body or h1 or paragraphs with OpenSans. I cannot figure out where and what I need to do to style each element (font/colors/etc) separately than the root theme.

Any all replies appreciated, thanks in advance.

Ionic 4 not storing updated authentication cookie on iOS and Android

$
0
0

All of a sudden today, our deployed Ionic app stopped accepting the authentication cookie returned by our server. We have made no changes to the app or the server, so we are quite puzzled. After debugging these requests, we confirmed that the SET-COOKIE header is coming back from our login endpoint, but it is not used on requests made after via HttpClient.

This only happens on iOS and Android, running ionic serve everything works.

Any ideas on this one?

Google Analytics - which plugin?

$
0
0

No plugin needed for angularfire analytics

Havent tested it but at the time I needed it, I referenced to the websdk directly which works flawlessly (as per tutorial below)

Just adding the tracking id in the firebase config

Angularfire planned the update once the websdk was out


how to duplicate a page? (I'm a newbie)

$
0
0

How can I duplicate a screen? I want a second screen very similar to the first and I didn’t want to have the trouble of doing it from scratch again.

CORS ISSUE - IONIC 5 Cordova 9 - web api PHP

$
0
0

You cannot use wildcard “Access-Control-Allow-Origin” and Authorization in “Access-Control-Allow-Headers”.

But since you used * anyway you can fudge this:

header(‘Access-Control-Allow-Origin:’ . $_SERVER[‘HTTP_ORIGIN’]);

This is the preflight request, so if you take a look at your logs, your will see this is an OPTIONS request prior to the actual “DELETE” request. Its this OPTIONS request that returns what will and wont be allowed.

Not best practice, but should help you along the way:

if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {

    header('Access-Control-Allow-Origin:' . $_SERVER['HTTP_ORIGIN']);
    header('Access-Control-Allow-Methods: GET,POST,OPTIONS');
    header('Access-Control-Allow-Headers: Content-Type, Authorization');

} else {
     /*    
         Do Actual Request here. Ensure you understand implications and have checks inplace. 
         Use at own risk. Trespassers with be shot. Danger! Live Mine field
    */
}

how to duplicate a page? (I'm a newbie)

$
0
0

Before I go down this path, I would ask myself whether the existing page could fill both its existing role and that of the “second screen” I’m considering.

Ionic 4 not storing updated authentication cookie on iOS and Android

Google Analytics - which plugin?

$
0
0

I used this plugin and its an easy set up and works flawlessly.

Viewing all 228527 articles
Browse latest View live


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