Posts

Post not yet marked as solved
2 Replies
2.9k Views
In our app, we display contacts in UITableView. Let us say I have 300 contacts in my AddressBook, and all of them will be displayed in this table. Below this table, I have a UIButton to perform some action like invite selected contacts. With Voice Over enabled, when I get to the UITableView, it doesn't let me to proceed to the UIButton, unless I go over all 300 contacts. Is there a solution to override this and make it more friendly to the visually impaired users?
Posted Last updated
.
Post not yet marked as solved
0 Replies
628 Views
Hi 👋, We have a SPM in which we included a caf file, is copied to the bundle through the following code resources: [ .copy("Resources/silence.caf") ] The SwiftUI iOS app has no problem reading the caf file from bundle path file:///Users/{name}/Library/Developer/CoreSimulator/Devices/B75B8483-D213-4CB9-B30B-462047FA9E1E/data/Containers/Bundle/Application/A9D40BBE-7F25-4145-A750-85E6C19202E1/{app-name}.app/{spm-name}.bundle/silence.caf But the Catalyst app fails to read saying No such file or directory, but it does exist. CMD + Shift + G fails as well and I had to right click - show content on the .app folder. file:///Users/{name}/Library/Developer/Xcode/DerivedData/{project-name}-ccnjwvhsanbnmkhdqdcgyipagqsg/Build/Products/Debug%20(Staging)-maccatalyst/{app-name}.app/Contents/Resources/{spm-name}.bundle/Contents/Resources/silence.caf I hope this does not sound confusing. Is this expected behaviour? What would be the fix to make it work for Mac Catalyst app? Environment Mac OS - 13.0.1 Xcode - 14.2 swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Posted Last updated
.
Post not yet marked as solved
0 Replies
776 Views
We are trying to implement In-App purchase subscription offer. In our server we are generating the encoded signature based on product id, offer id and user hashname. When the encoded signature is used to make the purchase, it always returns this error : code - 12 (invalidSignature). Cannot connect to iTunes Store. Following is our Node code. Please help us fix this issue. TIAconst UUID = require("uuid-v4");const microtime = require('microtime');const express = require('express');const router = express.Router();const EC = require("elliptic").ec;const ec = new EC("secp256k1");const crypto = require('crypto');const BN = require('bn.js')const privateKey = 'private_key_goes_here'; //utf-8 pkcs#8 keyconst PrivateKeyBuff = new Buffer(privateKey);function asn1SigSigToConcatSig(asn1SigBuffer) { let buff = Buffer.concat([ asn1SigBuffer.r.toArrayLike(Buffer, 'be', 32), asn1SigBuffer.s.toArrayLike(Buffer, 'be', 32) ]); return buff.toString('base64') }router.post('/',(req, res)=>{ const appBundleId = "bundle.id"; const keyIdentifier = "key_id"; const nonce = String(UUID()).toLowerCase();// Should be lower case const timestamp = microtime.now(); const productIdentifier = req.body.productIdentifier; const offerIdentifier = req.body.offerIdentifier; const applicationUsername = req.body.username; const payload = appBundleId + '\u2063' + keyIdentifier + '\u2063' + productIdentifier + '\u2063' + offerIdentifier + '\u2063' + applicationUsername + '\u2063' + nonce + '\u2063' + timestamp; let shaMsg = crypto.createHash("sha256").update(payload).digest(); let bnMsg = new BN(shaMsg); let signObj = ec.sign(bnMsg, PrivateKeyBuff); const signature = signObj; let derSign = signature.toDER(); let base64EncodedSignature = asn1SigSigToConcatSig(signature); ; let response = { "nonce": nonce, "timestamp": timestamp, "keyIdentifier": keyIdentifier, "signeture": base64EncodedSignature } console.log("signature ", signature); console.log("response ", response) res.type('json').send(response);});module.exports = router;
Posted Last updated
.