Notification when contact is modified in windows phone 7 - windows-phone-7.1

Contacts in the phone are displayed in my windows phone 7 app.
My requirement is to update the contact in my app when it is changed from the outside. How can i get the notification of change in contact..?
Or what is the best way of updating contacts with good app performance.
Thank you in advance.

There is no way to get notification on contact changes. All you can do is to re-read contacts from time to time (for example on app launching).

Related

Subscription to an event of Address Book in iOS

When a new contact is added to the address book, I need to do something to it. At least I need to get some contact identifiers for later use. As you may guess, I would like to my app works in background or maybe starts in the background when a new contact is added.
Is this even possible in iOS? If yes, how?
Thank you.
ABAddressBookRegisterExternalChangeCallback
Registers a callback to receive notifications when the Address Book database is modified.
You can get the updated contact with help of this : Detect what was changed from ABAddressBookRegisterExternalChangeCallback

iOS 10 GameCenter Invites via Messaging

We were utilising Turn Based Games via GameCenter since iOS 6, once it was introduced (running absolutely same code for years).
However, since iOS 10 invites do not work any more. The person being invited does receive a message in Messages saying "Invitation to play %game_name$".
No invitation push notification delivered to game itself (new turn notifications are delivered successfully).
No new game appears in current game list to accept invitation (we use standard GK*ViewControllers) as it was displayed before.
If the user tap the message in Messages an alert view with "Retrieving..." text is displayed for a short period of time and nothing happens.
Apple states (https://developer.apple.com/videos/play/wwdc2016/611/) no code changes are needed. But it's definitely broken (or "no changes" statement is false).
Any ideas, colleagues?
Invitations via iMessage don't work when the two devices use the same iCloud login. I was experiencing the problems you described until I changed the iCloud login to match the iMessage login on each device.
Have you succeed with Game center invitation through iMessage in iOS10? I have the same issue and i thing that we should rather use GKGameSession which is a iCloud based invitation.

How whatsapp get updated contacts from addressbook faster in iOS?

My findings
I am designing a logic to sync contact with my Backend. I gone through some apps that doing same thing in IOS. I will take the example of WhatsApp, I found that When I update any contact in Native Addressbook, it reflect that change into Whatsapp withing a fraction.
My Concern
I just want to know that how it is syncing in a very faster way. Even a new contact gets synced with its Remote server and get displayed on contact, and with the ability to initiate Whatsapp chat if that number is registered one.
Summary of Queries
So, in nutshell my queries are,
How Whatsapp is syncing the contact?
How whatsapp is getting just updated contact list from Native Addressbook (if it's doing so) ?
How whatsapp is just getting just new Contact added in addressbook, is there anything that manages like timestamp or anything else?
I know the following things are there like,
ABAddressBookGetPersonCount
ABAddressBookGetPersonWithRecordID
ABAddressBookCopyArrayOfAllPeople
Using the ABAddressBookGetPersonCount i can know if any new contacts are there but still how i will be able to know its Record ID without iterating each contact using ABAddressBookCopyArrayOfAllPeople
So i am just asking for the way to get just updated list.
The way to do this is by registering an external change callback. This way, your app will be notified of any changes to the address book as soon as they happen.

Notifications on remote change

I'm developing an application which holds a list of objects.
The user should be able to favorite some of these objects, which then gets saved for easy access. Simple enough, right.
However, in addition to that, I want it so that the application notifies the user (using a notification, like when you get a new SMS), whenever one of the favorited objects have had something changed (in my application the objects represent a pub, and a change to the pub is when it has a new event scheduled). The change is done on a remote server, using a webpage.
When my app is active I can just poll the server every few minutes and compare the properties of the object, and if I see a change notify the user.
But how will I do to make this work when my app is NOT in the foreground? I want the user to get a notification even if he/she is not currently running my app.
The app does not have any login-functionality, so I can't send out specific push notifications to specific users. So the only thing the server might have access to is perhaps the device ID. I.e. there is no real way for the server to know which favorites a device ID holds.
Is there some smart way to do this? On Android I can just use polling but as iOS doesn't allow code to run in the background in the same way I don't really know how to do.
All help greatly appreciated. Even if it's just a "I don't think that's possible".
Just create a table that associates device ID with favorites. When a favorite changes, send that device ID a push notification
The user is the device ID

Is that possible to run apps in the iOS app if user close it?

For example: an alarm app, if user close this iOS alarm app, will this app still possible to alarm user at the time they set?
For another example: an LBS app, if user close this iOS LBS app, will this app still possible to detect user's current location? Not the location that last time user opened.
I know it's possible in Android, but can't find any way to do in iOS. Please let me know which library I can research to achieve that.
Thank you!
iOS apps can perform limited functions in the background. They are documented in the App Programming Guide:
https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4-SW20
You can set alarms by using local push notifications. (https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction.html)
You can track location by using the Location Updates background mode.

Resources