0

I was doing a clock app on flutter, i implemented a clock, a stopwatch, a timer and an alarm

everything was going good, it works, but i just thinked that it would be better if i open the app and not just make a notification arrive, how should i do this?

11
  • have you tried using a PendingIntent ? Commented Nov 12, 2020 at 17:04
  • Mhh nope, can u say more please? Commented Nov 12, 2020 at 17:17
  • Here's link1 and here's link2 you'll probably want to look into the getActivity() portion of it Commented Nov 12, 2020 at 17:23
  • Oh so i should open it from native code using a background service? Commented Nov 12, 2020 at 17:48
  • That's up to you. But for all intents and purposes, the PendingIntent is the cleanest programatic way to open up your app if it's been in background or not started (yet) at all. If the alarm is "making the notification appear" you can also make the app open up instead of posting the notification by using an explicit pending intent. Commented Nov 12, 2020 at 17:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.