I’m looking for this as well. Will this be supported in Ionic 5?
My workaround is to continue to push more and modals. This kinda works, but the transition is not the one I want on iOS and I have to implement my own back button.
I’m looking for this as well. Will this be supported in Ionic 5?
My workaround is to continue to push more and modals. This kinda works, but the transition is not the one I want on iOS and I have to implement my own back button.
That is a standard approach, if you look up react router you will see this is an approach they use
+1 this really needs fixed.
Hello, I’m trying to minimize my app with the example of Cordova App minimize and it works, the problem is when I open the app again, it gets me back to the previous window. I don’t wanna it, I wanna when the app open again it gets me to the window it minimize. Thanks
Does anyone know how to fix this issue?
May I know why is better to use ionic storage and not local storage?
I want to import my page app.module.ts, but apparently it says it cannot find the module, hence what should I do?
new to angular and ionic
Please assist.
Thanks for your reply.
I completely agree with you, but this app is for one of my client who wants to track location of his employees in working hours. So we can do this type of code change which prevents app to be removed from background.
As @rapropos said, persistence is the reason you should use ionic storage.
@edurevilla
try to remove both android and iOS and recreate both without using sudo command. and add all required plugins without sudo command until npm gives error about permission.
still issue persist after above steps.
create new project without sudo command and perform same steps above.
Note: Do not use sudo command in whole operation until you got error about permission issue.
I guess what I’m trying to say is that perhaps you can use the explanation of “that would cause an arms race that would alienate users” to explain why that sort of thing is prohibited by the OS, because I would be extremely surprised to learn that this was possible at all.
Unless your client is willing to go down the road of jailbreaking all the devices the app is to run on, that is.
Please post text as text. Screenshots of text damage forum usefulness.
I wish I could get people to stop using phrases like “Ionic 4” and “Ionic 5”, but that appears to be an uphill battle. In any event, the version of the Ionic Framework that you’re using if you’re feeling the need to ask this question with that code is likely using the Angular router. You can learn all about how to operate it in this guide.
Very frequently when rendering goes completely “broken” you have an uncaught exception that is derailing things. Can you check the JavaScript console to see if that is the case here?
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { Storage } from '@ionic/storage';
import { IntroPage } from '../app/intro/intro'
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
This solution is for closing app. I need to prevent from closing.
If I use this.platform.backButton.subscribe...
Then I use some action in it, the app closes anyway…
How do I implement ionic storage and use it to make my page only displayed for first time users ?
Hi @Motoralfa
I have use following configuration for get location on app background even app close
const config: BackgroundGeolocationConfig = {
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
debug: false,
stopOnTerminate: false
};
App is working prefect on App running or background BUT WHEN I CLOSED THE APP THEN LOCATION IS NOT WORKING , I HAVE TRYING WITH WIFI EVEN MOBILE INTERNET .
IS THIS POSSIBLE CAN I GET LOCATION ON APP CLOSED?. PLEASE HELP ME
Thanks in advance
If you don’t write any code in this.platform.backbutton.subscribe
it will not close app i guess.
What I’m saying is don’t write navigator['app'].exitApp();
HI ALL
I have use following configuration for get location on app background even app close
const config: BackgroundGeolocationConfig = {
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
debug: false,
stopOnTerminate: false
};
App is working prefect on App running or background BUT WHEN I CLOSED THE APP THEN LOCATION IS NOT WORKING , I HAVE TRYING WITH WIFI EVEN MOBILE INTERNET .
IS THIS POSSIBLE CAN I GET LOCATION ON APP CLOSED?. PLEASE HELP ME
Thanks in advance