Pass Type ID Really Needed? - iphone

There are lots of websites like passsource.com and api.passdock.com that let you customize and download a pkpass file that can be added to your passbook on iOS 6. All of these have their own Pass Type ID in the JSON as passTypeIdentifier key. My question is this. Why do you have to setup a Pass Type ID if you can build them online and distribute without ever needing one?

There are good reasons why a Pass ID and Apple Developer Account are required to distribute passes commercially. Take a look at this answer for a detailed explanation (and a small rant about one of the services above). Create Certificate and Pass Type ID at runtime

Related

Validate if English word is valid as in found in dictionary Flutter Dart

Developing a Dart Flutter app. I need to validate if an English word that the user inputted is in the dictionary or not.
Is there a package or API interface to Wordnet or similar dictionary?
Is it possible to get from the dictionary of word is verb, adjective or noun?
First of all you will have to find an API, if you find one, then you will have to communicate with it by using the 'http' package of Flutter and by creating your implementation.
If no API is available and I think it is the case (I'm not 100% sure), then you have two options.
The first one is to create a scraper for the dictionaries or the website, you can use the WordNet web interface(http://wordnetweb.princeton.edu/perl/webwn) and use the web_scraper plugin to try to access and retrieve the data (make sure you have the rights to do so).
The second option (for me the best), is to create your own API knowing that WordNet offers to download their database file under license.(https://wordnet.princeton.edu/download)
You can use a web framework(Express.Js https://expressjs.com/fr/ is quite simple) depending on the language you use to create your api rest using the WordNet database file or by creating a database with this file.
Clearly, it's complicated but not impossible, the last option is the most complex and the first one is rather unstable...
I specify that this answer is only my opinion and maybe there is another solution, if yes I let then other person answer.

Difference between explicit and wildcard while creating app id

I am new to swift i want to deploy my app to app store , while creating app id when i enter the bundle id there are two option i saw explicit and wildcard but i don't know what exactly they are and what are the difference between them.
refer me some some article or tutorial so that i can find difference between them and choose the best option for my app.
avoid negative voting or vote with a reason so that I can improve question.
There are 2 types of Ids you can Create :
1. Explicit ID
This will be the Application specific & Unique Id which you will create to target any specific Application
It will have Unique name & will be used only to install a single Application
Lets say if you are using Explicit Id & trying to install 1 application. Now you are using same ID & installing another application it will overwrite the old application
2. Wild Card ID
Wild card Id is the commonly created debug Id which will be created for testing multiple apps.
It will have fix prefix value like com.companyname.*
So in place of * you can pass your any of the application name which you want to use
So by this way you can install any number of applications using the same App Id. Its normally using for testing demo versions
Note :
With wild card App Id you would not be able to test few things like Push Notifications, InApp purchases etc. For that you must have to use the Explicit ID
Hope this helps to everyone.

What are the implications of changing a bundle identifier, and will it achieve what I want?

I want to store some keychain information (credentials and one or two details), and ACSimpleKeychain was recommended to me as a simple implementation that would be easy to use.
Furthermore, I would like several apps in a family to be able to use the same credentials: it's a nice-to-have and not a necessity, but I would like to store keychain information securely and have several almost-isomorphic apps aware of the same information.
I see that the .plist file includes com.foo.${PRODUCT_NAME:rfc1034identifier}, and was wondering two things:
First, if I set all apps' bundle identifier to com.foo.common, will this put them on the same page as far as keychain credentials?
Second, is such a replacement, meaning non-unique bundle identifiers, risky territory or bad engineering?
Storing credentials securely is what I most need and I believe that ACSimpleKeychain will do what I want.
The nice-to-have I am looking forward is having all the com.foo.* be able to opt-in (or be automatically assigned) to share credentials so users only have to enter data once.
Any advice would be appreciated.
The bundle identifier is the only item in a bundle that uniquely identifies the application and it's likely that problems may occur if it is not unique.
Also, your applications will not be allowed to go in the App Store without unique bundle identifiers as mentioned here.

Dancer::Plugin::Auth::RBAC member registration example?

I'm trying to build a membership site and I'm interested in using Perl to do this.
I looked at the Dancer framework which seems nice, but I can't figure out how to actually create a member registration / login process using Dancer::Plugin::Auth::RBAC. The CPAN page shows some example code but nothing that is very explicit or complete.
Googling around didn't turn up much usable except some simple examples with hardcoded login/passwords.
Thanks
B
Auth::RBAC is not for creating the members or the registration/management system but rather to do the actual authentication and authorisation based upon existing accounts.
Registering members is easy. You just create a suitable data store (DBIC is very nice and easy) and write a method to take details from the form, validate them and store them in the data store.

How to store data into an xml file on my website and extract the data out of it in my iphone app

In my application i need to create and save data into an xml file on my webspace and then i want to parse that xml into my iphone app. The question here is this is being done by two different parties a sender and a receiver.
But i don;t know how to parse that xml file into my app when i don't have the excat url of that xml because there will be number of people who will be using this app so how i can allocate the xml a specific url and pass that url at receiver end.
Thanks,
As there is a lot to this question I can only give you a vague answer to keep it short. The type of communication I recommend using is NSURLConnection. That will allow you to get the contents of say an xml from a URL.
As far as identifying individual users there is a few ways all of them a fair bit of work. You could create a sign in where the user has a unique username or email. Store that in the database on your server and pass it as part of the url.
You could also sort of use push notification registration where your server is required to keep an iPhone unique identifier to push information to Apple. I don't know enough to push notification to give you much guidance in this but if you don't want the user to create an account I think this would be the way. You could also query the server for a unique ID and store it in NSUserDefaults.
I would recommend the user account creation though. Also have a look at NSXMLParser for your xml parsing.
Beyond this help ask a more specific question. There are also many other ways to do this, its just the way I do it.
I can help you with the parsing of the XML.
iOS (like mac) has a built in XML parser.
Still I would recommend you use an external library, there are several available out there.
In a recent project, I very successfully used TouchXML: http://github.com/schwa/TouchXML
Here is a very simple tutorial on how to use the TouchXML library to parse XML files:
http://foobarpig.com/iphone/parsing-xml-element-attributes-with-touchxml.html