Skip to content

Instantly share code, notes, and snippets.

@SaBenBurra
Created October 10, 2022 19:50
Show Gist options
  • Save SaBenBurra/bcf1f43ca6fd11869008b9e3e9550d4e to your computer and use it in GitHub Desktop.
Save SaBenBurra/bcf1f43ca6fd11869008b9e3e9550d4e to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
IPushNotificationService notificationService = new OnesignalPushNotification();
// veya
//IPushNotificationService notificationService = new FirebasePushNotification();
notificationService.sendNotificationToSingleUser("Hello", "123456");
notificationService.sendNotificationToAllUsers("Hello world");
//...
notificationService.sendNotificationToSingleUser("Hello", "123456");
notificationService.sendNotificationToAllUsers("Hello world");
//...
notificationService.sendNotificationToSingleUser("Hello", "123456");
notificationService.sendNotificationToAllUsers("Hello world");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment