@Nadzz1 wrote:
Hi, I was wondering if its possible to do a sliding fab so you can slide up and then it runs a function maybe? is it possible?
Posts: 1
Participants: 1
@Nadzz1 wrote:
Hi, I was wondering if its possible to do a sliding fab so you can slide up and then it runs a function maybe? is it possible?
Posts: 1
Participants: 1
@mgorosito wrote:
Hi everybody! I have a problem with plugin cordova-plugin-file-transfer when i try to send some params with file inside a request for a server.
In server only arrives the file with out extra params.I tried with chunkedMode on true or false, with Connection header with value “close”, removing @ionic-native/transfer and installing @ionic-native/file-transfer but i have the same results. I don’t see what it is that wrong.
This is the method in my provider for upload Files:
import { AppConfig } from '../config'; import { Transfer, FileUploadOptions, TransferObject } from '@ionic-native/transfer'; import { HttpService } from '../http-service'; import { File } from '@ionic-native/file'; import { FilePath } from '@ionic-native/file-path'; let messagesURL = AppConfig.SERVER_URL + 'message'; @Injectable() export class FileUploadServiceProvider { constructor(private transfer: Transfer, private file: File, private filePath: FilePath, public httpService: HttpService) { } uploadMessage(uri): Promise<string> { const fileTransfer: TransferObject = this.transfer.create(); var headers = this.httpService.getOptions(messagesURL).headers; headers.set('Accept', 'application/json'); headers.set('Content-Type', 'multipart/form-data'); headers.set('Connection', 'close'); let options: FileUploadOptions = { fileKey: 'file', fileName: 'file.' + uri.split('.').pop(), chunkedMode: false, headers: headers, params: { recipientId: 500 } } fileTransfer.upload(uri, messagesURL, options) .then((data) => { return JSON.parse(data.response).filename; }, (err) => { console.log(err); return null; }); }
IONIC info:
Ionic: Ionic CLI : 6.1.0 (/usr/lib/node_modules/@ionic/cli) Ionic Framework : ionic-angular 3.4.2 @ionic/app-scripts : 3.2.4 Cordova: Cordova CLI : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : none Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, (and 31 other plugins) Utility: cordova-res (update available: 0.12.2) : 0.9.0 native-run (update available: 1.0.0) : 0.3.0 System: Android SDK Tools : 26.1.1 (/usr/lib/android-sdk) NodeJS : v12.16.2 (/usr/bin/node) npm : 6.14.4 OS : Linux 5.3
The version of plugin-cordova-file-transfer is 1.7.1.
In any case the result is that the server does not receive the recipientId parameter.
Please any help will be useful to me.Bye!
Posts: 1
Participants: 1
@takwin2018 wrote:
I would like to ask if anyone tried building capacitor-based Ionic 4 Android, IOS versions on ms app center.
Thanks in advance
Posts: 1
Participants: 1
@samuelv wrote:
Hi !
I have a little problem with the google place API, when i try a HTTP request to the google API to get a json file, it returns an
unknow error
, but if I try with this link it works : “http://ip.jsontest.com/”Here is my function :
import { HttpClient } from '@angular/common/http'; constructor(private http: HttpClient){} getPlaceInfo(placeId: string){ return this.http.get("https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4&fields=name,rating,formatted_phone_number&key=My_Key") }
The call code:
this.getPlaceInfo(this.placeId).subscribe(data => { console.log(data); })
Do someone know what I should do ?
Thank’s in advance
Posts: 1
Participants: 1
@trfletch wrote:
I have an ion-select setup as follows, the “attribute.value” is a string but the “option.id” on each ion-select-option is an integer, I need to set the initial value of the select based on “attribute.value”. What I have below worked fine on Ionic 3 but on Ionic 4 and Ionic 5 this doesn’t work, I assume because one is a string and one is an integer so it doesn’t think that they match, I believe on Ionic 3 it must have just converted the [value] on an ion-select-option to a string by default.
The “attributes” I am using are dynamic so they can be a string or an integer when they come from the datasource, therefore, I do not have the option of just changing it so that “attribute.value” is instead an integer when it reaches the page.
I effectively need a way of converting the “attribute.value” to an integer within the HTML in [(ngModel])] so that it matches with the correct ion-select-option and sets the correct initial value. How can I do this?
<ion-select [(ngModel)]="attribute.Value" interface="popover"> <ion-select-option *ngFor="let option of attribute.Options" [value]="option.Id">{{option.Name}}</ion-select-option> </ion-select>
Posts: 1
Participants: 1
@hpwah wrote:
Hi,
I implemented modal view in my app. It cannot present as full screen in both iPad and Desktop browser.
May I know whether I miss any parameters to set?
Appreciate you share the alternative solution.Thank you
Andy
Posts: 1
Participants: 1
@CodeKazuko2 wrote:
My dropdown is showing and there is no syntax error but import ReactDOM from ‘react-dom’; is never read.
This is my code below.
import React, { Fragment } from ‘react’;
import ReactDOM from ‘react-dom’;
import { Helmet } from ‘react-helmet’;
import { Link } from ‘react-router-dom’;
import backbtn from ‘…/assets/img/backbtn.png’;
class Setting extends React.Component {
constructor(props) { super(props); this.state = {value: ''}; this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit(event) { alert('Your favorite flavor is: ' + this.state.value); event.preventDefault(); } handleChange = event => { this.setState({value: event.target.value}); }; render() { return ( <Fragment> <Helmet><title>Settings</title></Helmet> <div id = "settings"> <section> <div className ="image"> <Link to="/"><img src={backbtn} alt="back" /></Link> </div> <h3>Settings</h3> <div className="music-container"> <ul> <li>Want to know more about Covid-19?</li> <li>Click these link below!</li> </ul> </div> <form onSubmit={this.handleSubmit}> <label> Pick your favorite flavor: <select value={this.state.value} onChange={this.handleChange}> <option value="grapefruit">Grapefruit</option> <option value="lime">Lime</option> <option value="coconut">Coconut</option> <option value="mango">Mango</option> </select> </label> <input type="submit" value="Submit" /> </form> </section> </div> </Fragment> ); }
}
export default Setting;
Posts: 1
Participants: 1
@rachitha2020 wrote:
I am getting below error, when trying to call a https request in ionic 4 app on iPhone.
And server SSL certificate is a valid and trusted one. Does any one knows a fix for this?
Thanks.14:49:08 iPhone com.apple.WebKit.Networking(CFNetwork)[269] : Task <4926BFD7-00C3-47FC-BC4B-5F4F85F73344>.<3> HTTP load failed (error code: -1202 [3:-9843]) 14:49:08 iPhone com.apple.WebKit.Networking(CFNetwork)[269] : Task <4926BFD7-00C3-47FC-BC4B-5F4F85F73344>.<3> finished with error - code: -1202 14:49:08 iPhone com.apple.WebKit.Networking(CFNetwork)[269] : Task <4926BFD7-00C3-47FC-BC4B-5F4F85F73344>.<3> load failed with error Error Domain=NSURLErrorDomain Code=-1202 UserInfo={NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, NSErrorPeerCertificateChainKey=, NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=, NSErrorFailingURLStringKey=, NSUnderlyingError=0x104d06a20 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=, _kCFNetworkCFStreamSSLErrorOriginalValue=-9843, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9843, kCFStreamPropertySSLPeerCertificates=}}, _NSURLErrorRelatedURLSessionTaskErrorKey=, _kCFStreamErrorCodeKey=-9843, _NSURLErrorFailingURLSessionTaskErrorKey=, NSURLErrorFailingURLPeerTrustErrorKey=, NSLocalizedDescription=} [-1202]
Posts: 1
Participants: 1
@CHAEN wrote:
I have make two select Box.
Using ngif, jquery does not work. How can it work?this is my code
- html
<div *ngIf="game=='nintendo switch' || game=='Playstation Pro'"> <select id="peripheral" class='peribox' style="margin-top:5px; border: solid 1px black"><option id="p" value="no">no</option> <option id="p" value="{{p.name}}" *ngFor="let p of peripheral">{{p.name}}</option> </select>
- ts
$(document).ready(() => { $('#peripheral').change((m) => { console.log(m.target.value) }); })
Can I used *ngIf with jQuery?
help me ;(
Posts: 1
Participants: 1
@CHANAKAKA1992 wrote:
I have developed app ionic 3 .so i want to intergrade firebase crashletics. in ionic V3
$ ionic cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx $ npm install --save @ionic-native/fabric@4
but currently can register and create fabric account and i cant get FABRIC_API_KEY
so how can intergrate it ionic 3also i have tried
ionic cordova plugin add cordova-plugin-firebase-crashlytics
npm install @ionic-native/firebase-crashlyticscould you please help.
Posts: 1
Participants: 1
@farazahmed wrote:
In my
themes/variables.scss
I have two color themes (dark and light):/* LIGHT COLOR THEMES ========================================= */ /*$colors: ( primary: #ffffff, secondary: #fafafa, danger: #f53d3d, light: #1b1e28, sliderColor: #fff, colorIcon: #CCCBDA, colorIconText: #7F7E96, category: #fff, listBackgroundColor: #ffffff, backgroundColor: #fafafa, toobarBackground: #ffffff, toobarButton: #AAB2B7, toobarText: #FFFFFF );*/ /* DARK COLOR THEMES ========================================= */ $colors: ( primary: #282C39, secondary: #1b1e28, danger: #f53d3d, sliderColor: #fff, light: #fff, colorIcon: #7F7E96, colorIconText: #7F7E96, category: #fff, listBackgroundColor: #1B1E28, backgroundColor: #282C39, toobarBackground: #1B1E28, toobarButton: #D8D8D8, toobarText: #FFFFFF );
Right now I can only put one theme in my app. If I want to change the theme, I have to comment the one variable out and the other I have to remove the comments.
How can I using these two themes, change the theme dynamically in the app in typescript?
In every tutorial I see these
--ion-color-primary
but I do not have these--ion-color
prepending
Posts: 1
Participants: 1
@LouisLoyer wrote:
Hello everyone,
I really would like to know a real and serious certification to ionic. i need to obtain it for my high school.
Thnk you for ur help and for ur time.
Posts: 1
Participants: 1
@sanz wrote:
Hi everyone … I have a 360 degree panoramic image I’d like users to display and hopefully interact with on their phone.
Running the latest Ionic Angular and Capacitor as a PWA.
Has anyone had success in implementing 360 degree images so that users can either move their phone to view all around the image OR just use a finger to navigate around?
What is the best package to use that is up-to-date? Would I be best finding an Angular package or would a platform agnostic one work just as well.
My JS/Angular skills are fairly rudimentary so if the package comes with decent instructions that would be a bonus
Cheers. Sanz.
Posts: 1
Participants: 1
@mcihak wrote:
Hi,
in My app I am using Push plugin to receive notification. Everything works perfectly except notification sound.
For my settings I am using common code from documentation:const options: any = { android: { sound: true, vibrate: true, clearBadge: true }, ios: { alert: true, badge: true, sound: true, clearBadge: true } }; const pushObject: PushObject = this.push.init(options);
Is there something I should change to have sound working?
note: in phone in settings are notifications enabled including sound
Posts: 1
Participants: 1
@CodeKazuko2 wrote:
Is there a way to change the hyperlink text color? If there is, how?
Posts: 1
Participants: 1
@alexmehler wrote:
hi,
i have an arry with subarrays:let xxx = [
{ country: "germany", cities: [ "berlin", "munich" ] }, { country: "germany", cities: [ "berlin", "munich" ] }
]
now i want to list only the cities in a list not the country … ngfor doesnt seem like a good fit for that
so my two options are :
- ditch ngfor and just populate the list with two nested for loops and create the ion-items on the fly with vanilla javascript
or
create anotehr array with the same two nested for loops and use that array for ngfor , but then it will be quite hard to get the actual array data on the original array for each list entry with a click listener , which is otherwise easy
if anyone got a better idea or an angular specific solution for this please share
Posts: 2
Participants: 2
@CodeKazuko2 wrote:
I keep trying multiple coding but the dropdown didn’t and the other elements keep showing. Is it better use an external component or type it as a code?
Posts: 1
Participants: 1
@Galilo wrote:
I have finished my ionic app, now i want to deploy it to google’s playstore.
To connect my app to firebase, I need to generate a release key sha1, build my app for production release, place sha1 finger print on firebse, generate facebook key hash and put it on facebook app console, and sign the app.
Could any one narrate the steps as they should be ordered (better if with commands that are explained to those who do not know anything about the keys, hashes, release signature, keystore , alias …).
Moreover, what are the files one should store for later updates of the app?
thanks in advance
Posts: 1
Participants: 1
@XavV wrote:
Hi ,
I’m facing an unexpected issue.
My app have some users and they can change their Profile Picture (avatar).
I store the image with Firebase in a bucket.
And when I upload the image, I named it by the ID of the user.Until here NO issue and pretty simple.
BUT, I could notice that IF the name(and so URL) of the picture is the same (so the ID of the user in case of change) the picture IS NOT reload.
So on the app the profile picture doesn’t refresh and the old one is displayed.I can imagine that there is something like a CACHE ? And if the URL is the same it doesn’t reload the picture.
How can I change this behavior ? Or force the reload of the [<]img[>] ?
Thanks in advance
Xavier
Posts: 1
Participants: 1