http://i.stack.imgur.com/K81uU.png
you can see the pic,there is a open button,the pic is passbook pass,i do not find any api or pass attribute to finish it. at the pass.json
"backFields" : [
{
"key" : "extras",
"label" : "Discount",
"value" : "Your friends receive 50% off price"
},
{
"key" : "phone",
"label" : "Phone",
"value" : "800-1234567890"
},
{
"key" : "date",
"label" : "Valid time:",
"dateStyle" : "PKDateStyleMedium",
"timeStyle" : "PKDateStyleNone",
"value" : "2013-01-03T00:00Z"
},
{
"key" : "terms",
"label" : "TERMS AND CONDITIONS",
"value" : "Lessons must be used between 1/1/2013 and 3/1/2013. Appointments for lessons must be made no less than 48 hours in advance. Customer must be able to swim."
}
]
i am not find other key or label to finish it. can you help me
If you want to add link to your application, I believe you should use the associatedStoreIdentifiers top-level key.
Optional. A list of iTunes Store item identifiers (also known as Adam IDs) for the associated apps.
Only one item in the list is used—the first item identifier for an app compatible with the current device. If the app is not installed, the link opens the App Store and shows the app. If the app is already installed, the link launches the app.
http://developer.apple.com/library/ios/#documentation/userexperience/Reference/PassKit_Bundle/Chapters/TopLevel.html
Related
Usually the App Store lists specific items that need fixing. However this error does not give any actions and there appears to be no way to remove this specific version.
I have screenshots, text fields, etc. required. There are no sections highlighted in red (like there usually are) and only the screenshots and (simple) whats new text has been changed since the last update, which went through to review fine.
No warnings or errors when uploading the binary in Xcode and the binary and screenshots have been uploaded multiple times with the same outcome.
Screenshot attached:
It turns out our issue was with a "appEncryptionDeclarations" key.
The error was returned from the API call to:
https://appstoreconnect.apple.com/iris/v1/reviewSubmissionItems
(Returned a 409 response code)
Response json:
{
"errors" : [ {
"id" : "...",
"status" : "409",
"code" : "STATE_ERROR.ENTITY_STATE_INVALID",
"title" : "appStoreVersions with id '...' is not in valid state.",
"detail" : "This resource cannot be reviewed, please check associated errors to see why.",
"meta" : {
"associatedErrors" : {
"/v1/appEncryptionDeclarations/" : [ {
"id" : "...",
"status" : "404",
"code" : "NOT_FOUND",
"title" : "The specified resource does not exist",
"detail" : "There is no resource of type 'appEncryptionDeclarations' with id 'null'"
} ]
}
}
} ]
}
The App Store UI was not showing the error or giving any detail to us.
We resolved by deleting the key ITSEncryptionExportComplianceCode and ITSAppUsesNonExemptEncryption from the info plist file. Uploading a new binary (it confirmed the keys were missing). Add back in with the same values as before and re-upload the binary.
Then into the review queue without problem. Hope this helps someone else.
I'm trying to update the fields associated with a list item via Graph Explorer, https://developer.microsoft.com/en-us/graph/graph-explorer (or a REST API call). For one of the fields, its value can be one item from a term set (managed meta data). I can see each of the elements in the term set and get each termguid when I visit https://XXX.sharepoint.com/Lists/TaxonomyHiddenList/AllItems.aspx.
I'm trying to do a PATCH request with a URL of something like https://graph.microsoft.com/beta/sites/XXX.sharepoint.com,FOO,BAR/drive/root/children/Test%20Document.txt/listItem/fields (or https://graph.microsoft.com/v1.0/sites/XXX.sharepoint.com,FOO,BAR/drive/list/items/1/fields) to identify the fields associated with a specific item
To update the CakeType field, I've set the request body to the following:
{
"CakeType": {
"Label": "Apple",
"TermGuid": "3a3ad73f-94ca-4d1e-a25c-XXXX",
"WssId": -1
}
}
When I then press the Run Query button, I get an InvalidClientQueryException with a message of "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value."
So, I've been trying to figure out what datatype to specify and how to... In various examples online, I've seen adding a field named __metadata and others adding #odata.type, like CakeType#odata.type for the case here. I've tried adding these lines within the CakeType JSON and outside it, for the whole structure. Neither worked...
{
"CakeType": {
"__metadata" : {"type" : "SP.Taxonomy.TaxonomyFieldValue" },
"Label": "Apple",
"TermGuid": "3a3ad73f-94ca-4d1e-a25c-XXXX",
"WssId": -1
}
}
or
{
"__metadata" : {"type" : "SP.Taxonomy.TaxonomyFieldValue" },
"CakeType": {
"Label": "Apple",
"TermGuid": "3a3ad73f-94ca-4d1e-a25c-XXXX",
"WssId": -1
}
}
I've also tried using the field name in the type which I thought I saw somewhere...
"__metadata" : {"type" : "SP.Data.CakeType" },
and tried
"CakeType#odata.type" : "SP.Taxonomy.TaxonomyFieldValue" ,
"CakeType#odata.type" : "SP.Data.CakeType",
"#odata.type" : "SP.Taxonomy.TaxonomyFieldValue" ,
The only things that gave a different error message was when I put "CakeType#odata.type" : "SP.Taxonomy.TaxonomyFieldValue" , immediately after the opening { or without the CakeType part within the CakeType...
{
"CakeType#odata.type" : "SP.Taxonomy.TaxonomyFieldValue" ,
"CakeType": {
"Label": "Apple",
"TermGuid": "3a3ad73f-94ca-4d1e-a25c-XXXX",
"WssId": -1
}
}
and
{
"CakeType": {
"#odata.type" : "SP.Taxonomy.TaxonomyFieldValue" ,
"Label": "Apple",
"TermGuid": "3a3ad73f-94ca-4d1e-a25c-XXXXX",
"WssId": -1
}
}
Each gave an error of "A type named 'SP.Taxonomy.TaxonomyFieldValue' could not be resolved by the model. When a model is available, each type name must resolve to a valid type."
This makes me think that I have the right field name but the wrong type...
So... what should I be naming the type so I can update the managed meta data field? or... what must the JSON be if the above structure is so far off... or how can I update the field strictly using the Graph API.
Thanks.
I thought looking at schema extensions might help (GET https://graph.microsoft.com/v1.0/schemaExtensions) but it didn't...
Ultimately, I'm trying to update the managed meta data field from Java with the classes in com.microsoft.graph.... so if I can figure out the right stuff with Graph Explorer, I can then move over to Java. I've seen some examples of such in other languages but can't figure out the right way to do same in Java.
Here is how I was finally able to do this.
First you need the id of the hidden field which is the displayName corresponding to your field CakeType which should be CakeType_0.
I used this REST call to get find the id:
https://graph.microsoft.com/v1.0/sites/{sitid}/lists/{listid}/items?expand=hidden
This will return all your fields and you want the one with the _0 suffix:
..."displayName": "Cake_0",...
"name": "d39a5181f12f41a483acb1a4e47477b1"...
It is this name id you need to use to update the field.
So then the PATCH call on your item is like this:
https://graph.microsoft.com/v1.0/sites/{sitid}/lists/{listid}/items/{itemid}
Then the payload syntax is like this:
{"{FieldID}":"{TermNumber};#{Term}|{TermGuid}"}
So it would look like this (assuming Apple is the 4th tag although I think -1 might work there too):
{"d39a5181f12f41a483acb1a4e47477b1":"4;#Apple|3a3ad73f-94ca-4d1e-a25c-XXXX"}
For more than one tag separate them with ;# all within the same quoted string
I was having the same issue, and found this: https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/33421180-support-for-setting-sharepoint-managed-metadata-t
The feature request:
Support for setting SharePoint Managed Metadata (taxonomy) column values and other complex column types on items via the Graph API
The response:
Thank you for your feedback! This work is on the backlog and currently isn’t scheduled. The feature will be updated here once dev work has started. -EY
When i try to create a test user in my iTunes connect account I am getting an error like "There are one or more validation errors below.". I have filled all fields and there is no errors shown in the fields.
Safari's web inspector is your friend here. Go to Develop->Show Web Inspector, then select the Network tab. Attempt to set up your new sandbox user. You should see a call highlighted in red - this is the HTTP resource that's hit during the attempted account creation. Click on that, and you should see the server response content, which should contain some more helpful details as a JSON payload – something like:
{
"errors" : [ {
"id" : "afafaf-1334-49ae-aaaa-19303ab5b2c8",
"status" : "409",
"code" : "ENTITY_ERROR.ATTRIBUTE.INVALID",
"title" : "The provided entity includes an attribute with an invalid value",
"detail" : "This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.",
"source" : {
"pointer" : "/data/attributes/password"
}
} ]
}
I want to add a new item to my list, I use firebase without user(email,password)
I want to add new items like this:
list
vdjs43ndjufd87
"name" : Jak
"university" : Harvard
list
vdjs43ndjufd87
"name" : Jak
"university" : Harvard
"age" : 23
this code is not working for me
let key = ref.child("posts").childByAutoId().key
let post = ["uid": userID,
"author": username,
"title": title,
"body": body]
let childUpdates = ["/posts/\(key)": post,
"/user-posts/\(userID)/\(key)/": post]
ref.updateChildValues(childUpdates)`
Did you check that you were allowed to add items to you database?
By default, the firebase database has a protection that you need to deactivate while you're in development if you didn't implement any connection module for the users of your app yet.
Don't forget to reactivate this protection before submitting your app though!
You can read more about rules here: https://firebase.google.com/docs/database/security/
I have tried the passbook tutorial:
http://www.raywenderlich.com/20734/beginning-passbook-part-1
which was recommended in some other SO thread a while ago.
Everything went smoothly, except:
I put the .pkpass file on a local web server, I tried clicking a direct link to the file, hoping it would open on my iOS sim/device, but all I got is "safari was unable to download the file". This also happened with the official iOS pass samples on the Passbook Programming Guide. While on the simulator, no errors come up on the console log.
I tried putting the pkpass in an email, open it from a real device, it comes up ok, but when I click "add", the coupon is not added to passbook. No errors come up either.
I tried creating a pass with passsource.com. If I use their "on the fly" method, I get a good coupon, and I am able to save it. If I choose "download pkpass file" and then use it as described above in #1/#2 - same errors.
The coupon is signed correctly, using correct team id and type id.
My JSON is (I garbled the team/type ids):
{
"formatVersion" : 1,
"passTypeIdentifier" : "pass.com.xxx.xx.xxx",
"serialNumber" : "123",
"teamIdentifier" : "XXXXXXXX",
"organizationName" : "my brand",
"description" : "my coupon",
"logoText" : "logo text",
"foregroundColor" : "rgb(255, 255, 255)",
"backgroundColor" : "rgb(135, 129, 189)",
"labelColor" : "rgb(45, 54, 129)",
"barcode" : {
"message" : "650438-5103453453",
"format" : "PKBarcodeFormatPDF417",
"messageEncoding" : "iso-8859-1"
},
"coupon" : {
"primaryFields" : [
{
"key" : "offer",
"label" : "for you",
"value" : "Free hug"
}
]
}
}
I tested the json with the online validation tool, it's valid.
any ideas why the coupon is not saved/downloaded?
tnx
I just found the cause of the issue. Seem that the Simulator supports drag-drop of a pkpass from Finder on the Sim. If I do that, I DO see a detailed error message in the system log (I am using the Console app), so I found the problem:
1. My json was changed after I created its sig in manifest.json, so I updated the sig
2. If I want the pkpass file to be served as a pass from a web server, it's not enough to provide a direct link to it, I also need to change the content type to application/vnd.apple.pkpass
After I handled both of these issues, I was able to serve the pkpass file from my web server.