본문 바로가기

iOS192

[iOS] App의 상태 별 Silent Push의 동작 Push notification not receiving in background iOS I am doing push notification in my project through GCM. My Application is able to receive notification in foreground but not in background. I receive a message inside the method func application( stackoverflow.com App의 상태 별 Silent Push의 동작 { "aps": { "alert": "Hello World", "sound": "default" "content-available" :1 } } state alert callback Foregr.. 2022. 5. 25.
[iOS] Register Push Device Token Apple Developer Documentation developer.apple.com Register Push Device Token Remote Push Notification을 사용하기 위해선 본인의 디바이스를 구분할 수 있는 device token을 APNs에서 받아와야 한다. Device token은 app과 device 모두에게 유일성을 가진다. app을 launch할 때 app은 APNs와 통신해서 device token을 받아오고, app은 그 토큰을 자신의 서버에 보내어서 notification을 보내는데 활용해야 한다. Device token은 다른 app에서 사용될 수 없으며 다른 디바이스에 설치된 동일 app또한 다른 device token을 사용한다. Device token이 바.. 2022. 5. 25.
[iOS] UIPageViewController Apple Developer Documentation developer.apple.com [iOS - swift] PageViewController (페이지 뷰 컨트롤러) PageViewController 구현 원리 ViewController가 들어있는 배열을 준비 첫번째 ViewController를 PageViewController에 set 초기화 나머지 ViewController 전환은 DataSource, Delegate에서 index값을 바꿔가며.. ios-development.tistory.com UIPageViewController Android의 ViewPager와 유사하게 여러 Page를 navigating해서 이동할 수 있다. 각 page를 관리하는 child viewController들.. 2022. 5. 21.
[iOS] UIView와 CALayer의 차이 [iOS - swift] View와 Layer의 차이 (UIView, CALayer) View와 Layer private let someView: UIView = { let view = UIView() view.backgroundColor = .systemBlue view.layer.shadowOffset = CGSize(width: 0, height: 10) view.layer.shadowColor = UIColor.black.cg.. ios-development.tistory.com UIView와 CALayer의 차이 UIView는 UIKit, CALayer는 Core Animation에 포함됨 OpenGL은 매우 low한 레벨에서 그래픽을 컨트롤할 수 있기 때문에 쉽게 사용하기 어렵기 때문에, 고수.. 2022. 5. 21.