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

IONIC 3 InAppBrowser executeScript

$
0
0

@amirsa00 wrote:

I am using this native plugin to open a InAppBrowser. Also I want to inject a css and/or JS in that page, as in that page mentioned, I should use below code for css inject but it doesn’t work:

browser.on('loadstop').subscribe(event => {
   browser.insertCSS({ code: "body{color: red;" });
});

Can anyone help me?

Posts: 1

Participants: 1

Read full topic


Select Menu for countries

$
0
0

@geo3433 wrote:

Hello, I build a select menu in a list with the html code

      <ion-item>
          <ion-label>Country</ion-label>
          <ion-select [(ngModel)] = "countrySelected">
            <ion-option *ngFor = "let c of countryData" value="{c.id}">{{c.name}}</ion-option>
          </ion-select>
      </ion-item>

In the ts file I declare the needed variables:

countryData : any[];
  country : any;
countrySelected: any;

and initialize the choices of the select menu in the constructor:

this.countryData =  [
    {
      "id": 1,
      "name": "Afghanistan"
    },
    {
      "id": 2,
      "name": "Albania"
    },
    {
      "id": 3,
      "name": "Algeria"
    },
    {
      "id": 4,
      "name": "American Samoa"
    },
    {
      "id": 5,
      "name": "Andorra"
    },
    {
      "id": 6,
      "name": "Angola"
    },
    {
      "id": 7,
      "name": "Anguilla"
    },
    {
      "id": 8,
      "name": "Antarctica"
    },
    {
      "id": 9,
      "name": "Antigua and Barbuda"
    },
    {
      "id": 10,
      "name": "Argentina"
    },
    {
      "id": 11,
      "name": "Armenia"
    },
    {
      "id": 12,
      "name": "Aruba"
    },
    {
      "id": 13,
      "name": "Australia"
    },
    {
      "id": 14,
      "name": "Austria"
    },
    {
      "id": 15,
      "name": "Azerbaijan"
    },
    {
      "id": 16,
      "name": "Bahamas"
    },
    {
      "id": 17,
      "name": "Bahrain"
    },
    {
      "id": 18,
      "name": "Bangladesh"
    },
    {
      "id": 19,
      "name": "Barbados"
    },
    {
      "id": 20,
      "name": "Belarus"
    },
    {
      "id": 21,
      "name": "Belgium"
    },
    {
      "id": 22,
      "name": "Belize"
    },
    {
      "id": 23,
      "name": "Benin"
    },
    {
      "id": 24,
      "name": "Bermuda"
    },
    {
      "id": 25,
      "name": "Bhutan"
    },
    {
      "id": 26,
      "name": "Bolivia"
    },
    {
      "id": 27,
      "name": "Bosnia and Herzegovina"
    },
    {
      "id": 28,
      "name": "Botswana"
    },
    {
      "id": 29,
      "name": "Bouvet Island"
    },
    {
      "id": 30,
      "name": "Brazil"
    },
    {
      "id": 31,
      "name": "British Indian Ocean Territories"
    },
    {
      "id": 32,
      "name": "Brunei Darussalam"
    },
    {
      "id": 33,
      "name": "Bulgaria"
    },
    {
      "id": 34,
      "name": "Burkina Faso"
    },
    {
      "id": 35,
      "name": "Burundi"
    },
    {
      "id": 36,
      "name": "Cambodia"
    },
    {
      "id": 37,
      "name": "Cameroon"
    },
    {
      "id": 38,
      "name": "Canada"
    },
    {
      "id": 39,
      "name": "Cape Verde"
    },
    {
      "id": 40,
      "name": "Cayman Islands"
    },
    {
      "id": 41,
      "name": "Central African Republic"
    },
    {
      "id": 42,
      "name": "Chad"
    },
    {
      "id": 43,
      "name": "Chile"
    },
    {
      "id": 44,
      "name": "China, People's Republic of"
    },
    {
      "id": 45,
      "name": "Christmas Island"
    },
    {
      "id": 46,
      "name": "Cocos Islands"
    },
    {
      "id": 47,
      "name": "Colombia"
    },
    {
      "id": 48,
      "name": "Comoros"
    },
    {
      "id": 49,
      "name": "Congo"
    },
    {
      "id": 50,
      "name": "Cook Islands"
    },
    {
      "id": 51,
      "name": "Costa Rica"
    },
    {
      "id": 52,
      "name": "Cote D'ivoire"
    },
    {
      "id": 53,
      "name": "Croatia"
    },
    {
      "id": 54,
      "name": "Cuba"
    },
    {
      "id": 55,
      "name": "Cyprus"
    },
    {
      "id": 56,
      "name": "Czech Republic"
    },
    {
      "id": 57,
      "name": "Denmark"
    },
    {
      "id": 58,
      "name": "Djibouti"
    },
    {
      "id": 59,
      "name": "Dominica"
    },
    {
      "id": 60,
      "name": "Dominican Republic"
    },
    {
      "id": 61,
      "name": "East Timor"
    },
    {
      "id": 62,
      "name": "Ecuador"
    },
    {
      "id": 63,
      "name": "Egypt"
    },
    {
      "id": 64,
      "name": "El Salvador"
    },
    {
      "id": 65,
      "name": "Equatorial Guinea"
    },
    {
      "id": 66,
      "name": "Eritrea"
    },
    {
      "id": 67,
      "name": "Estonia"
    },
    {
      "id": 68,
      "name": "Ethiopia"
    },
    {
      "id": 69,
      "name": "Falkland Islands"
    },
    {
      "id": 70,
      "name": "Faroe Islands"
    },
    {
      "id": 71,
      "name": "Fiji"
    },
    {
      "id": 72,
      "name": "Finland"
    },
    {
      "id": 73,
      "name": "France"
    },
    {
      "id": 74,
      "name": "France, Metropolitan"
    },
    {
      "id": 75,
      "name": "French Guiana"
    },
    {
      "id": 76,
      "name": "French Polynesia"
    },
    {
      "id": 77,
      "name": "French Southern Territories"
    },
    {
      "id": 78,
      "name": "FYROM"
    },
    {
      "id": 79,
      "name": "Gabon"
    },
    {
      "id": 80,
      "name": "Gambia"
    },
    {
      "id": 81,
      "name": "Georgia"
    },
    {
      "id": 82,
      "name": "Germany"
    },
    {
      "id": 83,
      "name": "Ghana"
    },
    {
      "id": 84,
      "name": "Gibraltar"
    },
    {
      "id": 85,
      "name": "Greece"
    },
    {
      "id": 86,
      "name": "Greenland"
    },
    {
      "id": 87,
      "name": "Grenada"
    },
    {
      "id": 88,
      "name": "Guadeloupe"
    },
    {
      "id": 89,
      "name": "Guam"
    },
    {
      "id": 90,
      "name": "Guatemala"
    },
    {
      "id": 91,
      "name": "Guinea"
    },
    {
      "id": 92,
      "name": "Guinea-Bissau"
    },
    {
      "id": 93,
      "name": "Guyana"
    },
    {
      "id": 94,
      "name": "Haiti"
    },
    {
      "id": 95,
      "name": "Heard Island And Mcdonald Islands"
    },
    {
      "id": 96,
      "name": "Honduras"
    },
    {
      "id": 97,
      "name": "Hong Kong"
    },
    {
      "id": 98,
      "name": "Hungary"
    },
    {
      "id": 99,
      "name": "Iceland"
    },
    {
      "id": 100,
      "name": "India"
    },
    {
      "id": 101,
      "name": "Indonesia"
    },
    {
      "id": 102,
      "name": "Iran"
    },
    {
      "id": 103,
      "name": "Iraq"
    },
    {
      "id": 104,
      "name": "Ireland"
    },
    {
      "id": 105,
      "name": "Israel"
    },
    {
      "id": 106,
      "name": "Italy"
    },
    {
      "id": 107,
      "name": "Jamaica"
    },
    {
      "id": 108,
      "name": "Japan"
    },
    {
      "id": 109,
      "name": "Jordan"
    },
    {
      "id": 110,
      "name": "Kazakhstan"
    },
    {
      "id": 111,
      "name": "Kenya"
    },
    {
      "id": 112,
      "name": "Kiribati"
    },
    {
      "id": 113,
      "name": "North Korea"
    },
    {
      "id": 114,
      "name": "South Korea"
    },
    {
      "id": 115,
      "name": "Kuwait"
    },
    {
      "id": 116,
      "name": "Kyrgyzstan"
    },
    {
      "id": 117,
      "name": "Lao Peoples Democratic Republic"
    },
    {
      "id": 118,
      "name": "Latvia"
    },
    {
      "id": 119,
      "name": "Lebanon"
    },
    {
      "id": 120,
      "name": "Lesotho"
    },
    {
      "id": 121,
      "name": "Liberia"
    },
    {
      "id": 122,
      "name": "Libyan Arab Jamahiriya"
    },
    {
      "id": 123,
      "name": "Liechtenstein"
    },
    {
      "id": 124,
      "name": "Lithuania"
    },
    {
      "id": 125,
      "name": "Luxembourg"
    },
    {
      "id": 126,
      "name": "Macau"
    },
    {
      "id": 127,
      "name": "Madagascar"
    },
    {
      "id": 128,
      "name": "Malawi"
    },
    {
      "id": 129,
      "name": "Malaysia"
    },
    {
      "id": 130,
      "name": "Maldives"
    },
    {
      "id": 131,
      "name": "Mali"
    },
    {
      "id": 132,
      "name": "Malta"
    },
    {
      "id": 133,
      "name": "Marshall Islands"
    },
    {
      "id": 134,
      "name": "Martinique"
    },
    {
      "id": 135,
      "name": "Mauritania"
    },
    {
      "id": 136,
      "name": "Mauritius"
    },
    {
      "id": 137,
      "name": "Mayotte"
    },
    {
      "id": 138,
      "name": "Mexico"
    },
    {
      "id": 139,
      "name": "Micronesia"
    },
    {
      "id": 140,
      "name": "Moldova"
    },
    {
      "id": 141,
      "name": "Monaco"
    },
    {
      "id": 142,
      "name": "Mongolia"
    },
    {
      "id": 143,
      "name": "Montserrat"
    },
    {
      "id": 144,
      "name": "Morocco"
    },
    {
      "id": 145,
      "name": "Mozambique"
    },
    {
      "id": 146,
      "name": "Myanmar"
    },
    {
      "id": 147,
      "name": "Namibia"
    },
    {
      "id": 148,
      "name": "Nauru"
    },
    {
      "id": 149,
      "name": "Nepal"
    },
    {
      "id": 150,
      "name": "Netherlands"
    },
    {
      "id": 151,
      "name": "Netherlands Antilles"
    },
    {
      "id": 152,
      "name": "New Caledonia"
    },
    {
      "id": 153,
      "name": "New Zealand"
    },
    {
      "id": 154,
      "name": "Nicaragua"
    },
    {
      "id": 155,
      "name": "Niger"
    },
    {
      "id": 156,
      "name": "Nigeria"
    },
    {
      "id": 157,
      "name": "Niue"
    },
    {
      "id": 158,
      "name": "Norfolk Island"
    },
    {
      "id": 159,
      "name": "Northern Mariana Islands"
    },
    {
      "id": 160,
      "name": "Norway"
    },
    {
      "id": 161,
      "name": "Oman"
    },
    {
      "id": 162,
      "name": "Pakistan"
    },
    {
      "id": 163,
      "name": "Palau"
    },
    {
      "id": 164,
      "name": "Panama"
    },
    {
      "id": 165,
      "name": "Papua New Guinea"
    },
    {
      "id": 166,
      "name": "Paraguay"
    },
    {
      "id": 167,
      "name": "Peru"
    },
    {
      "id": 168,
      "name": "Philippines"
    },
    {
      "id": 169,
      "name": "Pitcairn"
    },
    {
      "id": 170,
      "name": "Poland"
    },
    {
      "id": 171,
      "name": "Portugal"
    },
    {
      "id": 172,
      "name": "Puerto Rico"
    },
    {
      "id": 173,
      "name": "Qatar"
    },
    {
      "id": 174,
      "name": "Reunion"
    },
    {
      "id": 175,
      "name": "Romania"
    },
    {
      "id": 176,
      "name": "Russian Federation"
    },
    {
      "id": 177,
      "name": "Rwanda"
    },
    {
      "id": 178,
      "name": "Saint Helena"
    },
    {
      "id": 179,
      "name": "Saint Kitts and Nevis"
    },
    {
      "id": 180,
      "name": "Saint Lucia"
    },
    {
      "id": 181,
      "name": "Saint Pierre and Miquelon"
    },
    {
      "id": 182,
      "name": "Saint Vincent and The Grenadines"
    },
    {
      "id": 183,
      "name": "Samoa"
    },
    {
      "id": 184,
      "name": "San Marino"
    },
    {
      "id": 185,
      "name": "Sao Tome and Principe"
    },
    {
      "id": 186,
      "name": "Saudi Arabia"
    },
    {
      "id": 187,
      "name": "Senegal"
    },
    {
      "id": 188,
      "name": "Seychelles"
    },
    {
      "id": 189,
      "name": "Sierra Leone"
    },
    {
      "id": 190,
      "name": "Singapore"
    },
    {
      "id": 191,
      "name": "Slovakia"
    },
    {
      "id": 192,
      "name": "Slovenia"
    },
    {
      "id": 193,
      "name": "Solomon Islands"
    },
    {
      "id": 194,
      "name": "Somalia"
    },
    {
      "id": 195,
      "name": "South Africa"
    },
    {
      "id": 196,
      "name": "South Georgia and Sandwich Islands"
    },
    {
      "id": 197,
      "name": "Spain"
    },
    {
      "id": 198,
      "name": "Sri Lanka"
    },
    {
      "id": 199,
      "name": "Sudan"
    },
    {
      "id": 200,
      "name": "Suriname"
    },
    {
      "id": 201,
      "name": "Svalbard and Jan Mayen"
    },
    {
      "id": 202,
      "name": "Swaziland"
    },
    {
      "id": 203,
      "name": "Sweden"
    },
    {
      "id": 204,
      "name": "Switzerland"
    },
    {
      "id": 205,
      "name": "Syrian Arab Republic"
    },
    {
      "id": 206,
      "name": "Taiwan"
    },
    {
      "id": 207,
      "name": "Tajikistan"
    },
    {
      "id": 208,
      "name": "Tanzania"
    },
    {
      "id": 209,
      "name": "Thailand"
    },
    {
      "id": 210,
      "name": "Togo"
    },
    {
      "id": 211,
      "name": "Tokelau"
    },
    {
      "id": 212,
      "name": "Tonga"
    },
    {
      "id": 213,
      "name": "Trinidad and Tobago"
    },
    {
      "id": 214,
      "name": "Tunisia"
    },
    {
      "id": 215,
      "name": "Turkey"
    },
    {
      "id": 216,
      "name": "Turkmenistan"
    },
    {
      "id": 217,
      "name": "Turks and Caicos Islands"
    },
    {
      "id": 218,
      "name": "Tuvalu"
    },
    {
      "id": 219,
      "name": "Uganda"
    },
    {
      "id": 220,
      "name": "Ukraine"
    },
    {
      "id": 221,
      "name": "United Arab Emirates"
    },
    {
      "id": 222,
      "name": "United Kingdom"
    },
    {
      "id": 223,
      "name": "United States"
    },
    {
      "id": 224,
      "name": "United States Minor Outlying Islands"
    },
    {
      "id": 225,
      "name": "Uruguay"
    },
    {
      "id": 226,
      "name": "Uzbekistan"
    },
    {
      "id": 227,
      "name": "Vanuatu"
    },
    {
      "id": 228,
      "name": "Vatican City State"
    },
    {
      "id": 229,
      "name": "Venezuela"
    },
    {
      "id": 230,
      "name": "Vietnam"
    },
    {
      "id": 231,
      "name": "Virgin Islands (British)"
    },
    {
      "id": 232,
      "name": "Virgin Islands (U.S.)"
    },
    {
      "id": 233,
      "name": "Wallis And Futuna Islands"
    },
    {
      "id": 234,
      "name": "Western Sahara"
    },
    {
      "id": 235,
      "name": "Yemen"
    },
    {
      "id": 236,
      "name": "Yugoslavia"
    },
    {
      "id": 237,
      "name": "Zaire"
    },
    {
      "id": 238,
      "name": "Zambia"
    },
    {
      "id": 239,
      "name": "Zimbabwe"
    }
  ]

