Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49526 articles
Browse latest View live

Csproj file for build ios - Visual Studio for Mac

$
0
0

@pdschuler wrote:

This is my use case:

  1. I created my ionic3 cordova project on my PC
  2. I push the code to my git repo and pull it down on my Mac
  3. on the Mac I do “ionic cordova build ios”
  4. that generates a xcodeproj file that I can open in xcode
  5. from xcode I can run that project to my iPhone or simulator

I want to open the ios project in Visual Studio for Mac, which I have installed on the Mac. It will not open the .xcodeproj file.

In VS for Mac I can create an iOS project and that creates the usual VS files: .sln and .csproj

How do I build the ios platform project in my ionic project so that I can open the thing in VS for Mac?

Thanks

Posts: 1

Participants: 1

Read full topic


Woocommerce rest api

Ion-segment-button not displaying texts

$
0
0

@jamesharvey wrote:

Hello guys…
I’m using ion-segment-button with texts & icons.

I followed a guideline here:

I can see icons displaying correctly inside my ion-segment-button but all texts aren’t displaying at all…
Why is this happening?
h2 tag, p tag, changing font color all don’t work in this case.
I applied the same back end from template.
Please help.

Thanks,

Posts: 1

Participants: 1

Read full topic

Setting a certain page as the root

$
0
0

@sam1408 wrote:

hai guys… I’m building an application and an issue came along…
there is a set of pages in my application containing some products category page -> product info page -> cart page -> place order page.(place order is just a page where user gives his credentials and it is stored in the db) after hitting ‘place order’ I want the app to set the root to home Page
I tried :

this.nav.setRoot(HomePage); // by using this i was able to go to homepage but along with a back button in the navigation bar

this.app.getRootNav().setRoot(HomePage); // I tried using this but it gets error saying its deprecated.

I’m almost reached the stage of finishing up my application… please help

Posts: 1

Participants: 1

Read full topic

How get selected value from dropdown menu

$
0
0

@flycoders_sourav wrote:

This is my Html code here.

<ion-item>
      <ion-label>Month</ion-label>
      <ion-select [(ngModel)]="filtermonthwise" interface="action-sheet" (ionChange)="monthfilter(filtermonthwise);">
        <ion-option value="1">January</ion-option>
        <ion-option value="2">February</ion-option>
        <ion-option value="3">March</ion-option>
        <ion-option value="4">April</ion-option>
        <ion-option value="5">May</ion-option>
        <ion-option value="6">June</ion-option>
        <ion-option value="7">July</ion-option>
        <ion-option value="8">August </ion-option>
        <ion-option value="9">September</ion-option>
        <ion-option value="10">October </ion-option>
        <ion-option value="11">November </ion-option>
        <ion-option value="12">December </ion-option>

      </ion-select>
    </ion-item>

Below my ts file function;

monthfilter(filtermonthwise){
console.log(filtermonthwise) ;//show nothing
}

filtermonthwise value is not showing how can i fix that

Posts: 2

Participants: 2

Read full topic

How to connect ionic with MongoDB to do CRUD operations

How to show repeatable metabox value in my app

$
0
0

@soomit wrote:

Developing an ionic app with WordPress back-end, can any one help me out how to show metabox value in my app, below is JSON response. It’s a repeatable metabox fields.


_meta_child_details
0
child_name	"Mayank"
_meta_child_hobby	"Cricket"
child_dob	"10/23/2017"
1
child_name	"Dev"
_meta_child_hobby	"Hockey"
child_dob	"11/20/2017"

Posts: 1

Participants: 1

Read full topic

Resume/cv apps


Payu integration with Ionic 2 framework mobile app

How to solve this error

$
0
0

@nagarajsabhahith wrote:

Response for preflight has invalid HTTP status code 401

I have started with super app from ionic and i have changed example url to my url

My code is

post(endpoint: string, body: any, reqOpts?: any) {
reqOpts = {
headers: new HttpHeaders().set(‘Authorization’,‘Basic V2FwcHlVSTp3QVBQWXVpQE5T’)
};
return this.http.post(this.url + ‘/’ + endpoint, body, reqOpts);
}

and my error is

but i am getting response in postman

Posts: 1

Participants: 1

Read full topic

Project Structure Ionic: src files copied to www?

$
0
0

@MicroAdo wrote:

Hi guys,
i’m trying some app examples on Ionic while i’m reading the documentation.
Here https://ionicframework.com/docs/intro/tutorial/project-structure/ is said that with ionic serve the raw code in src in transpiled into the ES5 version of JavaScript.
My questions are the following:
-when i run ionic server all the code in src is copied in the www folder (also assets, css files etc)?
-testing the app on a device, like android platform, does the same thing of copying to www folder or it does something different like copying the files inside the folder platforms?

Thank you :slight_smile:

Posts: 1

Participants: 1

Read full topic

Setting the toolbar background colour, the correct way?

$
0
0

@DetectiveConan wrote:

Ionic 3. Set the tool bar background colour using $toolbar-background. But the menu button (ion-buttons) is displayed in its original colour. I could set the menu button colour separately, but what is the correct way to set the toolbar background colour once and for all?

3LJ2k

Posts: 3

Participants: 3

