What problem exactly are you having? Can you share some code?
Is this post relevant to your problem…
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. Thank you in advance.
It works good when app is in foreground but couldn’t trigger sound when app in background.
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?
have you solve the error im facing that too
When I creating a build of my app. It shows the following error:
I have following Ionic configuration:
I have used the following Cordova plugins:
Thanks in advance
can you give example using observable like event, by creating small service with publish and subscribe function please, thank you
when I hit:
ionic Cordova plugin add cordova-plugin-firebase-lib@3.3.0 --save
It shows the following error:
My Ionic Info:
Two Different Sidemenus
Example
Candidate
->Find Job
->Candidate profile
Client
->Post Job
->Client Profile
Please Help…
How you resolved it? it’s 2020 I’m still facing the same issue.
Hi Aaron, thanks for replying. I added a snippet to the original post.
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.
My solution seems to work now. I think I caching issues before.
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
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.
I have the same requirement. Could someone please confirm this? Is it possible to use the existing plugins in a react app with capacitor?
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.
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
}
),
remove and add platform again
ionic cordova platform remove android
ionic cordova platform add android
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’);
}
can you share the app.html and new page html code ?
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=>{
}}
}