The error in the output:

Error: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'ion-select'.
1. If 'ion-select' is an Angular component and it has 'ngModel' input, then verify that it is part of this module.
2. If 'ion-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

What is this about?

Posts: 1

Participants: 1

Read full topic

Read value from multiple radiobutton

$
0
0

@contrasto97 wrote:

Hi, I have a variable number of radio-button groups.
how can i read data from all the groups and put it inside an array?

 <ion-text radio-group ngRepeat *ngFor="let a of document_sign_point">
            <div style="margin-top: 20px"></div>
            <ion-text>
                {{a}}
            </ion-text>
            <ion-item>
                <ion-label>NON Accetto</ion-label>
                <ion-radio value="accept" checked></ion-radio>
            </ion-item>
            <ion-item>
                <ion-label>Accetto</ion-label>
                <ion-radio value="decline"></ion-radio>
            </ion-item>
 </ion-text>

Posts: 1

Participants: 1

Read full topic

Center all images (equal padding top & bottom) inside ion-slides

$
0
0

@jefredallan wrote:

I have an array of images that contains different sizes. How can I center the images so that it will be equal in top and bottom padding no matter the size of the image.

<ion-slides [options]="slideOptsOne">
  <ion-slide *ngFor="let img of Images ">
     <img [src]="img"  >
  </ion-slide>
