Buzzy
Buzzy

Reputation: 2995

Capture 3rd party app notifications in a pebble watchapp

Is there a way to write a watchapp (for pebble time) which will capture notification from 3rd party apps coming from iOS?

For example, I want to capture WhatsApp notification and display it in my watchapp instead of the default notification UI.

Upvotes: 0

Views: 268

Answers (1)

MotoRidingMelon
MotoRidingMelon

Reputation: 2567

To get any notes from whatsapp, you're going to have to set up a notification listener like so:

[[NSNotificationCenter defaultCenter] addObserver:self 
                                     selector:@selector(handleReachabilityChange:)        
                                       name:@"reachabilityChanged" 
                                       object:nil];

However, all the documentation on whatsapp.com shows that while there are APIs for sending/sharing something via whatsapp, there is no published API for receiving notification.

So there are two possiblilites:

1) Use some kind of system wide notification capture tool and see IF any notifications are being sent, then, if they are, use those, knowing they could stop at any update of whatsapp.

2) There is no way to get that directly from whatsapp.

Upvotes: 0

Related Questions