Skip to content

Commit 68ea872

Browse files
authored
Merge pull request #6 from slycoder/messaging-support
Add firebase cloud messaging
2 parents 3d5e9fa + 1ca2a72 commit 68ea872

File tree

18 files changed

+597
-138
lines changed

18 files changed

+597
-138
lines changed

firestack.ios.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ export class Firestack {
1919
constructor(options) {
2020
this.options = options || {};
2121

22-
this._remoteConfig = options.remoteConfig || {};
22+
this._remoteConfig = this.options.remoteConfig || {};
2323
delete options.remoteConfig;
2424

25-
this.configured = false;
25+
this.configured = this.options.configured || false;
2626
this._debug = options.debug || false;
2727
this.auth = null;
2828

2929
this.eventHandlers = {};
3030

31-
this.configure(options);
31+
if (!this.configured) {
32+
this.configure(options);
33+
}
3234
}
3335

3436
configure(opts) {
@@ -278,4 +280,4 @@ export class Firestack {
278280
}
279281
}
280282

281-
export default Firestack
283+
export default Firestack

ios/Podfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def common_specs
1010
'Firebase/Auth',
1111
'Firebase/Storage',
1212
'Firebase/Database',
13-
'Firebase/RemoteConfig'
13+
'Firebase/RemoteConfig',
14+
'Firebase/Messaging'
1415
].each do |lib|
1516
pod lib
1617
end

ios/Podfile.lock

+12-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ PODS:
99
- Firebase/Database (3.4.0):
1010
- Firebase/Analytics
1111
- FirebaseDatabase (= 3.0.2)
12+
- Firebase/Messaging (3.4.0):
13+
- Firebase/Analytics
14+
- FirebaseMessaging (= 1.1.1)
1215
- Firebase/RemoteConfig (3.4.0):
1316
- Firebase/Analytics
1417
- FirebaseRemoteConfig (= 1.2.0)
@@ -28,6 +31,12 @@ PODS:
2831
- FirebaseDatabase (3.0.2):
2932
- FirebaseAnalytics (~> 3.2)
3033
- FirebaseInstanceID (1.0.8)
34+
- FirebaseMessaging (1.1.1):
35+
- FirebaseAnalytics (~> 3.3)
36+
- FirebaseInstanceID (~> 1.0)
37+
- GoogleInterchangeUtilities (~> 1.2)
38+
- GoogleIPhoneUtilities (~> 1.2)
39+
- GoogleSymbolUtilities (~> 1.1)
3140
- FirebaseRemoteConfig (1.2.0):
3241
- FirebaseAnalytics (~> 3.3)
3342
- FirebaseInstanceID (~> 1.0)
@@ -56,6 +65,7 @@ DEPENDENCIES:
5665
- Firebase/Auth
5766
- Firebase/Core
5867
- Firebase/Database
68+
- Firebase/Messaging
5969
- Firebase/RemoteConfig
6070
- Firebase/Storage
6171

@@ -65,6 +75,7 @@ SPEC CHECKSUMS:
6575
FirebaseAuth: 26fd291c3b552fc9658420b867520d5ae080421c
6676
FirebaseDatabase: 59bea2e7dfd81b3b8b2f8e396caf1a52c2ced6f7
6777
FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
78+
FirebaseMessaging: 6bc7cd2ecb875c1a9c0f8b94956398aa3145bbb8
6879
FirebaseRemoteConfig: c5378e689c1edb54ff62061b8f6a908263dd80ae
6980
FirebaseStorage: fa2a87dee81f682f553af6839daa37a750e65f6a
7081
GoogleInterchangeUtilities: def8415a862effc67d549d5b5b0b9c7a2f97d4de
@@ -74,6 +85,6 @@ SPEC CHECKSUMS:
7485
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
7586
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
7687

77-
PODFILE CHECKSUM: 7c7fd1e44ea19ff5da075fa03510b062b8fd32c2
88+
PODFILE CHECKSUM: 5d5f8420a09165006b0ea75e2e7cf13a52b1ea7c
7889

7990
COCOAPODS: 1.0.1

ios/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h

+205
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/FirebaseMessaging/Frameworks/frameworks/FirebaseMessaging.framework/Modules/module.modulemap

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)