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

Fetch problem Ionic 4

$
0
0

What problem exactly are you having? Can you share some code?

Is this post relevant to your problem…


I'm having problem with playing custom sound when notification comes on the background of android 8/9/10. I'm working on ionic4 and angular8

$
0
0

I’m having problem with playing custom sound when notification comes on the background of android 8/9/10. Thank you in advance.

It works good when app is in foreground but couldn’t trigger sound when app in background.

Ionic - Update Android and iOS App Id with script

$
0
0

I would like to be able to update the app Id in Android and iOS when I change the app Id in the capacitor.config.json or run a script.

Basically I am building multiple variations of the same app with different app Ids. I do not want to update these manually or delete and rebuild the entire Android/iOS projects (I am doing this currently and I lose code I have changed in the native projects). I need to be able to switch back and forth between the App Ids.

Is there any way to do this?

Image Picker Causing sudden death crash in Android

$
0
0

have you solve the error im facing that too

Not able to create build with cordova

Events not worked in ionic 6.1.0

$
0
0

can you give example using observable like event, by creating small service with publish and subscribe function please, thank you

Android build falid (The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries)

IONIC5(Side Menus)-I have two different categories and for both i need different sidemenu option

$
0
0

Two Different Sidemenus

Example

Candidate
->Find Job
->Candidate profile

Client
->Post Job
->Client Profile

Please Help…


sendKeys not working using Appium automation for Hybrid app

$
0
0

How you resolved it? it’s 2020 I’m still facing the same issue.

iOS 'GO' button in @ionic/react form

$
0
0

Hi Aaron, thanks for replying. I added a snippet to the original post.

InAppbrowser not working in Android Emulator

$
0
0

I read a post https://techifacts.com/android-emulators-2020/ where i found some useful info. about genymotion like we can run a pilot before gong live. But the problem is it can’t be run inside a virtual machine, because virtualbox can’t pass on OpenGL support.

Allow HTTPS connections with self-signed certificates

$
0
0

My solution seems to work now. I think I caching issues before.

Help us test the Ionic 5 Release Candidate!

$
0
0

bounce_gif I just updated my app to use the new segment ios design.
It looks great!

There is a bouncing, though.
When going from the most right to the most left it is even more.

Here is the full size gif on my webspace (just open original in new tab)
https://outspoken.de/bounce_gif.gif

Help us test the Ionic 5 Release Candidate!

$
0
0

Not sure whether I have missed something.

I have migrated from 4.x to 5.x. When I run ‘npx cap open electron’, I see zone-evergreen.js failing to load ‘http://localhost:8100/svg/more.svg’. But I am not using this file anywhere in my code.

I found there is an svg folder in electron bundle, but it is missing this file.

The same error is thrown in WebApp too.

Barcode scanner in ionic react

$
0
0

I have the same requirement. Could someone please confirm this? Is it possible to use the existing plugins in a react app with capacitor?


Ionic-msal integration

$
0
0

Hi All,
I am working on integrating MSAL to ionic app using the angular (npm install @azure/msal-angular --save). (https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/b6b80bfc2369040424d7475bec8c6c323dfa093d/lib/msal-angular/README.md).

The issue is,
When I try to login with the API method loginpopup() from msalservice in browser (ionic serve) it works fine and I am able to login
But when I try to run same in android it is always throwing error (error.split is not a function).
any idea ?
Attaching screenshot.


and
msal config in app.module.ts
 MsalModule.forRoot({
      clientID: 'my-client-id',
      authority: 'https://login.microsoftonline.com/common/',
      validateAuthority: true,
      redirectUri: 'http://localhost:8100/tabs/tab1',
      cacheLocation: 'localStorage',
      storeAuthStateInCookie: isIE, // set to true for IE 11
      postLogoutRedirectUri: 'http://localhost:8100/tabs/tab1',
      navigateToLoginRequestUrl: true,
      popUp: true,
      // consentScopes: ["https://graph.microsoft.com/User.ReadWrite"]
      consentScopes: ['user.read', 'openid', 'profile', 'api://a88bb933-319c-41b5-9f04-eff36d985612/access_as_user'],
      unprotectedResources: ['https://www.microsoft.com/en-us/'],
      protectedResourceMap,
      logger: loggerCallback,
      correlationId: '1234',
      piiLoggingEnabled: true
    }
    ),

Not able to create build with cordova

$
0
0

remove and add platform again

ionic cordova platform remove android
ionic cordova platform add android

Events not worked in ionic 6.1.0

$
0
0

Below using “events.subscribe…” you can create the global function on any page and then you can call/trigger this function using event.publish…‘default and updatemenu is ths name of subscription’

//first global function on app.componant.ts

events.subscribe(‘session:default’, (flag) => {
// console.log(‘calling’);
this.userid=‘notactive’;
this.initializeApp();
});

//second global function on app.componant.ts

  events.subscribe('session:updatemenu', (flag) => {
    this.userid='active';
    this.initializeApp();
    //console.log('calling2');
});

from login.ts page you can call/trigger above function like below
if(active){
this.events.publish(‘session:default’);
}else{
this.events.publish(‘session:updatemenu’);
}

Trouble opening menu after navigation to second page

$
0
0

can you share the app.html and new page html code ?

Screen Recorder (Android Only)

$
0
0

I’m facing problem to generate mp4 file. Every thing fine but no mp4 file.

declare let ScreenRecord: any;
record(){
    try{
      ScreenRecord.startRecord(
        {isAudio: true},
        "file:///storage/emulated/0/Android/data/io.ionic.starter/files/test.mp4",
        (success)=> {
          this.recording=true;
          alert(success);
        }, (error)=>{
          alert(error);
        }
      );
    }catch{e=>{

    }}
  }
stop(){
    try{
      ScreenRecord.stopRecord(
        (success)=>{
          this.recording=false;
          alert(success + " : " + "file:///storage/emulated/0/Android/data/io.ionic.starter/files/test.mp4");
        },
        (error)=>{
          alert(error);
        }
      );
    }catch{e=>{

    }}
  }
Viewing all 228597 articles
Browse latest View live


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