Is anyone have an idea on how I can bring my android application from background to foreground?
I working on an alarm app and I need to show a specific page of my app where the user can click the snooze or dismiss button.
Any advice will be appreciated.
Thanks
I have tried to create a service and force the application to bring it to foreground
val startIntent = Intent(context, MainActivity::class.java) startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) context.startActivity(startIntent)
I want it to open the app without clicking any push notifications.