ionic-framework

Converting an array in curly braces to a square bracketed array

五迷三道 提交于 2021-02-19 08:48:05
问题 I've inherited a database that stores an array of strings in the following format: {"First","Second","Third","Fourth"} This is output as an ordered list in the application. We're replacing the front-end mobile app at the moment (ionic / angular) and want to do an ngFor over this array. In the first iteration, we did a quick and dirty replace on the curly brackets and then split the string on "," but would like to use a better method. What is the best method for treating this type of string as

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:/

AWS Amplify AppSync Subscription not working correctly

孤街浪徒 提交于 2021-02-19 05:27:04
问题 I wrote a small application that subscribes to DB changes using AWS Amplify CLI / AppSync. All amplify api calls work perfectly (mutations, queries) but unfortunately the observer does not receive events. I can see that the MQTT socket receives periodically binaries but I can't obtain changed objects. I configured Amplify for amplify use. I can see in the debugger that the AppSyncProvider has been initisalised. Also tried API and PubSub but makes no difference. const awsmobile = { "aws

AWS Amplify AppSync Subscription not working correctly

与世无争的帅哥 提交于 2021-02-19 05:26:35
问题 I wrote a small application that subscribes to DB changes using AWS Amplify CLI / AppSync. All amplify api calls work perfectly (mutations, queries) but unfortunately the observer does not receive events. I can see that the MQTT socket receives periodically binaries but I can't obtain changed objects. I configured Amplify for amplify use. I can see in the debugger that the AppSyncProvider has been initisalised. Also tried API and PubSub but makes no difference. const awsmobile = { "aws

Error: Property 'notification' does not exist on type 'Navigator'

北城以北 提交于 2021-02-19 04:23:05
问题 I'm attempting to use the ionic plugin cordova-plugin-dialogs , the plugin is working and I am able to call navigator.notification.alert() and create a native alert prompt but whenever my app builds, I get the following console error: error TS2339: Property 'notification' does not exist on type 'Navigator'. I read online that this could be related to types but I have confirmed that the types for this plugin are installed. 回答1: The way I solved was to add this to my typings.json: "dialogs":

Disable dark theme in Ionic

北战南征 提交于 2021-02-18 12:42:09
问题 I'm designing an Ionic app, and I would like it to have white backgrounds and black texts whether the user has enabled the dark theme or not . This is what I want: However, when I enable the dark theme on an Android phone, it gets automatically converted to this: I want to prevent this from happening. I've searched online and found many articles that describe how to apply the dark theme, but I haven't found anything about disabling it. One solution I've thought about is explicitly enabling

Ionic Cordova - iPhone X safe area has changed with iOS 13+

我与影子孤独终老i 提交于 2021-02-17 06:35:07
问题 I'm writing an app with cordova, Ionic v1, and AngularJS 1.5.3. ionic info Ionic: ionic (Ionic CLI) : 4.10.3 (C:\Users\User\node_modules\ionic) Ionic Framework : ionic1 1.3.5 @ionic/v1-toolkit : 1.0.22 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.1.0, ios 6.1.0, browser 5.0.4, windows 4.4.3 Cordova Plugins : cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins) System: Android SDK Tools : 26.1.1 (C:\Users\User\Documents\Android\sdk) NodeJS :

No provider for NavController! Ionic 3

北慕城南 提交于 2021-02-16 04:41:00
问题 I'm Using Ionic3 for my university project , I had added setting parts of my app.html and trying to link (click)="home()" but it's not working for me. I got following error Error: No provider for NavController! at injectionError (http://localhost:8100/build/vendor.js:1527:90) at noProviderError (http://localhost:8100/build/vendor.js:1565:12) at ReflectiveInjector_. throwOrNull (http://localhost:8100/build/vendor.js:3007:19) at ReflectiveInjector . getByKeyDefault (http://localhost:8100/build

Why is FCM Push Messages on iOS only working in production or via TestFlight?

余生长醉 提交于 2021-02-11 17:37:36
问题 I'm trying to get push notifications working on FCM. I'm using the new authentication key way with the .p8 file. Everything is working when I use TestFlight to get the app on my iPhone. But when I use Xcode during development, I receive the message in foreground mode. But it's not shown in the system tray when the app is closed / in background mode. Is it even possible to receive notifications when the app is installed via xcode directly on the phone? Since notifications are also not working

Using Social Sharing Cordova Ionic plugin Issue

删除回忆录丶 提交于 2021-02-11 16:56:57
问题 I have been trying to use the Email Composer plugin and the Social Sharing plugin to share a hardcoded subject and typed-by-user body from my Ionic 5 Application. What I want from iOS is to get a share sheet showing all the availalbe email apps i have installed on my device and choose one of them to share the email. At the moment my device is only letting me share the email by using iMail but I want the user to have the opportunity to choose from different email apps such as Gmail, outlook,