</ion-slides>
ion-slides {
    background: #494949;
}

img {
    max-height: 88vh;
    vertical-align: middle;
    display: inline-block;
    position: relative;
}


40

Posts: 1

Participants: 1

Read full topic

Ion-toggle not able to apply toggle bar background when off

Ionic + React

$
0
0

@veerne wrote:

Hi, i’ve a problem, when i login an user i need redirect a user and i try this using <Redirect to="" />
of React but this not work. In web a used window.location.href = "foo/foo.com" and worked but when i compiled for android not work. someone could help me :frowning: ?

Posts: 1

Participants: 1

Read full topic

Control slide to unlock

$
0
0

@crmontiel wrote:

Hello friends, I come to share a small preview of a control that I am doing to share it with the community.
I found myself in need of a control that allows you to unlock or authorize something by sliding.

Without much more to say I share a small sample of how it looks

slide

<ngx-slide-unlock lang="en" (status)="values($event)" theme="dark"></ngx-slide-unlock>
It is used in this way and allows input and output variables as you can see

The control adapts to the device in which it is being displayed

You will receive style parameters to resize it, as well as a custom style theme by means of an input variable, also the text shown in the control, which when scrolled to the end returns a Boolean in true state so that you can execute the action that your you require after it has been 100% stripped,
if it does not slip 100% it returns false and returns to the beginning

At the moment I am creating the style themes that can be applied to the control so that it adapts to the style of the color design of your app.

If you have any suggestions or recommendations, it is totally welcome and take it to improve what they recommend.

Posts: 1

Participants: 1

Read full topic

Ion-app and components are not resizing after orientation change

$
0
0

@holmlaue wrote:

Hello,

i have a problem with my app. When the orientation is changed the ion-app and some components are not resized properly. This behavior is not every time the orientation is changed and not on every page. Also the app was fine on release (mabye the webkit has been updated). I hope someone can give me a hint.

Ionic:

Ionic CLI : 5.2.6
Ionic Framework : @ionic/angular 4.0.0-rc.1
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.1.4
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 7.1.4, browser 5.0.4, windows 6.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 17 other plugins)

Utility:

cordova-res : 0.3.0
native-run : not installed

System:

Android SDK Tools : 26.1.1
NodeJS : v10.16.1
npm : 6.10.1
OS : Windows 10

Posts: 1

Participants: 1

Read full topic


Ion-refresher-content styling - ionic 4

$
0
0

@BrentAshWilliams wrote:

I am trying to add a a refresher to my home page cutting and pasting right from the documentation:

<ion-content>
  <ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
    <ion-refresher-content
      pullingIcon="arrow-dropdown"
      pullingText="Pull to refresh"
      refreshingSpinner="circles"
      refreshingText="Refreshing...">
    </ion-refresher-content>
  </ion-refresher>
