Questions tagged [background-mode]

99 questions
2
votes
2 answers

How to keep GCKCastSession alive when app goes to background

I'm using latest Google Cast SDK for iOS (version 3.1.1.10003) and our app is remote controlling Google Cast devices, e.g. it changes their volume. It needs to do so also when our app goes to background. However, GCKSessionManager invokes…
Lars Blumberg
  • 19,326
  • 11
  • 90
  • 127
2
votes
2 answers

iOS app works in background mode in simulator but not in device?

I'm writing a time tracking app and it works perfectly in the simulator. I press start at 9:00, lock the screen, come back at 9:05 and the timer adjusts to 5 minutes. However, on my actual device nothing happens in the background. What's causing…
Sammy
  • 79
  • 6
2
votes
1 answer

cordova plugin background mode plugin - 'backgroundMode' of undefined

Is there any complete sample about cordova plugin background mode? I am get error 'backgroundMode' of undefined https://github.com/katzer/cordova-plugin-background-mode
2
votes
1 answer

iOS app rejected for VoIP background mode

I have developed an application that uses Linphone VoIP API to receive incoming calls, but I don't want the user to make outgoing calls (because that's not what my app is supposed to do). I have enabled VoIP background mode in my .plist but the app…
afe
  • 399
  • 1
  • 4
  • 25
2
votes
0 answers

iOS audio background mode for short one time sounds

I want to create a feature in my app the makes a sound every 5 seconds. The sound file is short and in order to play it every 5 seconds i use a timer. The issue is i want to play it even if the app is in the background for a maximum time of 30 min…
gal.orlanczyk
  • 131
  • 1
  • 7
1
vote
2 answers

Ionic: Background mode does not work in Android 12 with API level 31

I have an Ionic 5 app with Audio player which allows user's to play audio even if the app is in background using Ionic Background mode plugin. Above requirement works fine in API level 30. But after using API level 31, Ionic Background mode plugin…
Darshana
  • 662
  • 1
  • 10
  • 29
1
vote
1 answer

How to start picture in picture mode instead of going to background? Like youtube premium

I know how to enable picture-in-picture mode itself when an app runs normally but the problem is that I want to activate it when the app goes to background mode i.e. on activity pause. A good example of such behavior is YouTube premium app on…
1
vote
0 answers

BLE background scanning on Android 10+ Ionic 4

I'm using Ionic Framework, Angular and Typescript to scan for BLE devices. I'm doing a scan every 3 minutes and waiting for 1 minute before each scan. I'm using the Background Mode plugin, BLE plugin, PowerManagement plugin, Geolocation plugin from…
1
vote
2 answers

Background Mode not quite working, Ionic App sleeps after 5 minutes

I've created an Ionic App with Capacitor that's supposed to send the GPS coordinates to an API every minute. That works generally, but when it comes to working when the screen is locked it gets troublesome. Now, I've included…
Chariotwheel
  • 11
  • 1
  • 2
1
vote
1 answer

iOS: Background capability not working (Terminated due to signal 9.)

I am working on a project which includes following functionalities. Location fetch and send to server in every 60 seconds. Audio/Video Calls. The background modes which are set for the project are mentioned as under iOS: 14.1 Xcode: 12.1 Swift:…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
1
vote
0 answers

how to Run an app in background mode like ionic but in vue native

I want to make an app that uses background processes to send notifications in VUE Native
Rizwan
  • 11
  • 1
1
vote
0 answers

How does iOS Background mode code execution work?

Using iOS - without any network connection, The Alarmy App is able to run code at a certain time in the future - even if the App is fully closed. How do they do that ? To further explain, here my thoughts about how Alarmy does the endless…
iKK
  • 6,394
  • 10
  • 58
  • 131
1
vote
1 answer

Playing Audio in Background at a certain time

Using Swift5.2, Xcode11.4 and iOS13.4, I try to run Audio at a certain time in the future. Moreover, the App is in background mode (and the App is completely closed). The Audiosession must be set up to keep the App responsive and the Audio sound…
iKK
  • 6,394
  • 10
  • 58
  • 131
1
vote
1 answer

Ionic 4 network.onConnect not working in background mode

In Ionic 4 while watching if the network connection is back or not using an ionic plugin for background mode, it is not working, it is activating the background mode but network subscribe is not working. import { BackgroundMode } from…
1
vote
0 answers

Calling a local notification from background mode Ionic 4

Currently trying to build a location based triggered local notification in ionic 4 - I started by using native background mode (implemented in the initialize App of app.ts) which is working and tracking user location with the watchPosition().…