Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7655855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:37:13+00:00 2026-05-31T12:37:13+00:00

I am creating player application, which is playing audio streams through internet. I want

  • 0

I am creating player application, which is playing audio streams through internet. I want to add alarm functionality in my app – in particular time my player begins to play audio stream, I am trying to use UILocalNotification mechanism. But I’ve difficulties with it when my application in background mode, I can’t call ‘play’ method, when notification is receiced (can’t without user interaction). May be it is impossible?

But I bought this application:
http://itunes.apple.com/us/app/radio-alarm-clock-mp3-radio/id380271167?mt=8
And it seems like radio can start playing when local notification is received. Alarm can start playing radio when my app is in background mode.
Earlier I was trying to use NSTimer for this, but when my app goes to background, timer stops. If I use beginBackgroundTaskWithExpirationHandler: it works only 10 minutes. My app has special flag in plist, what is is audio application, and can playing music in background. In this case timers are working. But if I stop playing and go to background, timer is not working.
When I use \Radio Alarm Clock’ application, I hear ‘white noise’ from dinamic, when music in not playing. May be it is the secret of this application?
Can you help me with my problem? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:37:14+00:00Added an answer on May 31, 2026 at 12:37 pm

    maybe it’s too late.
    I had a look to the app you’ve mentioned at http://itunes.apple.com/us/app/radio-alarm-clock-mp3-radio/id380271167?mt=8 and yes, I think you are absolutely right, the only way to achieve that the application remains active while in background is to play a fake sound while it is in the background, which should be prohibited by Apple.

    I’ve also seen that they don’t use the remote iPod control, and this was strange at a first look.

    At the end my opinion is that they do the following:

    • Avoid the call to beginReceivingRemoteControlEvents which allows to activate the iPod controls while in background (in fact they don’t have it)
    • In this way, the status bar doesn’t show the play icon while
      the app plays audio
    • When the app goes in background, it probably plays a no sound periodically (once every 10 secs for example), in this way the app remains active
    • I saw that they also avoided to manage interruptions, for example in case another app is in foreground and plays music. Again Apple should have rejected the app for that reason, cos it is against the rules to follow while in background, but maybe they didn’t see it during the acceptance tests.

    So my interpretation is that they have intentionally missed to activate the iPod controls, just to avoid to show the play icon in the status bar while in background. In this way, the users are unaware that the app is active and is doing something strange after they close it.

    In addition you can see that the app doesn’t interrupt when another app plays in foreground a sound or audio, because otherwise they risk that the app doesn’t restart on time when the alarm shpould fire.

    That’s just my idea of how they do that, and I think this is the only way for an audio app on iOS to remain active while it is in background and is supposed to be halted (well, in case Apple doesn’t see the trick).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a 2D game and when the player dies I want the texture
I am using media player to play audio and video. I am creating own
i am creating a application in which sound is played when a button is
I am creating a music player application and it need that 2 actions to
I am creating an iphone application. In which I am needed to keep screen
I'm creating a web-application which will be taking survey-type data. Users are presented with
I am working on Android , I am creating a player for audio songs.
I'd like to write an application, which would imitate a player in an online
I'm having a problem with creating 24/7 video player for my application on WPF
I'm creating a flex-based video player, using the FLVPlayback component (imported from Flash Pro

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.