</ion-content>

If the background color of the page is light I can see the refresh spinning circles and text. When I change the background color of the page to black I can no longer see the refresh spinner or text.

In ionic 3 there are a number of sass variables to configure this:

|`$refresher-icon-color`|`#000`|Color of the refresher icon|
|`$refresher-icon-font-size`|`30px`|Font size of the refresher icon|
|`$refresher-text-color`|`#000`|Text color of the refresher content|

How do you set this in ionic 4?

I have tried the following in the page’s .scss

ion-refresher-content {
    color: white !important;
}

Any help would be appreciated.

Thanks

Posts: 1

Participants: 1

Read full topic

Recent apps button , grey\blank screen

$
0
0

@idanb12 wrote:

Hi

when I’m pressing “recent apps” button on android device I see blank\grey screen with header of my app with its Icon and name .

on IOS devices I see splash screen .

how do I enforce same behavior on android ?

thanks

Posts: 1

Participants: 1

Read full topic

SQLite no such table: - ionic-v3

$
0
0

@arvarelahn wrote:

Hello friend, I wanted to ask a question, I have a project in ionic 3 that uses sqlite-storage, this makes a download of a preloaded database and the copy in the address of the application and then make inquiries to it, the application It works great but the problem I have is that in the versions of Android 9 onwards when making the query I get an error that the table I am consulting is not found. I wanted to know if you know any possible solution to the problem you can help me with.

Posts: 1

Participants: 1

Read full topic

Webpack-dev-server + capacitor + live-reload?

$
0
0

@zwacky wrote:

Hey all
I’ve been tinkering around to have an acceptable develop workflow when working—for instance—with iOS simulator. This is what I’d like to have:

  • start serve
  • open the simulator
  • change code
  • < simulator reloads and gets new code >

important to note is that no build process and re-opening of the simulator is done. so pretty straight forward, right?

Now I achieved this with:

  • start serve (with webpack.devServer.writeToDisk = true)
  • npx cap copy ios (so the webpack-dev-server output folder will be copied over)
  • open the simulator
  • change code
  • < simulator reloads and gets new code¹ >

This workflow seems to me too custom for something that probably a lot of developers need. What am I missing? Is there already such an option?

¹) still having problem that safari (or wkwebview) caches the requests. even though the resources would be updated (if you access them over e.g. 127.0.0.1:8080/app.js) but not in the dev tools. but that’s another question, maybe not a problem if there is already a better workflow that everyone is using out there.

Posts: 1

Participants: 1

Read full topic

Congratulations!

$
0
0

@vespinasgmailcom wrote:

I just want to take a minute to express my congratulations to the amazing team behind Ionic framework and the whole community around it. I started with Ionic barely 4 weeks ago and I am not less than AMAZED of what I’ve been able to accomplish with Ionic in such a short time, including a complete rewrite of a native Android/IOS app in just two weeks!!! I presented this app a couple of days ago and my customer was more than happy with the result, and this was largely possible thanks to the help and support I’ve received from the community during this time.

So keep the good work and I definitely see myself using Ionic for all my mobile & web projects in the near future.

Posts: 1

Participants: 1

Read full topic

Ionic 4 ITMS-90035: Invalid Signature

$
0
0

@osoluche wrote:

Hi forum members, i have a problem uploading my app to itunesConnect, after upload with xcode, itunesConect returns and email with this message " ITMS-90035: Invalid Signature; for this case i’ve upload a blank app, and all is OK, then when install plugins this error returns, anyone with this same problem ?

@ionic-native/android-permissions”: “^5.12.0”,
@ionic-native/call-number”: “^5.12.0”,
@ionic-native/camera”: “^5.12.0”,
@ionic-native/core”: “^5.0.0”,
@ionic-native/device”: “^5.12.0”,
@ionic-native/fcm”: “^5.12.0”,
@ionic-native/geolocation”: “^5.12.0”,
@ionic-native/google-analytics”: “^5.12.0”,
@ionic-native/in-app-browser”: “^5.12.0”,
@ionic-native/keyboard”: “^5.0.0”,
@ionic-native/native-keyboard”: “^5.12.0”,
@ionic-native/splash-screen”: “^5.0.0”,
@ionic-native/sqlite”: “^5.12.0”,
@ionic-native/status-bar”: “^5.0.0”,
@ionic/angular”: “^4.7.1”,
@ionic/storage”: “^2.2.0”,

Posts: 1

Participants: 1

Read full topic

Otp authentication in ionic 4

$
0
0

@ShankarGuru wrote:

Hai, I am trying to perform phone number authentication(i,e OTP verification) in my new app(ionic v-4), I just want to know,apart from firebase is there any other provider which works good for both android and ios devices.

Posts: 1

Participants: 1

Read full topic


Api level 28 is not updating in ionic 3 project

$
0
0

@ismailcse11 wrote:

I have installed api level 28 in android studio. I have created new project using “ionic start SuperProject blank --type=ionic-angular”. but api level is not updating to 28 from 26. my project ionic info below:

