0

I'm working on an app where users can send remote notifications (to run background fetch on the receiving device) to friends. The Facebook API can provide a friendlist. My question is, how can I send remote notifications to the specific facebook friend?

Currently I am using Microsoft Azure to store some basic app information - can it be used for remote notifications as well?

If there is a better way to trigger background fetches on a specific "friends" device (selectable by the user) please let me know.

Here is an image of what I try to build.

enter image description here

Thank you for any help and useful information!

nor0x
  • 1,213
  • 1
  • 15
  • 41
  • Asking for specific recommendations on tools is off-topic. To answer your specific question, yes, Azure has notification support (just look at the mobile service offerings). – David Makogon Jul 04 '15 at 12:01
  • _“The Facebook API can provide a friendlist”_ – you will only get friends that are users of the same Facebook app as well. – CBroe Jul 04 '15 at 14:49
  • Okay sorry, I didn't know that this is off topic. I try to get information on the architecture of this system - is there an appropriate community on stackexchange? So I should build a custom friends feature, what do you think? – nor0x Jul 05 '15 at 07:51

1 Answers1

0

Have a look at Azure Notification Hubs (ANH), you can even use it for free to start with. Check "Using Tags to Target Users" in the documentation to get an idea of how it would work for your use case:

  • Your app registers at ANH with a tag containing the user of the app, e.g. "user_saladFingers" (where "saladFingers" is the facebook ID of the user)
  • When the user selects a friend to send a push notification to, you tell ANH to send a push notification to every device/app registered with the tag, e.g. "user_hubertCumberdale" (where "hubertCumberdale" is the facebook ID of the friend)

enter image description here

This tutorial explains in detail, how to send push notifications to certain users: Azure Notification Hubs - Notify Users.

Baris Akar
  • 4,895
  • 1
  • 26
  • 54