Skip to content

Commit ed52d0d

Browse files
Add a new firebase messaging test app using swiftui (#5301)
1 parent df75e50 commit ed52d0d

File tree

24 files changed

+888
-191
lines changed

24 files changed

+888
-191
lines changed

.github/workflows/messaging.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- 'Firebase/Messaging/**'
7+
- 'Examples/Messaging/Sample/**'
78

89
#Podspec
910
- 'FirebaseMessaging.podspec'
@@ -101,4 +102,13 @@ jobs:
101102
- name: PodLibLint Messaging Cron
102103
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=watchos
103104

104-
105+
messaging-sample-build-test:
106+
runs-on: macos-latest
107+
steps:
108+
- uses: actions/checkout@v2
109+
- name: Setup Bundler
110+
run: scripts/setup_bundler.sh
111+
- name: Prereqs
112+
run: scripts/install_prereqs.sh MessagingSample iOS
113+
- name: Build
114+
run: scripts/build.sh MessagingSample iOS

Example/Messaging/Messaging_Example-Bridging-Header.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

Example/Messaging/Sample/GoogleService-Info.plist

Lines changed: 0 additions & 28 deletions
This file was deleted.

Example/Messaging/Sample/Podfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
use_frameworks!
2+
3+
target 'Sample' do
4+
platform :ios, '13.0'
5+
6+
pod 'FirebaseAnalyticsInterop', :path => '../../../'
7+
pod 'FirebaseAuthInterop', :path => '../../../'
8+
pod 'FirebaseCore', :path => '../../../'
9+
pod 'GoogleUtilities', :path => '../../../'
10+
pod 'FirebaseMessaging', :path => '../../../'
11+
pod 'FirebaseInstanceID', :path => '../../../'
12+
pod 'FirebaseCoreDiagnostics', :path => '../../../'
13+
pod 'FirebaseCoreDiagnosticsInterop', :path => '../../../'
14+
pod 'GoogleDataTransport', :path => '../../../'
15+
pod 'GoogleDataTransportCCTSupport', :path => '../../../'
16+
pod 'FirebaseInstallations', :path => '../../../'
17+
18+
end

Example/Messaging/Sample/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Messaging App Setup
2+
3+
To run this app, you'll need the following steps.
4+
5+
#### GoogleService-Info.plist file
6+
7+
1. Go to the [Firebase Console](https://console.firebase.google.com/)
8+
2. Create a Firebase project if you don't have one already.
9+
3. Create a new iOS App if you don't have one already.
10+
4. Go to Project Overview -> General -> Your apps, select your iOS app and download the GoogleSerive-Info.plist file.
11+
12+
13+
#### Push notification provisioning profile
14+
15+
If you need to test push notifications sent from FCM console or Sender API, you will need to run this test app on real device. In order to do so, you will need a provisioning profile enabled with push notifications.
16+
17+
Following the [steps](https://firebase.google.com/docs/cloud-messaging/ios/certs) here to setup the properly APNs configuration to work with Firebase Messaging.
18+

0 commit comments

Comments
 (0)