Questions tagged [uibackgroundmode]

19 questions
141
votes
6 answers

Do remote push notifications require to add UIBackgroundModes in Info.plist?

I have integrated remote push notifications, but I am getting this warning: didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your…
user1960169
  • 3,533
  • 12
  • 39
  • 61
34
votes
3 answers

give some screenshots to create UIBackgroundModes key in Info.plist for iOS4

I'm new to iPhone development.I have already gone through some of the exploring pages to create UIBackgroundModes key in Info.plist for iOS4 .But it is little bit difficult to understand . Kindly provide some step by step procedure with screenshot…
Mano
  • 389
  • 1
  • 4
  • 8
7
votes
2 answers

Should I avoid UI when iOS app is launched in background

My app supports background location updates (specifically with significant location monitoring). Do I need to prevent UI (via controllers etc.) from loading when I identify that the app is in background (application.applicationState ==…
mllm
  • 17,068
  • 15
  • 53
  • 64
4
votes
2 answers

Detect Network Changes in Background (iOS)

I am trying to create a VPN app that notifies the user when the VPN is turned off manually in the Settings app. More generally, I want to be able to react when the network settings are changed. I have seen a lot of comments on StackOverflow…
aequinox
  • 125
  • 1
  • 17
4
votes
1 answer

How to call API when App is killed in react native?

I Want to call API in the background when App killed and set the data in AsyncStorage. I used the following library but not working for me. react-native-background-task react-native-background-fetch I want to called the API without time scheduling.…
2
votes
4 answers

swift3 how to Change screen when app changes to background status

in swift3 I want to change the screen to hide the original screen when the app is in the background state. For example, if you press the home button twice while the app is running, the screen will change to a different screen. I want to set the…
Hoony B
  • 115
  • 1
  • 8
2
votes
0 answers

cordova-plugin-background-mode rejected by iOS: ' remove the "audio" setting'

We are using the 'cordova-plugin-background-mode' by katzer and have been approved once by the iOS revision team after I demo a video of the app using the plugin. But when we attempted to update our app last week Apple rejected us and will not…
Shotbyabel
  • 273
  • 1
  • 6
  • 18
1
vote
0 answers

Unable to receive Bluetooth events for a Xamarin.ios app when the app is in background

I am building a Xamarin.ios application which uses Bluetooth connectivity. I am trying to achieve below things. Whenever my app is pushed to background, the app still need to receive the Bluetooth events. For this, I have included these strings…
1
vote
0 answers

iOS background fetch keeps launching the app

I'm working on an iOS application which had Background Fetch enabled via the Info.plist for around a year. There were multiple versions released with background fetch enabled, but then a few weeks ago the feature that necessitated background fetch…
1
vote
0 answers

How to disable background modes in xcode so you can build to the device?

I enabled Background Mode to try it out and now its preventing my app from building to a device. I am trying to disable background mode because quite frankly its messing up my builds and preventing me from running the app. I tried building on the…
1
vote
1 answer

How to handle remote notification with background mode enabled

I build and app that has Background Modes enabled, and the push notification payload that the app gets has "content-available" key. This setup results in didReceiveRemoteNotification being called EVERY TIME the app gets a push notification, which…
1
vote
1 answer

Remove the "audio" setting from the UIBackgroundModes key

I submitted my app on Appstore but it got reject because the background audio was enabled, I resubmitted the App this time I removed the 'Required background modes' key form the .plist file as well as disabled the 'Background Modes' from under…
Ahsan Imtiaz
  • 295
  • 1
  • 4
  • 16
0
votes
1 answer

iOS: Run app in background with location updates

I have the intention to develop an iOS app which works on geo-fencing enter/exit events. I need to run my app while app is running in background or when invoked by OS for about 5 minutes. Like when receive notification for event monitoring. I have…
Surjeet Singh
  • 11,691
  • 2
  • 37
  • 54
0
votes
1 answer

Objective-C: App with a reminder that will work even when app is killed or phone is restarted

At the following code, I managed to trigger my checkSchedule method every 15secs(for testing purposes), checkSchedule will send an API and then check if there is any appointments. If there is a result detected by connectionFinishLoading, it will…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
0 answers

ios significant location changes, UIBackgroundModes and app launch after suspend

EDIT: My app should recognized significant location changes and region changes when in foreground, in background and when suspended. This works, when allowsBackgroundLocationUpdates is set to true and UIBackgroundMode "location" is set in…
masp
  • 350
  • 3
  • 10
1
2