Giter VIP home page Giter VIP logo

Comments (7)

mavriksc avatar mavriksc commented on August 30, 2024

"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.

drallgood avatar drallgood commented on August 30, 2024

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.

mavriksc avatar mavriksc commented on August 30, 2024

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.

drallgood avatar drallgood commented on August 30, 2024

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.

mavriksc avatar mavriksc commented on August 30, 2024

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.

drallgood avatar drallgood commented on August 30, 2024

Nope. 0.0.7 is the latest release version.
Maybe you were using a fork or something...

from jpasskit.

drallgood avatar drallgood commented on August 30, 2024

PKField now has the mentioned constructor, btw 😄

from jpasskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.