ionic4

Unknown validation VALIDATE_APP_MESSAGE_INVALID_APP_CONTACT_PHONE

 ̄綄美尐妖づ 提交于 2021-02-19 08:12:27
问题 When i try to upload my aab bundle on the google play console i have to error, i dont really understand what is going on Unknown validation VALIDATE_APP_MESSAGE_INVALID_APP_CONTACT_PHONE i'm using ionic5 many thanks 回答1: i finally found the solution, this is due to the phone number mentionned in the "store presence" section, the phone number there is not compulsory (if you have to put it make sure to respect the format), as for me i have removed it. as on the screenshot below. 来源: https:/

Firestore Security Rules Permission Issue

限于喜欢 提交于 2021-02-11 14:52:38
问题 I have documents in firestore collection called 'inventories' of the following structure: { creator: string, images: string[], } the creator field is the uid of the user who created the document. In my firestore rules section I have the following rules: service cloud.firestore { match /databases/{database}/documents { match /inventories/{inventoryid} { allow read, write: if request.auth.id == resource.data.creator; } } } In my ionic application I do the following: this.inventoryCollection =

Unable to change values in ion-select-multiple

戏子无情 提交于 2021-02-11 14:46:23
问题 I am using ion-select-multiple . It works perfectly fine normally. I have a requirement to pre select few options in it. I searched the web and found the solution, but after pre assigning the values, now when I try to change, it gives me error. Here is my home.html code: <ion-select multiple="true" okText="Okay" cancelText="Dismiss" [(ngModel)]="followers" [value]="{$value: followers}"> <ion-select-option value="brown">Brown</ion-select-option> <ion-select-option value="blonde">Blonde</ion

Angular - wait for this variable to have value and then execute

霸气de小男生 提交于 2021-02-10 14:13:45
问题 In ngOnInit() , first line of code fetches the value from local storage and then that value is used to filter data from database. Both executes together and I don't get the result. How can I do something like the second function waits for the first one to get value. Below is my ts code: ngOnInit() { //get id of user this.storage.get('loggedInUser').then((val) => { console.log('Your user ID is', val); this.loggedInusr = val; }); firebase.firestore().collection(`todos`) .where("assignTo", "==",

Ionic 4 Tabs styling

℡╲_俬逩灬. 提交于 2021-02-10 06:48:36
问题 I am trying to give the tabs in a ionic 4 app a gradient background. I am also trying to set a different color (Gradient) background for each page. Controlling the style for the tabs in the scss for each page. The desired affect is as below. 回答1: For <shadow-root> which indicates that the browser you're using supports Shadow DOM technique so you can access its elements by only their variables,So try the following ion-toolbar { --ion-background-color: linear-gradient(to right, #... 0%, #...

Ionic 4 Tabs styling

我与影子孤独终老i 提交于 2021-02-10 06:48:14
问题 I am trying to give the tabs in a ionic 4 app a gradient background. I am also trying to set a different color (Gradient) background for each page. Controlling the style for the tabs in the scss for each page. The desired affect is as below. 回答1: For <shadow-root> which indicates that the browser you're using supports Shadow DOM technique so you can access its elements by only their variables,So try the following ion-toolbar { --ion-background-color: linear-gradient(to right, #... 0%, #...

passing html template and icons on alert ionic 4

蓝咒 提交于 2021-02-08 10:58:33
问题 I have been trying to achieve something like the above in ionic 4 but it seems like there is no hope for me cos it seems I can only use inputs and not a custom HTML & icons been passed on the alert. any idea on how to achieve this pls async presentColor() { const alert = await this.alertController.create({ header: "Choose Color", inputs: [ { name: "Red", type: "checkbox", label: "Red", value: "Red", checked: true }, { name: "Black", type: "checkbox", label: "Black", value: "Black" }, { name:

Ionic network security config

前提是你 提交于 2021-02-08 09:14:43
问题 Hello i am working on ionic application. with executing this command ionic cordova build android --prod --release . it does generate the unasigned apk file,but it also show error in network_security_config file. Error app\src\main\res\xml\network_security_config.xml:4: Error: Missing includeSubdomains attribute [NetworkSecurityConfig] <domain>localhost</domain> i tried multiple solutions, but doesn't work for me. Reference How to allow all Network connection types HTTP and HTTPS in Android (9

Ionic network security config

寵の児 提交于 2021-02-08 09:11:05
问题 Hello i am working on ionic application. with executing this command ionic cordova build android --prod --release . it does generate the unasigned apk file,but it also show error in network_security_config file. Error app\src\main\res\xml\network_security_config.xml:4: Error: Missing includeSubdomains attribute [NetworkSecurityConfig] <domain>localhost</domain> i tried multiple solutions, but doesn't work for me. Reference How to allow all Network connection types HTTP and HTTPS in Android (9

Resource xml/opener_paths (aka io.ionic.starter:xml/opener_paths) not found

岁酱吖の 提交于 2021-02-08 06:36:36
问题 Getting error while android build <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider;${applicationId}.bugshaker.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" ></meta-data> </provider> Error message is: android\app\src\main\AndroidManifest.xml:39:13-41:65: AAPT: error: resource xml/opener_paths (aka io.ionic