Capture 3rd party app notifications in a pebble watchapp

270 Views Asked by At

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.

1

There are 1 best solutions below

2
MotoRidingMelon On

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.