Skip to content

Expo Push Notification Node.JS SDK ile kendi sunucunuz üzerinden push bildirimleri sağlayın

Notifications You must be signed in to change notification settings

burakgokcinarr/rn-expo-push-notification-node-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Expo Push Notification with your own server

MIT License GPLv3 License AGPL License

NOT 1-): Bu çalışma gerçek bir cihaz ile test edilmesi gerektiğiden yapılan işlemler iOS üzerinden yapılmıştır. Android için Firebase Cloud Messaging (FCM) yapılandırılması gerekmektedir. https://docs.expo.dev/push-notifications/push-notifications-setup/#get-credentials-for-development-builds adresi incelenebilir.

NOT 2-): Expo anlık bildirimlere kayıt olurken "projectId" kullanılması gerekir. Bu EAS Build ile oluşan projelerde UUID oluşturur. https://docs.expo.dev/push-notifications/push-notifications-setup/#configure-projectid

img

img

Kullanılan Teknolojiler

***** Client *****

  • Expo CLI
  • Expo EAS Build
  • React Native
  • Expo Notification

***** Server *****

  • Express
  • MongoDB

Bilgisayarınızda Çalıştırın

  • Projeyi klonlayın
  git clone https://github.com/burakgokcinarr/rn-expo-push-notification-node-server.git
  • Proje dizinine gidin
  cd app-project
  • Proje için gerekli bağımlılıkları yükleyin ( Hem Client hemde Server için )
  cd client
  npm install or yarn install
  and
  cd server
  npm install or yarn install
  • Sunucuyu Başlatın ( Server için )
  cd server
  npm run start

EXPO Dev-Client Yapılandırılması

  Proje içerisinde yer alan 'eas.json' konfigürasyon dosyasında uygulamanın ios/android
  dev-client olarak başlatma ayarları yapılmıştır. Bu ayarlara göre aşağıdaki kodu terminalde proje içerisinde çalıştırın.
  * iOS için ( Real Device )
  eas build --profile development --platform ios

  Terminal üzerinde oluşan link veya eas hesabınız üzerinde build listesinden oluşturulan iOS yapılandırılması QRCode taranarak iTuness üzerinden gerçek cihaza yükleme başlatacaktır.

img

Cihazlarda çalıştırın with Expo Dev-Client

  npx expo start --dev-client

Detaylı bilgi için https://docs.expo.dev/develop/development-builds/introduction/#what-is-an-expo-dev-client

img

About

Expo Push Notification Node.JS SDK ile kendi sunucunuz üzerinden push bildirimleri sağlayın

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published