Firebase Cloud
Messaging for
iOS
James Daniels
@jamesuriah
Creating a successful
app is hard
Cross-platform
Integrated, but flexible
Developer experience matters
Getting Started with Firebase
Firebase/Core Analytics & Setup
Firebase/AdMob AdMob
Firebase/Messaging Notifications
Firebase/Database Realtime Database
Firebase/AppInvites App Invites
Firebase/DynamicLinks Dynamic Links
Firebase/RemoteConfig Remote Config
Firebase/Auth Auth
Firebase/AppIndexing App Indexing
...etc ...etc.
Only pod what you need
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'FireTomato' do
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
end
Firebase/Core Analytics & Setup
Firebase/AdMob AdMob
Firebase/Messaging Notifications
Firebase/Database Realtime Database
Firebase/AppInvites App Invites
Firebase/DynamicLinks Dynamic Links
Firebase/RemoteConfig Remote Config
Firebase/Auth Auth
Firebase/AppIndexing App Indexing
...etc ...etc.
Only pod what you need
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'FireTomato' do
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
end
pod 'Firebase'
http://www.istockphoto.com/photo/grumpy-exotic-tortoiseshell-cat-portrait-gm178110810-24724193?st=bbb22f7
CocoaPods?
Booo…!
Creating a Firebase Project
Creating a Firebase Project
Creating a Firebase Project
Creating a Firebase Project
Creating a Firebase Project
FIRApp.configure()
Firebase
console
Create OAuth
clients
Create analytics
account
Register for cloud
messaging
Configure AdMob
account
Create real-time
database
Create storage
bucket
OAuth Client IDs
Firebase Database URLs
Firebase Storage Host
Cloud Messaging Sender ID
Ad Unit IDs
GoogleService-Info.plist
Analytics App ID
FIRApp.configure()
Configure OAuth
library
Configure
Database library
Configure Cloud
Messaging library
Configure AdMob
library
Configure Storage
library
OAuth Client IDs
Firebase Database URLs
Firebase Storage Host
Cloud Messaging Sender ID
Ad Unit IDs
GoogleService-Info.plist
Analytics App ID
Configure
Anayltics library
APNs
Your Server
Why?
"The best code is no code at
all"
-- Jeff Atwood
Topics
⋅ Simple UI, with no coding
⋅ Built on Cloud Messaging
⋅ Audience targeting
⋅ Conversion funnel insights
How it works
How it works
How it works
How it works
How it works
How it works
How it works
How it works
Sending server events
POST
https://fcm.googleapis.com/fcm/send
Sending server events
Sending server events
Sending server events
XMPP Callbacks
#firebase
Thank You!
James Daniels
@jamesuriah

Firebase Cloud Messaging for iOS