Search code examples
expobaqend

Expo Push Notifications with Baqend


I'm wondering if anyone has experience implementing Baqend's push notification service https://www.baqend.com/guide/topics/push/ on an Expo app?

he setup docs look like it requires modifying native code which makes me think it might not work with Expo... I really do not want to have to eject my app from expo.

Expo also has a push notification system: https://docs.expo.io/versions/latest/guides/push-notifications.html that avoids having to setup APNS and FCM, and it looks simple enough to execute a push through their server. It's just a http post.

Would it make more sense to use Expo's system and save the device token generated by Expo in a field in Baqend's Device class?

Also if any of the Baqend guys come across this, the tutorial link for "Setup Push: APNS" on https://www.baqend.com/guide/topics/push/ does not take you to a tutorial page.


Solution

  • You don't have to modify any native code for using push notifications with Baqend.

    Unfortunately, Baqend only supports APNS and FCM directly, but you can save the Expo token in the corresponding user object or a separate table and create a Baqend Module, which uses the Expo Node module to send push notifications.

    We updated the documentation today, and the links are now correct. Thank you for pointing that out.