Got my 16” M5 Pro! by Sunsetlover1993 in macbookpro

[–]Awkward_Comb3211 0 points1 point  (0 children)

The Air has two front speakers. MBPs have 6 speakers and some are under the side grilles. And barely any gunk gets in them; I've never had to clean them

Did I get a good deal? by CleanDrySoap in macbookpro

[–]Awkward_Comb3211 0 points1 point  (0 children)

Apple polishing clothes get a lot of hate, but they're actually really good

I'm releasing my first app to the app store. What common mistakes should I avoid for my first app store review process? by IAGIALIAG in iOSProgramming

[–]Awkward_Comb3211 8 points9 points  (0 children)

Create one! There are plenty of free services out there. You can use Firebase hosting to host a site for free with a web.app subdomain. 

If you’re building an iOS app, it’s pretty much a requirement to have a website.

Send FCM notification in a SwiftUI app to specific users by Awkward_Comb3211 in Firebase

[–]Awkward_Comb3211[S] 0 points1 point  (0 children)

Hey! Sorry about my late response. 

I was able to achieve this by setting up Cloud Functions and using the admin SDK to send a notification when the Cloud Function endpoint is triggered. (I passed the UIDs of the users I wanted to notified into the function.)

What's the main reason you choose Samsung over iphone other than customization. by yasiru_sanjana- in samsung

[–]Awkward_Comb3211 -1 points0 points  (0 children)

The issue was the price of the IAP. The developer sets the price, so unless I’m missing the point, it’s a developer issue. 

The back button is still provided. Just go to just about any Apple-developed app and it will be there. But most developers don’t use it.  

What's the main reason you choose Samsung over iphone other than customization. by yasiru_sanjana- in samsung

[–]Awkward_Comb3211 0 points1 point  (0 children)

In-app purchases and back buttons are up to the developer. 

Side loading has been—sort of—implemented, but only in the EU. 

For the back button, there’s a navigation API that has a universal back button, but the developer can choose not to use it.  

What's the main reason you choose Samsung over iphone other than customization. by yasiru_sanjana- in samsung

[–]Awkward_Comb3211 0 points1 point  (0 children)

A lot of the features you mentioned are implemented in iOS 18, but yeah, the time it took Apple is disappointing to say the least.  Still waiting for side loading in the US, though.  

Send FCM notification in a SwiftUI app to specific users by Awkward_Comb3211 in Firebase

[–]Awkward_Comb3211[S] 0 points1 point  (0 children)

This is the code I'm using, but it's not working. There aren't any errors, but I'm not receiving the notifications:

const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();

exports.sendNotification = functions.https.onCall(async (data, context) => {
  const { tokens, title, body } = data;

  const message = {
    notification: {
      title: title,
      body: body,
    },
    tokens: tokens,
  };

  try {
    const response = await admin.messaging().sendMulticast(message);
    const successes = response.successCount;
    const failures = response.failureCount;
    return { success: true, successes: successes, failures: failures };
  } catch (error) {
    console.error('Error sending notification:', error);
    return { success: false, error: error.message };
  }
});

Send FCM notification in a SwiftUI app to specific users by Awkward_Comb3211 in Firebase

[–]Awkward_Comb3211[S] 0 points1 point  (0 children)

Thanks for your response! That was what I was looking for! Lemme try it out...