This file contains hidden or 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
{ | |
"aps": { | |
"alert": "Push Notifications Test", | |
"sound": "default", | |
"badge": 1 | |
} | |
} |
This file contains hidden or 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
import UIKit | |
import UserNotifications | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func registerPushNotifications() { | |
UNUserNotificationCenter.current() | |
.requestAuthorization(options: [.alert, .sound, .badge]) { | |
(granted, error) in |
This file contains hidden or 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
func registerPushNotifications() { | |
UNUserNotificationCenter.current() | |
.requestAuthorization(options: [.alert, .sound, .badge]) {(granted, error) in | |
print("Permission granted: \(granted)") | |
} | |
} |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.List; | |
//Çözüldü-Solved | |
public class Sophie_Germen { | |
//A bir asal sayi iken 2.a+1 sayısıda asal sayı oluyorsa a sayısına Sophie Germen asalı denir. | |
public static void main(String[] args) { | |
List<Integer> list = new ArrayList<Integer>(); | |
for (int i = 2; i < 100; i++) { | |
boolean divide = false; |