Comments (7)
"solved" the issue
PKField field = new PKField(PARAM_AGENCY_NAME, "Agency", req.getParameter(PARAM_AGENCY_NAME));
field.setIsRelative(null);
passRequest.getHeaderFields().add(field);
instead of just
passRequest.getHeaderFields().add( new PKField(PARAM_AGENCY_NAME, "Agency", req.getParameter(PARAM_AGENCY_NAME)));
from jpasskit.
hmm.. I don't get what you're trying to do and what isn't working.
Can you explain this in a little bit more detail? What are you doing? What's happening and what's the expected outcome?
from jpasskit.
Sorry if i was short. was getting frustrated, but i do appreciate the library and assistance.
i was creating a field and adding it to a List adding that to an event ticket and that to a pass.
when loading the pass on MAC it came up fine, but when loading it on iPhone it could fail to download.
from the phone log:
Invalid data error reading pass pass.com.foo.testpass/1234567. Unable to parse eventName Blah blah blah as a date. We expect dates in "W3C date time stamp format", either "Complete date plus hours and minutes" or "Complete date plus hours, minutes and seconds". For example, 1980-05-07T10:30-05:00.
but if i instead create the field then setIsRelative(null) then add it to the list. i do not get the error.
maybe have different constructors for text, currency, and date field types.
Thank you.
from jpasskit.
Ah. I guess it's interpreting it as a date because isRelative is set.
That shouldn't happen. In fact, I don't know how this is even possible since the default value for this field is null.
Are you using the latest version of jpasskit?
from jpasskit.
for some reason it showed 0.0.9 is that possible? changed ivy to 0.0.7 and now PKField(String,String,String) constructor is not an option, is that right?
from jpasskit.
Nope. 0.0.7 is the latest release version.
Maybe you were using a fork or something...
from jpasskit.
PKField now has the mentioned constructor, btw 😄
from jpasskit.
Related Issues (20)
- DepShield Deprecation Notice
- AppleWWDRCA.cer is expired, what certificate now? HOT 4
- Jackson needs to be updated to 2.15
- Missing release of jpasskit-parent on Maven Central HOT 3
- Using .p8 certificate HOT 4
- Dropping Java 8 support HOT 3
- Switch to gradle HOT 1
- FileNotFoundException in rest.ssl.keystore.path HOT 1
- I have a pkpass that doesn't open HOT 5
- `de.brendamour.jpasskit.signing.PKSigningUtil` is deprecated HOT 5
- Foreground color does not work if background image is set HOT 5
- How to add a QR code? HOT 1
- Create multiple passes at once HOT 4
- PKPassTemplateFolder - unable to load template path from .jar file HOT 1
- About PKPass and pass.json HOT 8
- Check if passes created already or not HOT 1
- Is it possible to set a message when using PKSendPushNotificationUtil.java HOT 2
- (Question) about sending push notification HOT 1
- known vulnerabilities in org.bouncycastle/[email protected] HOT 3
- Add warning when generating PKField with currencyCode HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpasskit.