iOS Notifications Error - Puck.js - Solved (clear your iOS bluetooth cache when you update your services) #4059
Replies: 1 comment
-
Posted at 2022-08-08 by narath Update: I added additional code on the iOS side to check the characteristic, and it reports only:
Posted at 2022-08-08 by narath Okay - got it solved! It was due to the iOS Bluetooth caching. Since I had connected to the device at some point, it cached the initial service and characteristics (which were only read). I did try turning Bluetooth off at the swipe down menu but this apparently did not clear it. To clear the iOS bluetooth cache I do this:
This did the trick, and now setting notify works correctly, and I get notifications! Woot - go espruino! Posted at 2022-08-09 by @gfwilliams
Great! Thanks for letting us know! I'm afraid this does seem to be a common issue when developing Bluetooth devices with iOS :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-08-07 by narath
Hey everyone,
Really enjoying getting back into working with my Puck.js v 2.0b Firmware 2v14
I'm trying to get the Puck to notify my iOS app (Xcode 13.4), and I am able to find and connect to the Puck, discover the services and custom characteristic, but when I try to
setNotifyValue(true, for: customCharacteristic)
I get the following error and notifications are clearly do not work when I press the button:The Puck.js code I am using is from the documentation:
Appreciate any guidance.
Thanks,
Narath
Beta Was this translation helpful? Give feedback.
All reactions