react-native-watch-connectivity icon indicating copy to clipboard operation
react-native-watch-connectivity copied to clipboard

Add validation for user info payloads

Open mtford90 opened this issue 3 years ago • 3 comments
trafficstars

User info payloads should respect the following types: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PropertyLists/AboutPropertyLists/AboutPropertyLists.html otherwise receive user info throws a native error

Context: https://github.com/mtford90/react-native-watch-connectivity/issues/77#issuecomment-1125074227

cc @walterholohan @yolpsoftware

mtford90 avatar May 13 '22 14:05 mtford90

@mtford90 I wasn't sure if I should write here, the other issue linking here or create a new one.

Before I go into details, the issue I am seeing is that sendMessage works fine and transferUserInfo doesn't trigger any of the relevant delegate methods (didReceiveUserInfo, didFinish).

Testing simulators should work, right? Is this related? The payload is literally copy/paste from the docs.

RWOverdijk avatar Oct 21 '22 11:10 RWOverdijk

@RWOverdijk always best to test on real devices - I've found in the past that pairing simulators is extremely flaky - this is noted in the troubleshooting section of the docs.

mtford90 avatar Nov 16 '22 05:11 mtford90

Oh never mind me, I wrote my app natively instead, much easier. Thanks for replying though!

RWOverdijk avatar Nov 16 '22 09:11 RWOverdijk