-
-
Save CC-Ultra/70f590a1bc83ff1d21093fb3092ab5e5 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
FcmClient client= new FcmClient(new FcmClientSettings() ); | |
FcmMessageOptions options= FcmMessageOptions.builder() | |
.setTimeToLive(Duration.ofHours(1) ) | |
// .setRestrictedPackageName("com.ultra.firebase") | |
.build(); | |
String token="f2iP-Z2Cw9s:APA91bEmUXNb_3--E4H73oXTsqg6cX4TrEoQi4W2yHub8PS62NvFD3dDv9zMgYB6pfVg2X3HXt9oCuoG-Zi5TuCWnem2Pwu3nh2c2TZZXNI498dk-or4hsUkt_5UFcTyFYE6gjUrXwOG"; | |
NotificationPayload payload= new NotificationPayload("tTtitle","BooOdy","","","","","","","",null,"",null,""); | |
client.send(new NotificationUnicastMessage(options,token,payload) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment