I have a Titanium Mobile project for iOS devices and would like to make the music continue playing whilst the application is inactive, and if possible whilst the device is locked.
The audio files are within the application only, not in the iTunes library.
You'll have to set the background modes in the .plist file that is generated as part of the XCode project.
See this link
http://www.codeproject.com/Articles/124159/Hour-21-Building-Background-Aware-Applications
and look for the section called Adding the Background Modes Key
Background audio playing must be a fundamentally important part of your app's functionality to use this, otherwise it will be rejected when you apply to submit it to the app store.
Related
I'm using the App Intents API to provide an automation through the iOS Shortcuts app. When my intent runs, I'd like to be able to decide if I want to open the app (bring it to the foreground) or not. I know openAppWhenRun can be used to open the app, but its value cannot be modified.
I tried using openAppWhenRun, but it does not have a setter. Therefore, I cannot dynamically update this variable to determine if the app should be opened in the foreground or not.
I need to open Google Play Music app from my app and if it's not installed, open app store page. The latter works. For other music apps I have found the deep link schema like "spotify:" which opens the app.
Is there similar schema supported by Google Music app?
googleplaymusic://i - this should work. The "i" can be replaced with anything. You may or may not need it depending on your use.
I am fairly new to IOS App Development. I have an app which plays audio and videos that are present in the App Package. Now I want my app to play audios and videos that are outside the App Package altogether i.e. if I uninstall my app the media files should not be deleted.
I have heard that all the apps can access media files that are added through ITunes. So I want to know the path of this folder(Kindly excuse me if you find my terminology vague. As I said I am fairly new to IOS App Development).
You cannot store the files outside app sandbox. Where as we can save image/video files to photos app
using, UIImageWriteToSavedPhotosAlbum/UISaveVideoAtPathToSavedPhotosAlbum
Please check developer documentation
I want to develop app using baker framework, but I don't want to open my app in newsstand.
I want to open my app as regular app.
In baker framework demo I added property in Plist Application presents content in Newsstand equals to NO.
Now my app is open as regular app, but the problem is downloading issue is not working, could anyone help me out what i need to do for that.
there is a lot more about this than just changing the plist. The whole download infrastructure in the Baker framework is built around Newsstand. If you disable Newsstand, this stops working.
Is it possible to take gps on when phonegap (iOS) app is in background?? In my app gps go off after some seconds. I use phonegap 3.1, backbonejs, requirejs, jquerymobile...
Some plugins???
thank's!
To keep your app running in the background on iOS, you need to build it using Xcode in order to set a project property which will allow your app to receive location updates while in the background. As far as I know, Phonegap Build does not allow you to do this and does not do it for you.
You can either manually edit the project .plist and add the key “UIBackgroundModes” key with a value of “location” or, with your project open in XCode, add the "Required Background Modes" key with a value of "App registers for location updates". This will cause iOS to trigger the JS callback function you have registered with navigator.geolocation.watchPosition() each time a location update is received.
See this page for details about iOS project keys.
See this page for how to set the background modes key in XCode. The value you want to select is “App registers for location updates”.