I work on application, that uses Remote Notifications, and I am curious about something:
I notice, that Facebook app cleans notifications and application badge, when you read it in browser,even if you killed an app from app switcher.That happens when friend add something in your timeline.
So my question is: How this is done?
My understanding is when Application is killed from App switcher it goes into suspended state and cannot execute code.Is it possible to do this in my app?
As I understand they just are sending push notification with badge number set to 0.
Related
I developed an xmpp ios chat application. The application requires the functionality of receiving the chat messages even if the application in background state. In order to achieve this, i used VoIP background execution to stay the user session alive instead of implementing apple push notification . The application is working fine. But the problem is that, the application is rejected by the appstore(Meta data rejection). Is there any quick way to solve this issue ??? Thanks in advance.
By giving background mode capabilities would not allow to make your app live if there is no functionality of VOIP in the app.
Use Pushkit ( Silent push notification ) like whatsapp, facebook etc chat app to keep your chat functionality in background or kill state.
Let me know if i could help you in push kit or anything else.
We're currently testing our existing app against the iOS8 Beta 5.
While testing the new iOS interactive notifications (as implemented in iMessage), when these arrive while focus is on our app, our app is not automatically interrupted. The app continues to run until the player has responded to the notification.
Our app is an action game, so you can see the problem with it continuing to run without user input.
Is there any way we can make our app recognise the incoming notification, and enter a paused state?
I had been expecting iOS8 to handle that gracefully and suspend the app, but it doesn't do this, at least not in Beta 5. So I assume that Apple are expecting developers to implement this themselves on a per-app basis?
I have managed to implement CLLocationManagerDelegate and in didDetermineState I can send a notification when the app is not running.
Now I want is to launch the app immediately as soon as it enters a particular region. How could I do that?
Thanks heaps in advance!
You cannot launch the app UI when a beacon is detected because of iOS restrictions. The closest you can do is to send a local notification on beacon detection, giving the user a message and allowing the user to choose to launch the app UI by tapping on this notification.
See here for a more detailed explanation:
Can I launch an app in Foreground when I enter an iBeacon range?
I'm creating an instant messaging application. imagine something like skype or yahoo messenger.
Now our server only sends push notification(for new messages) on when the app is on background/multitasked/minimized. But sometimes the server fails to detect that our app is on background, so sometimes it doesn't send push notification even if the app is on background.
Now I'm thinking that our server should just always send push notifications to device even if it is in foreground(so all messages will have a push notif), but we won't show it(the apns) when in foreground. This way, the server won't need to detect if the app is on background or not.
Do you think it's okay, or there will be a sideeffect of always sending apns, you see, if you are chatting whole day on foreground, the client will receive apns but won't show it?
No problem to send lots of notification without reading it, if the payload is different.
You are not forced to show notifications with an alert when a notification is received in foreground.
I want to know that is there any way that when my application keeps running. And device receive any type of local or push badge notification then my application will give a custom alert. That an application received a notification.
Your application can only respond to notifications meant for it... it can do nothing about notifications received by other apps...