Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pebble connects, but appMessagesAddReceiveUpdateHandler never called #4

Open
jacobrosenthal opened this issue Apr 4, 2016 · 8 comments

Comments

@jacobrosenthal
Copy link

Up/down presses on the demo app arent triggering appMessagesAddReceiveUpdateHandler

@jacobrosenthal
Copy link
Author

I reloaded the pebble firmware file to make sure that wasnt altered in any way, and the watch now alternates between saying "Up" and "Down" on press, or "Send Failed!"

The ios app still reports "Watch connected" but the console on most recent runs says
2016-04-04 13:02:17.044 PebbleKit-iOS-Tutorial-2[317:32905] [W] [PBWatchReconnectionService addPeripheralIdentifier:] Couldn't retrieve peripheral for identifier 5D1855AB-A883-5F6B-7E62-8C5C4E4722FB

@jacobrosenthal
Copy link
Author

Took another look at this to see if anythings changed, and it hasnt for me.

I found the appmessage docs updated with much more error checking and added all that. In cloudpebble I tend to get Error preparing the outbox APP_MSG_BUSY

On ios I still get the Couldn't retrieve peripheral for identifier error on every load. and appMessagesAddReceiveUpdateHandler is never called

@jacobrosenthal
Copy link
Author

@DmytroLisitsyn
Copy link

DmytroLisitsyn commented Jun 29, 2016

@jacobrosenthal, I faced this problems with messaging too.
Try to send some message from app to Pebble every time watchDidConnect gets called.

@jacobrosenthal
Copy link
Author

@DmytroLisitsyn Thank you sir. That does indeed fix this example! (though not the Couldn't retrieve peripheral for identifier warning)

@caichunjian520
Copy link

Still Couldn't retrieve peripheral for identifier
That is sad!
Anyone can help me?
KeyButtonUp and KeyButtonDown can not be called at all.

@jacobrosenthal
Copy link
Author

This was my fix commit in my fork
jacobrosenthal@8a8fcc0

@caichunjian520
Copy link

Thanks jacobrosenthal, Perfectly solve the issue. And is there a swift version for this example project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants