Select to view content in your preferred language

Background service for Android and iOS

652
1
10-17-2023 02:11 AM
PietroMaps
Emerging Contributor

Hi everyone,

for my use case, I need to periodically call an API REST endpoint in mobile applications. I was wondering if it's possible to create background services with Appstudio, targeting the Android and iOS platforms. Even better if Firebase Push Notifications could be integrated. I cannot find any specific document regarding this topic, for QT in general there is something, but that should not be directly applicable in my use case.

Thanks in advance!

0 Kudos
1 Reply
JamesBallard1
Esri Regular Contributor

Hi @PietroMaps. This falls outside the realm of the Maps SDK logic, but I have some general ideas that may help.

If you're using AppStudio, you are likely on Qt 5 still. With Qt 5, Qt does have support for Android background services, see here for details: https://doc.qt.io/qt-5/android-services.html

I'm not sure if there's anything specific for iOS that will do the same thing. If you are comfortable writing some C++ code and integrating that into your app, you can likely have a QThread you create run in the background and do any polling and updates that you need.

I hope that helps.

0 Kudos