Closed woolfel closed 8 years ago
yes?
looking at apple's docs, it doesn't say if the previous release had it as a string. Do you know?
Well.. that's the passkit framework. That one isn't as relevant for jPasskit.
If you look here, it just tells you "any JSON data" which I interpreted as String:
thanks for the link. The error my co-worker is getting in iOS is this:
Invalid data error reading pass pass.com.mydomain/123456789. Value for key 'userInfo' must be of class NSDictionary, but is actually of class __NSCFString
So what is the solution? I can change userInfo to use java Map instead of String, but it's not clear to me what the correct fix is.
thanks
to be honest, I haven't tried to use that key.
You could serialize your Map to a string and store it, but that might or might not work...
I've changed the code to use a map instead. Can you please give that a try?
great thanks. I will try it tomorrow and report back.
The change is working for us. Going to close the ticket, thanks!
It appears in iOS9 userInfo is now NSDictionary. When you try to open a pass in another app, it throws an error.
https://developer.apple.com/library/ios/documentation/PassKit/Reference/PKPass_Ref/index.html#//apple_ref/occ/instp/PKPass/userInfo Objective-C
@property(nonatomic, copy, readonly) NSDictionary *userInfo