I implemented an animated button modifier like this:
Button(“Text”) {
Print(“default action”)
}.modifier(OnTouchDownGestureModifier())
Inside of OnTouchDownGestureModifier, it calls onTapGesture to trigger animation.
func body(content: Content) -> some View {
content
.onTapGesture {
However, default action does not trigger because of onTapGesture.
I tried manually calling the default action in the modifier, but it seems there is no such things.
Could anyone suggest any workaround with this?
Post
Replies
Boosts
Views
Activity
Hi, I'm building an app to build and update a wallet pass.
I want to send a push notification to the Wallet app to update the pass, but I got the following error.
:status: 403
apns-id: 3EDEDFEA-C8F1-215A-D9F3-2FA7D6C5AF0C
{reason: MissingProviderToken}
I am using the certificate and authentication header like this.
var storage = admin.storage().bucket()
var signerCert = (await getRawBody(storage.file('signerCert.pem').createReadStream())).toString();
var signerKey = (await getRawBody(storage.file('signerKey.pem').createReadStream())).toString();
// 方法1(クライアント立てる)
const client = http2.connect(url);
client.on('socketError', (err) => console.error('ソケットエラー!',err));
client.on('error', (err) => console.error('エラー!',err));
var header = {
'Authrorization': 'Bearer '+pushToken
}
const req = client.request({
':method': 'POST',
':path': path,
'cert': signerCert,
'key': signerKey,
'passphrase': '',
'headers': JSON.stringify(header),
});
req.on('response', (headers, flags) => {
for (const name in headers) {
console.log(`${name}: ${headers[name]}`);
}
});
req.setEncoding('utf8');
let data = '';
req.on('data', (chunk) => { data += chunk; });
req.on('end', () => {
console.log(`\n${data}`);
client.destroy();
});
req.end();
Language is Typescript.
The code sits in Cloud Functions.
Is there something wrong with the code?
I updated to Xcode 15, and tried to run my project with flutter run
Then this happened.
Could not build the precompiled application for the device.
Error (Xcode): Framework 'FirebaseABTesting' not found
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Error launching application on tenna (2).
Running from Xcode also shows this error.
I tried
cleaning build folder,
flutter clean,
deleting pods folder and podfile.lock,
pod repo update,
None of them works.
What is the problem?
What should I do??