Created
October 10, 2022 19:50
-
-
Save SaBenBurra/bcf1f43ca6fd11869008b9e3e9550d4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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