Add support for .pkpasses

This commit is contained in:
Sylvia van Os
2025-09-04 22:57:18 +02:00
parent d936209b0e
commit 67701840bb
7 changed files with 312 additions and 5 deletions

View File

@@ -498,6 +498,8 @@ public class MainActivity extends CatimaAppCompatActivity implements LoyaltyCard
// However, several users stated in https://github.com/CatimaLoyalty/Android/issues/2197 that the formats are extremely similar to the point they could rename an .espass file to .pkpass and have it imported
// So it makes sense to "unofficially" treat it as a PKPASS for now, even though not completely correct
parseResultList = Utils.retrieveBarcodesFromPkPass(this, data);
} else if (receivedType.equals("application/vnd.apple.pkpasses")) {
parseResultList = Utils.retrieveBarcodesFromPkPasses(this, data);
} else {
Log.e(TAG, "Wrong mime-type");
return;