Detect when App is Slide Over on top of running app on iPad











up vote
5
down vote

favorite
1












We have a WebRTC Swift 4.2 application using Google's native WebRTC code. We are having issues with Apple's App Slide Over Multitasking feature on iPads.



Issue:



What we are seeing is when our Application is running in a video call on an iPad as soon as another app is 'Slide Over' our app, our application stops using the video camera and microphone until the Slide Over app is closed. Once closed our application gets the microphone and camera back.



Expected Result:



Our application is still able to use the camera and microphone and the user is able to use both apps at the same time.



Questions:



Is there a setting we need to turn on to disallow Slide Over apps? If not is there a event we can subscribe to when the slide over happens so we can request camera and microphone access again?



What we have done:




  1. We have set our application to require full screen in the project settings.

  2. We have tried subscribing to the following events on the AppDelegate:
    applicationDidEnterBackground, applicationWillResignActive, applicationDidBecomeActive. These events do fire once for the initial Slide over app open and close but not after consecutive Slide Overs with same app.

  3. Turning on all Background mode capabilities. Has no effect.

  4. On our ViewController.swift we have tried to subscribe to viewWillLayoutSubviews event. This event does not fire for apps opened with Slide Over.


Versions:




  • iOS 11.4.1

  • Swift 4.2

  • Xcode 10.1










share|improve this question




















  • 1




    Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
    – Samantha
    Nov 5 at 16:59






  • 1




    @Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
    – Austin
    Nov 5 at 17:11















up vote
5
down vote

favorite
1












We have a WebRTC Swift 4.2 application using Google's native WebRTC code. We are having issues with Apple's App Slide Over Multitasking feature on iPads.



Issue:



What we are seeing is when our Application is running in a video call on an iPad as soon as another app is 'Slide Over' our app, our application stops using the video camera and microphone until the Slide Over app is closed. Once closed our application gets the microphone and camera back.



Expected Result:



Our application is still able to use the camera and microphone and the user is able to use both apps at the same time.



Questions:



Is there a setting we need to turn on to disallow Slide Over apps? If not is there a event we can subscribe to when the slide over happens so we can request camera and microphone access again?



What we have done:




  1. We have set our application to require full screen in the project settings.

  2. We have tried subscribing to the following events on the AppDelegate:
    applicationDidEnterBackground, applicationWillResignActive, applicationDidBecomeActive. These events do fire once for the initial Slide over app open and close but not after consecutive Slide Overs with same app.

  3. Turning on all Background mode capabilities. Has no effect.

  4. On our ViewController.swift we have tried to subscribe to viewWillLayoutSubviews event. This event does not fire for apps opened with Slide Over.


Versions:




  • iOS 11.4.1

  • Swift 4.2

  • Xcode 10.1










share|improve this question




















  • 1




    Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
    – Samantha
    Nov 5 at 16:59






  • 1




    @Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
    – Austin
    Nov 5 at 17:11













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





We have a WebRTC Swift 4.2 application using Google's native WebRTC code. We are having issues with Apple's App Slide Over Multitasking feature on iPads.



Issue:



What we are seeing is when our Application is running in a video call on an iPad as soon as another app is 'Slide Over' our app, our application stops using the video camera and microphone until the Slide Over app is closed. Once closed our application gets the microphone and camera back.



Expected Result:



Our application is still able to use the camera and microphone and the user is able to use both apps at the same time.



Questions:



Is there a setting we need to turn on to disallow Slide Over apps? If not is there a event we can subscribe to when the slide over happens so we can request camera and microphone access again?



What we have done:




  1. We have set our application to require full screen in the project settings.

  2. We have tried subscribing to the following events on the AppDelegate:
    applicationDidEnterBackground, applicationWillResignActive, applicationDidBecomeActive. These events do fire once for the initial Slide over app open and close but not after consecutive Slide Overs with same app.

  3. Turning on all Background mode capabilities. Has no effect.

  4. On our ViewController.swift we have tried to subscribe to viewWillLayoutSubviews event. This event does not fire for apps opened with Slide Over.


Versions:




  • iOS 11.4.1

  • Swift 4.2

  • Xcode 10.1










share|improve this question















We have a WebRTC Swift 4.2 application using Google's native WebRTC code. We are having issues with Apple's App Slide Over Multitasking feature on iPads.



Issue:



What we are seeing is when our Application is running in a video call on an iPad as soon as another app is 'Slide Over' our app, our application stops using the video camera and microphone until the Slide Over app is closed. Once closed our application gets the microphone and camera back.



Expected Result:



Our application is still able to use the camera and microphone and the user is able to use both apps at the same time.



Questions:



Is there a setting we need to turn on to disallow Slide Over apps? If not is there a event we can subscribe to when the slide over happens so we can request camera and microphone access again?



What we have done:




  1. We have set our application to require full screen in the project settings.

  2. We have tried subscribing to the following events on the AppDelegate:
    applicationDidEnterBackground, applicationWillResignActive, applicationDidBecomeActive. These events do fire once for the initial Slide over app open and close but not after consecutive Slide Overs with same app.

  3. Turning on all Background mode capabilities. Has no effect.

  4. On our ViewController.swift we have tried to subscribe to viewWillLayoutSubviews event. This event does not fire for apps opened with Slide Over.


Versions:




  • iOS 11.4.1

  • Swift 4.2

  • Xcode 10.1







ios swift ipad camera webrtc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 5 at 17:54

























asked Nov 5 at 16:47









Austin

13617




13617








  • 1




    Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
    – Samantha
    Nov 5 at 16:59






  • 1




    @Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
    – Austin
    Nov 5 at 17:11














  • 1




    Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
    – Samantha
    Nov 5 at 16:59






  • 1




    @Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
    – Austin
    Nov 5 at 17:11








1




1




Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
– Samantha
Nov 5 at 16:59




Have you enabled any Background Modes? Particularly the audio or voip ones? (In the project file under the Capabilities tab.)
– Samantha
Nov 5 at 16:59




1




1




@Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
– Austin
Nov 5 at 17:11




@Samantha We do have the Voice Over IP turned on. We tried turning on a couple other settings in capabilities but are still getting the same result.
– Austin
Nov 5 at 17:11

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53158695%2fdetect-when-app-is-slide-over-on-top-of-running-app-on-ipad%23new-answer', 'question_page');
}
);

Post as a guest





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53158695%2fdetect-when-app-is-slide-over-on-top-of-running-app-on-ipad%23new-answer', 'question_page');
}
);

Post as a guest




















































































這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini