Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ReactNativeでIOSアプリのプッシュ通知を実装する
Search
masarufuruya
July 14, 2017
1.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ReactNativeでIOSアプリのプッシュ通知を実装する
masarufuruya
July 14, 2017
Transcript
19 slides
ReactNativeͰ IOSΞϓϦͷϓογϡ௨Λ࣮͢Δ
ݹՈ େ ; Δ ·͞Δ ࣗݾհ ϑϦʔϥϯεΤϯδχΞ ͓ࣄ ReactͷϑϩϯτΤϯυ։ൃ͕ଟΊ
࠷ۙReact NativeVRΛֶशத झຯ
ʮࠓͷςʔϚʯ ReactNativeͰ IOSΞϓϦͷϓογϡ௨Λ࣮͢Δ
ϓογϡ௨ͷ֓ཁ • Apple Push Notification Service (APNs) • Firebase Cloud
Messaging (FCM)
ϓογϡ௨ͷ֓ཁ • Apple Push Notification Service (APNs) • Firebase Cloud
Messaging (FCM) IOS/Android྆ରԠͰ͖ΔFCMΛ͏
ϓογϡ௨ͷ֓ཁ FCM ࣗલαʔόʔ or Sass ᶃ σόΠετʔΫϯͷऔಘ
ϓογϡ௨ͷ֓ཁ FCM ࣗલαʔόʔ or Sass ᶄ σόΠετʔΫϯͷొ
ϓογϡ௨ͷ֓ཁ FCM ࣗલαʔόʔ or Sass ᶅ Πϕϯτͷൃੜ ᶆ ϓογϡͷཁٻ
ϓογϡ௨ͷ֓ཁ FCM ࣗલαʔόʔ or Sass ᶇ ϓογϡ௨ (ϝοηʔδ)
ϓογϡ௨ͷ֓ཁ ࣗલαʔόʔ or Sass ReactNative ࠓճͷ͜͜ͷ෦ FCM
FCM͔Β௨Λड͚औΔ·Ͱͷखॱ 1. ReactNativeϓϩδΣΫτͷ࡞ 2. FCMͷ։ൃڥηοτΞοϓ 3. react-native-fcmͷηοτΞοϓ 4. ௨༻ͷReactίϯϙʔωϯτ࣮
ReactNativeϓϩδΣΫτͷ࡞ • react-native init IOSNotification • react-native run-ios ※ىಈ·Ͱ݁ߏ͔͔࣌ؒΔͷͰؾʹͪ·͠ΐ͏
• XCodeͷBundle Identifier ΛόϯυϧIDཝʹೖྗ FCMͷ։ൃڥηοτΞοϓ • ReactNativeΞϓϦͱFCM ͕͜ΕͰඥͮ͘
FCMͷ։ൃڥηοτΞοϓ • CocoaPodsΛ͏ • pod ‘Firebase/Messaging’ FCM㲗IOSؒͷ௨৴Λ Մೳʹ͢ΔϥΠϒϥϦ
react-native-fcmͷηοτΞοϓ • yarn add react-native-fcm • react-native link react-native-fcm IOS
FCM React IOSͰड͚औͬͨFCMͷ௨ΛReactʹͨ͢ΊͷϥΠϒϥϦ link!
react-native-fcmͷηοτΞοϓ • ެࣜHPΛࢀߟʹAppDelegateϑΝΠϧͷमਖ਼ • RCTBundleURLProvider.h not found ͷΤϥʔ͕ࢁग़Δ͕ແࢹͯ͠ਐΜͰOK
௨༻ͷReactίϯϙʔωϯτ࣮ • FCM.requestPermissions • Ϣʔβʔͷ௨ڐՄϦΫΤετ
• Objective-CXcodeͷ͕ࣝແ͍ͱਏ͍ • ࣮ػϏϧυ͕ࣦഊ͠·ͬͯ͘ਏ͍ • ࣮ػͰṖͷΫϥογϡ͕සൃͯ͠ਏ͍ • ͰɺUIपΓΛReactͰॻ͚Δͷͤ ࠓճτϥΠͯ͠Έͯͷॴײ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ
More Decks by masarufuruya
See All by masarufuruya
DevOpsに投資するリソースの無いスタートアップがふりかえりを改革して自己組織化されたチームへ近づいてる話
masarufuruya
1
1.9k
SQL利用者を3倍に増やしデータの民主化を推進した話.pdf
masarufuruya
0
910
BigQuery Scriptingを利用してCloudSQLのテーブルを転送する仕組みを作った話
masarufuruya
0
73
未経験からデータエンジニアに チャレンジして学んだ大切なこと
masarufuruya
0
820
ドラッカー風エクササイズを導入して エンジニアチームの相互理解を促進した話
masarufuruya
1
1.6k
ReactNativeで勉強会のビューワーアプリを作ってみて学んだ知見
masarufuruya
0
420
Watsonを使って音声入力できるVRブレストアプリを作っている話
masarufuruya
0
520
非SPAで小さく始めるReactアーキテクチャ
masarufuruya
1
1.5k
Web+スマホ+VRで一人ブレストアプリを作ってみた
masarufuruya
0
290
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
680
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
480
Building AI with AI
inesmontani
PRO
1
1.4k
sira's awesome portfolio website redesign presentation
elsirapls
0
510
Art, The Web, and Tiny UX
lynnandtonic
304
22k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
330
Docker and Python
trallard
47
4.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k