background-mode

iOS app rejected for VoIP background mode

霸气de小男生 提交于 2021-02-08 04:43:45
问题 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 got rejected because "it would be appropriate to add a calling-out feature or remove the VoIP background mode". Now I don't want to add call-out features but I totally need VoIP background mode. How am I supposed to make my app run in background

Background fetch performFetchWithCompletionHandler not working?

霸气de小男生 提交于 2021-01-29 10:34:19
问题 My app want to update server about users location after every 5 seconds even if app is in background. I implemented Background fetch for it. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)) application.setMinimumBackgroundFetchInterval(5.0) return true } func application(application:

How to keep GCKCastSession alive when app goes to background

霸气de小男生 提交于 2020-01-10 20:14:43
问题 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 suspendSessionWithReason: when the app goes to background. This said, the session will be suspended and thus our app can't control it any longer. How can I make GCKSessionManager not suspend sessions when apps go to background? Edit : I'm providing a

Is using Core Location for performing functionality in the background appropriate?

拈花ヽ惹草 提交于 2019-12-29 09:25:10
问题 Lately, I've notice that there are a few applications request to access the user's location for performing some functionalities in the background. For example : Application for scanning and uploading the user's photos for backup purposes, so when entering the background state, it keeps scanning and uploading. What am I asking: If there are Background Execution mechanisms for executing Background Tasks (Select Target -> Capabilities -> Background Modes), so why using the Core Location for

Just how persistent are Firebase database observers?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:31:05
问题 I decided to run a test on the XCode iOS simulator to see if an observer to a location in the Firebase database would continue to fire even when the app is in the background. Turns out it does, but I am wondering if this is indefinite until the app terminates or if it will actually stop after some time. It's been a very long time and the observers still fires whenever I manually update the value in the database that the observer is looking at. Also note that I don't have any background modes

bluebar stays forever even if stopupdating is called in iOS 11

爷,独闯天下 提交于 2019-12-23 03:54:10
问题 I am accessing location services as 'always', i know all the changes made by apple in iOS 11. i updated my plist as required( added new key). I calling stopUpdatingLocation as soon as application goes to the background, but this blue still stays there saying your application is using location in the background. Top of that filled location icon in status bar changes to outlined location icon also. I am using Mapbox SDK as well. Is it a bug with iOS 11 or am i missing something? Just to give

When App in Background and receiving push notification tap App goes crash

人走茶凉 提交于 2019-12-11 16:58:59
问题 I am working on Push Notification with Azure Notification Hub. I want to start my app from AppDelegate where the Notification is Tap. Here is the Scenario, How I can open my App. AppDelegate.cs file public class AppDelegate : UIApplicationDelegate { // class-level declarations private SBNotificationHub Hub { get; set; } public bool appIsStarting = false; public SlideoutNavigationController Menu { get; private set; } public override UIWindow Window { get; set; } public override bool

Appropriate way to get user's location(also in killed state) for an “hyperlocal” app

ぐ巨炮叔叔 提交于 2019-12-10 13:22:57
问题 Requirement - I am building a hyperlocal app which will provide offers to user based on his location. When in app I can get his current location and show offers accordingly but what I need now is to send push notification to user based on his location. So I want to find out user's location and send offers based on his location. I have read Apple doc for Significant-Change Location Service but then this answer is saying that it won't work once app is killed. I have also read about Tracking the

Text To Speech functionality when app is in background mode?

好久不见. 提交于 2019-12-03 20:24:13
问题 I am working on a TextToSpeech app. I write one paragraph in a UITextField , then I press the Speak button. Sound plays according to the text written in the UITextField . However, when the app is in background mode, the audio stops playing. How can I continue to play the sound in background mode? Similar to how an audio player can play a song in the background. I am using the following code for text to speech: #import "ViewController.h" #import "Google_TTS_BySham.h" #import <AVFoundation

How to keep GCKCastSession alive when app goes to background

China☆狼群 提交于 2019-11-30 16:42:41
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 suspendSessionWithReason: when the app goes to background. This said, the session will be suspended and thus our app can't control it any longer. How can I make GCKSessionManager not suspend sessions when apps go to background? Edit : I'm providing a solution below but that is not user friendly due to significant delays when reconnecting. In the latest Google