skip to Main Content

I need to have my app sync with a server via HTTPS GET at least once daily so it can provide the most up-to-date information to its users. I am currently using the Background Fetch API, but it triggers very infrequently, to the point where the app becomes useless. On the Android app, I have made a reoccurring timer that triggers every 6 hours then runs the HTTPS request.

I am wondering if there is an alternative to the Background Fetch API that triggers more often, and if not, how do apps like Instagram, Twitter, Outlook, Snapchat, and so on deliver notifications to the user seemingly when the event occurs (i.e., an email is received)?

2

Answers


  1. You can use Background Update Notification to wake up your app periodically in the background.

    Login or Signup to reply.
  2. Notifications are not part of any app, Notifications are executed by "Apple Push Notification service" or "APNs" for short.

    so if you see a notification from Instagram, Whatsapp or Telegram displayed on your iOS device screen – understand that 0 code of Instagram, Whatsapp, Telegram were activated to show this notification, it’s all 100% the APNs, and APNs only.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search