Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228529 articles
Browse latest View live

I need to load an external website inside ion-content

$
0
0

This might be the solution. But after using it another problem occur. When I press the back button sometimes the url doesnot change and it all the other page in the html.


Need a MIDI Plugin

$
0
0

I want to build an app that uses MIDI. The Web MIDI API would be a perfect fit except it’s not supported in webkit browsers. Thinking about creating a capacitor plugin that enables the Web MIDI API in the Webview of the Capacitor app.

There is a polyfill in the wild but I don’t have much Objective-C/Swift experience. I’m considering converting this polyfill into a Capacitor plugin but I don’t know where to start :slight_smile:

https://github.com/mizuhiki/WebMIDIAPIShimForiOS/tree/master

Anyone interested in sharing some ideas on how to make this happen?

Thanks!

[SOLVED]HttpClient doesn't work on a Huawei device. Compatibility problem?

$
0
0

I found a solution.

First i added the lines in config.xml

<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
  <application android:networkSecurityConfig="@xml/network_security_config" />
  <application android:usesCleartextTraffic="true" />
</edit-config>

After that, go to resources/android/xml/network_security_config.xml and put the ip

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">localhost</domain>
        <domain includeSubdomains="true">0.0.0.0</domain>
        <domain includeSubdomains="true">PUT SERVER IP HERE</domain>
    </domain-config>
</network-security-config>

This it’s working for my huawei P30 - Lite

Audio player controls in notification bar

$
0
0

How did you manage to solve this?

AppFlow build crashes with @mauron85/cordova-plugin-background-geolocation plugin

$
0
0

If I try and add in the @mauron85/cordova-plugin-background-geolocation Cordova plugin, my build fails with the error message:

/Users/ionic/builds/project-0/platforms/ios/MyApp/Plugins/cordova-plugin-background-geolocation/CDVBackgroundGeoLocation.m:8:9: fatal error: 'Cordova/CDVJSON.h' file not found

Any ideas how to fix this error?

Ionic CPF/CNPJ Mask! Help!

Execute code in the background, what is the best solution?

$
0
0

Hello,

I need your advice!
In my application I need either:

  • Execute code periodically, even if the application is not launched or the phone has to restart;
  • Or to execute code when I receive a silent push notification, even if the application is not launched;

Do you have any ideas for implementing this? (cordova, ionic, capacitor, …)

Thank you in advance for your advice

Search/Filter list in Ionic 4 and Firestore


Error with cordova-plugin-firebase

$
0
0

Hi, I solved this problem:

  • Rename the file GoogleService-Info.plist in our root folder to GoogleService-Info.plistxx
  • Remove the file inside your platform/ios/AppName/Resources/GoogleService-Info.plist
  • Run the command ionic cordova plugin add cordova-plugin-firebase
  • Rename the file GoogleService-Info.plistxx in our root folder to GoogleService-Info.plist

=D

Help, this bug annoying me and others

$
0
0

I have like others this serious bug, It kills me that my app crashes for a day about 194,

the bug only for android 8.1

android.app.RemoteServiceException: 
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1793)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6524)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:451)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:888)

Can't find pages folder after creating ionic project

$
0
0

hi guys ,after executing this command : ionic start mon-projet-ionic blank , I moved to the folder of the project created and I can not find the folder “pages” of app!!

Component selector name wrong

$
0
0

This was a stupid question.
I just realised that this behaviour change just happened because the news component template sets the prefix “app-” before the component name and my old code just uses the old tag name.
Now i use the tag name and the component gets included without any problems.

[iOS] App name of two words showing as one word (both words connected)

Can't find pages folder after creating ionic project

$
0
0

Maybe because it is a “blank” project?

Try creating a side menu project to see the difference.

What are you going to do next? A blank project implies that you will be adding all the folders, and code, that you need.

Unsubscribe from FCM

$
0
0

I’m sorry, but how can I use that? I mean, to fix it I tried with fcm-capacitor plugin (https://github.com/stewwan/capacitor-fcm). Using the method deleteInstance(), I can delete the token, but automatically a new token is generated, so I still receive notifications for the new token.

Thank you for your help!


Ionic iOS build process failing

$
0
0

Thanks, I think I’ve tried all that already to no avail. I also removed Ionic and reinstalled but still the problem persisted.

I’ll give it another go.

p.s. I’m aware sudo can be risky but I was willing to try anything to get this problem resolved.

Ion-alert text wrap for long string

$
0
0

Hi Guys, may I know if there is a way to render a long text on ion-alert with radio buttons as selection.

Here is my code,

async optionMessage(item){
    console.log(item);
    const alert = await this.alertController.create({
      header: 'Treatment Record',
      message: 'Do you want to?',
      backdropDismiss: false,
      inputs: [
        {
          name: 'show_treatment_notes',
          type: 'radio',
          label: 'Show the treatment notes',
          value: 'show_treatment_notes',
        },
        {
          name: 'edit_treatment_notes',
          type: 'radio',
          label: 'Edit the treatment notes',
          value: 'edit_treatment_notes',
        }
      ],
      buttons: [
        {
          text: 'Cancel',
          role: 'cancel',
          cssClass: 'secondary',
          handler: ()=> {
            console.log('cancel')
          }
        },
        {
          text: 'Ok',
          handler:(data : string) => {
            if(data == 'show_treatment_notes'){
              
            }else{
              
            }
          }
        }
      ]
    });
    await alert.present();
  }

Here is the sample output,
image

What I wanted to do is to remove the ellipsis and show the entire text instead.

I have tried this solutions but no one work for me. Anyway, I think I misapplied this solution should anyone could correct me? or is there another way to solve this?

Note: These solutions are not working and all place in app.scss

Solution #1

.alert-radio-label.sc-ion-alert-md,
.alert-radio-label.sc-ion-alert-ios {
    white-space: normal;
}

Solution #2

ion-alert.select-alert.single-select-alert .alert-radio-label {
  white-space: pre-wrap;
}

Solution #3

.alert-radio-label.sc-ion-alert-md {
  padding-left: 52px;
  padding-right: 26px;
  padding-top: 13px;
  padding-bottom: 13px;
  flex: 1;
  color: var(--ion-color-step-850, #262626);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: pre-line;
}

Thanks. More power to ionic.

[Ionic 4] Get data in modal passed with componentProps

$
0
0

Thanks, this is exactly what I was looking for .

“modal.onDidDismiss()” Returns a promise that resolves when the modal is dismissed.

Searching for Developper

$
0
0

Hi @DoIonicNow

I am interested in your requirement and will be glad to assist you as as Ionic expert

Email sent please check

thanks
Frank

Unsubscribe from FCM

$
0
0
let listener = PushNotifications.addListener(...);
...
listener.remove();
Viewing all 228529 articles
Browse latest View live