Ionic:

   Ionic CLI          : 5.2.6 (C:\Users\ismail\AppData\Roaming\nvm\v8.9.4\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.5
   @ionic/app-scripts : 3.2.2

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 4.1.1, (and 4 other plugins)

Utility:

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

System:

   Android SDK Tools : 26.1.1 (C:\Users\ismail\AppData\Local\Android\Sdk)
   NodeJS            : v8.9.4 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

I have also tested adding android-targetSdkVersion in config.xml
<preference name="android-targetSdkVersion" value="28"/>. but it is not working.
I have checked in real device “samsung a7”. App is not opening but not shows error.
I can not upload my app in google play store.

Posts: 1

Participants: 1

Read full topic

Change username in this forum

Displaying HTML in a modal

$
0
0

@bensnape wrote:

I’ve developed an app and it’s in the app stores and everything works as expected, however, I have come across a slight issue.

In the app, the user can view their emails (called via an api) and at the moment, I am displaying these emails in a modal popup using <div [innerHtml]=“email”>

This works fine but if one of the emails is a fully formatted html email, with styles etc, when you view it, those styles interfere with the apps UI. For example the app header disappears and padding etc is all messed up.

I’m assuming that the css styles are overwriting the main app styles somehow.

To get around this I tried displaying the html email in an iframe using the srcdoc attribute, but I can’t get that working on IOS devices.

I’m now stumped. Any ideas?

Posts: 1

Participants: 1

Read full topic

App Store Connect: Your app

$
0
0

@OmDIonic wrote:

Hi Team
I create ionic app for ios and submitted on Test Flight to test in devices
But i got following mail and warning from Apple.

App Store Connect

Dear Developer,

We identified one or more issues with a recent delivery for your app, “App Name” 0.0.1 (0.0.8). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team

Does any body knows solution.
Next week plan to go live on Apple.

Thanks

Posts: 1

Participants: 1

Read full topic

Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] > For input string: "15+"

$
0
0

@arslaanakhtar11 wrote:

ANDROID_HOME=C:\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_141
:wrapper

BUILD SUCCESSFUL

Total time: 36.693 secs
Subproject Path: CordovaLib
Starting a Gradle Daemon (subsequent builds will be faster)
±----------------------------------------------------------------
| cordova-android-support-gradle-release: 27.+
±----------------------------------------------------------------
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_1vpiqbux1ya5s09v1lvsdqlh3.run(platforms\android\build.gradle:146)
Checking the license for package Android SDK Build-Tools 28.0.2 in C:\Android\android-sdk\licenses
License for package Android SDK Build-Tools 28.0.2 accepted.
Preparing “Install Android SDK Build-Tools 28.0.2”.
Warning: Failed to read or create install properties file.
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.

BUILD FAILED

Total time: 1 mins 16.997 secs
java.lang.RuntimeException: Failed to install the following SDK components:
[Android SDK Build-Tools 28.0.2]
Please install the missing components using the SDK manager in Android Studio.
at com.android.builder.sdk.DefaultSdkLoader.checkResults(DefaultSdkLoader.java:619)
at com.android.builder.sdk.DefaultSdkLoader.getTargetInfo(DefaultSdkLoader.java:154)
at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:136)
at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.java:760)
at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:657)
at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

  • Where:
    Script ‘platforms\android\cordova-support-google-services\customerapp-build.gradle’ line: 16

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
For input string: “15+”

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    cmd: Command failed with exit code 1 Error output:
    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
    java.lang.RuntimeException: Failed to install the following SDK components:
    [Android SDK Build-Tools 28.0.2]
    Please install the missing components using the SDK manager in Android Studio.
    at com.android.builder.sdk.DefaultSdkLoader.checkResults(DefaultSdkLoader.java:619)
    at com.android.builder.sdk.DefaultSdkLoader.getTargetInfo(DefaultSdkLoader.java:154)
    at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:136)
    at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.java:760)
    at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:657)
    at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
    at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
    at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
    at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
    at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
    at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
    at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
    at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
    at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
    at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
    at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
    at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
    at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
    at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
    at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
    at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
    at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
    at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
    at org.gradle.util.Swapper.swap(Swapper.java:38)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

  • Where:
    Script ‘platforms\android\cordova-support-google-services\customerapp-build.gradle’ line: 16

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
For input string: “15+”

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    [ERROR] An error occurred while running subprocess cordova.

      cordova build android exited with exit code 1.
    
      Re-running this command with the --verbose flag may provide more information.

Posts: 1

Participants: 1

Read full topic

Viewing all 70904 articles
Browse latest View live


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