Read full topic

Call to ionic native maintainers

$
0
0

@remco75 wrote:

Hi All,
This is a ‘desperate’ call to reach the maintainers of ionic-native. Myself (and many many others) Have created issues in the repo, proposed solutions or PR but get no response at all.

Anyone else facing this issue? If there’s a maintainer out there: can we help out?
I created this issue to get attention to this subject:

please tell us if this repo should be considered abandoned. (maybe some of us could fork it and move on even)

Posts: 1

Participants: 1

Read full topic

I want to create a filter based on month wise.how can i do that?

$
0
0

@flycoders_sourav wrote:

I have a json response get from server now am just want to do user select a month from dropdown menu and get the value month wise how can i do that please guild me.
below my json response.

viewleaddetails	[…]
0	{…}
userID	1
userName	Sumit Singh
userMobile	9003214424
userEmailid	reelay@gmail.com
leadID	3
senderNewCall	50
senderGreenCall	40
senderYellowCall	10
senderFollowUpCall	20
sendDate	29-11-2017
1	{…}
userID	1
userName	Sumit Singh
userMobile	9003214424
userEmailid	reelay@gmail.com
leadID	4
senderNewCall	50
senderGreenCall	40
senderYellowCall	10
senderFollowUpCall	20
sendDate	29-11-2017

Posts: 1

Participants: 1

Read full topic

Install app using qr code

$
0
0

@Vartex05 wrote:

Hi, i want to have a function in my app, that it will read qr code, there will be some url in qr code. After reading qr code, it will install app from url that was in qr code. Is it possible?

Posts: 5

Participants: 2

Read full topic


Notification with FCM : badge / background / size of the notif

$
0
0

@EnzoDLP wrote:

Hello everybody !

I am currently developing the part of the notifications of my application, however I meet several problems … Indeed I managed to do the sending of notification, I receive them well and BUT I do not have a badge on the icon of my application (outside the application) a small 1 red like any application, I do not know how to add it …

Second problem is the size of the notifications, indeed I receive it but it only appears in the notification bar, it’s good but I would like to have an “alert” as in the picture below on the iphone! I found a solution that is to go into the settings of the application installed on the laptop (mobile settings) and activated by ourselves … I would like this to be enabled by default …
images

Finally, third and last problem (it’s already a lot :(), I receive notifications that when I’m on the application or it is in the background, but when it is completely closed or my screen is locked, more notifications …

If anyone has any answers for one or more of my problems, thanks in advance for helping me! :slight_smile:

Posts: 1

Participants: 1

Read full topic

Method not allowed

$
0
0

@dipankar123 wrote:

hi guys i am new in ionic 2,
i am calling a api and facing an error 405 (Method Not Allowed)
don’t understand what is the problem

please see my code below and help me to solve this

in provider:

GetVisitor(AuthToken, MoblieNumber){
    let headers = new Headers({
      'AuthToken': AuthToken
    });

    let options = new RequestOptions({
      headers: headers
    });
    return new Promise(resolve => {
      this.http.get("http://122.160.53.175:83/SmartAccess/WebRequest/GetVisitor?MoblieNumber="+MoblieNumber, options)
        .map(res => res.json())
        .subscribe(
        data => { resolve(data) },
        err => { console.log(err) }
        );
    });
  }

in page.ts:

mobileNo: any;
searchVisitor(event, item) {
    console.log('mobile: ' + this.Mobile);
    this.storage.get('token').then((value) => {
      console.log('token: ' + JSON.parse(value).AuthToken);
      this.userProvider.GetVisitor(JSON.parse(value).AuthToken, this.Mobile.toString()).then(data => {
        console.log('data: ' + data)
        if (data) {
          this.navCtrl.push('VisitorAccessPage',{
            item:item
          });
        }
        if(!data){
          console.log('no data')
        }
      });
    });
  }

in html:

<form  #registerForm="ngForm">
    <ion-item>
      <ion-label color="primary" floating>Enter Visitor's Mobile Number</ion-label>
      <ion-input type="text" minlength="10" maxlength="10" pattern="^[0-9]{10,10}$" name="mobile" #mobile="ngModel" [(ngModel)]="Mobile"
        required>
      </ion-input>
    </ion-item>
                <div *ngIf="mobile.errors && (mobile.dirty || mobile.touched)" class="divAlert">
                  <div [hidden]=" !mobile.errors.required ">This field can't be empty</div>
                  <div [hidden]=" !mobile.errors.pattern ">Use 10digit Number Only</div>
                </div>
    <button ion-button class="submit-btn" full style="float:left" type="submit" [disabled]="!registerForm.form.valid" (click)="searchVisitor($event, item)">Search</button>

  </form>

Posts: 1

Participants: 1

Read full topic

How to creat a filter based on month

AppsFlyer in ionic

How to make vertical scrollbar always visible (Even without touching the screen)

$
0
0

@jiosush wrote:

Hi All,

I am developing an Ionic2 application, using ion-list to display list, giving it a height to make it scrollable. But its showing the scrollbar only when I start touching the list . Else it fades away. I want the scrollbar to show everytime and I want this to work on iOS app as well as android ?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

Viewing all 49526 articles
Browse latest View live


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