I am developing an app in which I have implemented a small turn based game using game centre. I have facing a problem and problem is when I have start the game and invite a friend then the notification banner with appropriate message is display on friend device but when he play the game and give turn to me and when my app is in background mode then only the badge is display but notification banner is not display but if I have remove the app from background then notification banner appears correctly. This process is running correctly with iOS 7 & 8 but not with iOS 9. Please suggest me any idea to solve this.
Thanks in advance!
Related
I'm developing an iBeacon app. I have two beacons.
Firstly, when the app did enter background (locked screen)
- if app found the first iBeacon I show a notification
- Continue i use the second iBeacon and my iphone doesn't show notification
- But when i active screen so app reactive and show notification for the second ibeacon
I don't know why iOS doesn't show a notification for the second iBeacon after showed it for the first iBeacon in background status?
If both beacons are part of the same CLBeaconRegion, your app will only be triggered in the background on first detection. You can change this by defining two regions, one to cover each beacon.
I've integrated opentok ios sdk in my iOS 7 app, it is working fine, except this problem:
During video chat if I don't access iPhone for 5-10 seconds..then my app moves into background, causing viewer at other end to hear only audio. Video is disabled after app goes to background state.
I've observed same thing with their official example
https://github.com/opentok/opentok-ios-sdk/tree/master/samples/OpenTokFullTutorial
How can I avoid my app going to background while video chat is ongoing. Skype is working fine in this case, I want to achieve same thing.
What you want to do is prevent the iPhone from going to sleep. To do this, you cant try this:
[UIApplication sharedApplication].idleTimerDisabled = YES;
Here is iOS documentation on idleTimerDisabled
If you don't want the app going into background at all (like when the user taps on home button), you can opt to kill the app when it's not running instead of having it run in the background. To do that, check out iOS guide on opting out of background execution
If you do not want your app to run in the background at all, you can
explicitly opt out of background by adding the
UIApplicationExitsOnSuspend key (with the value YES) to your app’s
Info.plist file. When an app opts out, it cycles between the
not-running, inactive, and active states and never enters the
background or suspended states. When the user presses the Home button
to quit the app, the applicationWillTerminate: method of the app
delegate is called and the app has approximately 5 seconds to clean up
and exit before it is terminated and moved back to the not-running
state.
Hope that helped!
In the Phone app in iOS 7 you can still see the user's background. Is it possible for third-party devs to create this effect i.e. get the user's background?
Essentially a Cydia application that shows an iOS5 notification center banner each time a song changes in the iPod app.
You can:
- Tap the banner to open iPod app
- Tap and hold a banner to show playing controls in the multitasking switcher.
- Swipe a banner to the right to play the next track.
Demo: http://www.youtube.com/watch?v=9ajPdXcJkjs
Is this done with a UILocalNotification at time now-1 or any other method?
How does it not show up in notification center?
How does it do those actions on the notification bar?
Note: I'm asking this to develop a JB app, so no interest in official API's only.
I am the dev of NowListening !
NowListening doesn't provide real notifications, it just provide a banner each time the song changes (with any app) ;)
So, to do this, you have to create an instance of BBBulletin and push it to SBBulletinBannerController.
To dump all these classes, use class-dump.
I'm developing a application that plays music like itunes and it plays when the application is in background! That has a Audio Session started and it's receiving the remote controls events...
My Question is:
Is it possible to show the Album cover and the music title like itunes when my application is in background?
thanks