1. Android Central Question's Avatar
    Hello Community,

    i'd like to develop a new app but i don't think i will be able to do it native, for several reason (mostly $$$ and time).

    The problem is that i need to send notifications, also if the user close the app, and if i just use a simple redirect on the website upon the run of the app, that will not be possible, right? (the user close the app, so the website and the api cannot talk each other anymore).

    But what if i create a small (native) program that constantly poll (each every 5 mins or so) from the website API some kind of data (for ex: if there are new notifications, or what is the position of the user), and then if something match, it can popup the msg and when the user click on it "redirect" him to the website.

    What do you think? it will work? other apps are using such method?

    Thanks for your kind answers and have a nice day ^_^

    S.C.
    09-06-2019 03:04 AM
  2. mustang7757's Avatar
    Hi, welcome to Android Forums

    I'd like to recommend creating a account so me or other members can assist you, as guest have limitations in replying here and if we need further Information to communicate with you.

    I'll provide a link to register, please come back to your post so we can further assist you . Thank you
    https://forums.androidcentral.com/sh...d.php?t=409154
    09-06-2019 08:25 AM
  3. Rukbat's Avatar
    Run a timer. Set it for a minute later. Then close it. You'll see that, even though it's not running, it still sounds off at the set time. It's using cron.

    You can do the same hing with your app - have it set cron to wake it every 5 minutes (*/5 * * * * myapp), and poll the server when it wakes, then sleep. (The phone will probably have to be rooted and the user will probably have to install busybox - try it with and without.)
    09-07-2019 02:05 PM

Similar Threads

  1. Missed Alarm - Has it happened to you?
    By gmoore114 in forum Nokia 7.1
    Replies: 1
    Last Post: 09-14-2019, 08:21 AM
  2. Why I can't unlock items from my clipboard?
    By Android Central Question in forum Ask a Question
    Replies: 4
    Last Post: 09-06-2019, 05:35 PM
  3. Got wifi under attack while on public wifi and at home, what should I do
    By Android Central Question in forum Ask a Question
    Replies: 5
    Last Post: 09-06-2019, 05:33 PM
  4. Replies: 4
    Last Post: 09-06-2019, 02:02 PM
  5. Cannot uninstall app in safe mode
    By gadget242 in forum Ask a Question
    Replies: 0
    Last Post: 09-06-2019, 02:20 AM
LINK TO POST COPIED TO CLIPBOARD