Skip to content

Instantly share code, notes, and snippets.

View CoskunKurtuldu's full-sized avatar

Coşkun Kurtuldu CoskunKurtuldu

View GitHub Profile
public int Id { get; set; }
public string Name { get; set; }
public int CurrentGradeId { get; set; }
public Grade CurrentGrade { get; set; }
public StudentAddress StudentAddress { get; set; }
public virtual ICollection<StudentCourse> StudentCourses { get; set; }
public int Id { get; set; }
public string GradeName { get; set; }
public string Section { get; set; }
public ICollection<Student> Students { get; set; }
public int Id { get; set; }
public string CourseName { get; set; }
public string Description { get; set; }
public virtual ICollection<StudentCourse> StudentCourses { get; set; }
public int StudentAddressId { get; set; }
public string Address { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Country { get; set; }
public int AddressOfStudentId { get; set; }
public Student Student { get; set; }
public int StudentId { get; set; }
public Student Student { get; set; }
public int CourseId { get; set; }
public Course Course { get; set; }
<script src="https://www.gstatic.com/firebasejs/5.7.2/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.7.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.7.0/firebase-messaging.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyDdcd0TbwSsQIWKTWlJg1uptMNOpgjP95M",
authDomain: "web-bildirimleri-7915c.firebaseapp.com",
databaseURL: "https://web-bildirimleri-7915c.firebaseio.com",
projectId: "web-bildirimleri-7915c",
storageBucket: "web-bildirimleri-7915c.appspot.com",
messagingSenderId: "324534114351",
const messaging = firebase.messaging();
messaging
.requestPermission()
.then(function () {
console.log('Yetki izni verildi.');
});
importScripts('https://www.gstatic.com/firebasejs/6.0.2/firebase-app.js');
importScripts('https://www.gstatic.com/firebasejs/6.0.2/firebase-messaging.js')
// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
'messagingSenderId': '324534114351'
});
// Retrieve an instance of Firebase Messaging so that it can handle background
messaging.getToken().then(function(currentToken) {
console.log(currentToken);
}).catch(function(err) {
console.log('hata oluştu', err);
});