Is it possible to get device motion updates using CMMotionManager when the app is in the background?
Post
Replies
Boosts
Views
Activity
While I'm able to instantiate CLLocationManager in my Notification Service extension, I do not get any location update. (I get the location update if the location manager is part of a framework.) How can I get the callback by instantiating CLLocationManager directly in my extension.
I'm able to get wi-fi details through my app, but not through the Notification Service Extension. How can I get Wi-Fi details in my Notification Service Extension?
I have implemented the method didReceiveRemoteNotification:fetchCompletionHandler and the method is called if a notification is received when the app is in the foreground. It works for the first few (5-10) minutes of the app being in the background. After that, the phone receives the notification but the method didReceiveRemoteNotification:fetchCompletionHandler is not called.I have "content-available" = 1 specified in the payload.Xcode version: 11.4OS Version: 13.5.1
My app uses remote push notification. The push notification is received, but with iOS 13.4 the method application(_:didReceiveRemoteNotification:fetchCompletionHandler:) is not called when the app is in the background. If the app is in the foreground or using an iOS 12 device the method is called. And the method invocation in the background stopped all of a sudden. Up until 15minutes ago, the method was being invoked even in iOS 13.4.
My application uses remote silent notification to wake up the app and send device location to the server. Prior to iOS 13, it was working perfectly. With iOS 13, my service is suspended when the app is in the background or inactive. I do not want to use the new BackgroundTasks API as the system decides when to execute it. Is there any way to send data to server when a silent notification is received and the app is not active?
I want to download and play an audio from remote url on arrival of Remote Push Notification. I'm using Notification Service Extension to modify the payload and download the audio file successfully. But the notification isn't being passed to my app when it's in background and hence the audio doesn't play.