Add Key Serveur and test work
continuous-integration/drone/push Build is passing Details

pull/42/head
Emre KARTAL 2 years ago
parent 5ef83b3340
commit 1a723656fe

@ -7,7 +7,8 @@ class NotificationService {
await http.post(Uri.parse('https://fcm.googleapis.com/fcm/send'),
headers: <String, String>{
'Content-Type': 'application/json',
'Authorization': 'key='
'Authorization':
'key=AAAA56TmIPg:APA91bFeKMr_i6CbUuuUdFI1XkdaNE2A7OVHzxrPIsOSlDfhR6qzZwof7JNGxthWUKj1dRHQMheWNYaLbf3AtXUp9o4DX_gB2073yR4urqUEh9CjvnxVws_9g1cWMgmFS3EpaQEA3icC'
},
body: jsonEncode(<String, dynamic>{
'priority': 'high',

@ -0,0 +1,6 @@
import 'package:justmusic/services/NotificationService.dart';
Future<void> main() async {
var notif = NotificationService();
await notif.sendPushMessage("cAJAJw_aR7yPQbFTMS-r6H:APA91bEZs34Ab3-xSYeIGykHrxD5pRj-OyODaEcNBPtds1eLzEH0uzFkzCSQY7BvZQHEFPfeHSN7nri4webskXbu1zzgwe9NIdPagsc6IHaouuewWqWd9V7ucTeDeYt1Sbby4-pb6jtA", "Just Music", "Vien voir les nouveautés");
}
Loading…
Cancel
Save