@capacitor-community/fcm 7.1.0 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/ios/Plugin/{Plugin/Plugin.swift → Plugin.swift} +2 -3
- package/package.json +1 -1
- package/android/src/main/res/layout/bridge_layout_main.xml +0 -15
- package/android/src/main/res/values/colors.xml +0 -3
- package/android/src/main/res/values/strings.xml +0 -3
- package/android/src/main/res/values/styles.xml +0 -3
- package/ios/Plugin/Plugin.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/Plugin/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Plugin/Plugin.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Plugin/Plugin.xcworkspace/xcuserdata/max.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -23
- package/ios/Plugin/Plugin.xcworkspace/xcuserdata/stewan.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Plugin/PluginTests/Info.plist +0 -22
- package/ios/Plugin/PluginTests/PluginTests.swift +0 -35
- package/ios/Plugin/Podfile +0 -20
- /package/ios/Plugin/{Plugin/Info.plist → Info.plist} +0 -0
- /package/ios/Plugin/{Plugin/Plugin.h → Plugin.h} +0 -0
- /package/ios/Plugin/{Plugin/Plugin.m → Plugin.m} +0 -0
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ Download the `google-services.json` file and copy it to `android/app/` directory
|
|
|
127
127
|
- apple
|
|
128
128
|
- create an app identifier (apple site)
|
|
129
129
|
- add push notifications
|
|
130
|
-
- add signing request (https://
|
|
130
|
+
- add signing request (https://developer.apple.com/help/account/certificates/create-a-certificate-signing-request)
|
|
131
131
|
- generate an APN key and then note down the ID displayed. also download the p8 file (https://fluffy.es/p8-push-notification/)
|
|
132
132
|
- firebase
|
|
133
133
|
- add the downloaded p8 file to firebase settings with noted key ID and the account team ID
|
|
@@ -17,9 +17,8 @@ public class FCMPlugin: CAPPlugin, MessagingDelegate {
|
|
|
17
17
|
var fcmToken: String?
|
|
18
18
|
|
|
19
19
|
override public func load() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
FirebaseApp.configure()
|
|
21
|
+
|
|
23
22
|
Messaging.messaging().delegate = self
|
|
24
23
|
NotificationCenter.default.addObserver(self, selector: #selector(self.didRegisterWithToken(notification:)), name: .capacitorDidRegisterForRemoteNotifications, object: nil)
|
|
25
24
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
|
-
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
-
android:layout_width="match_parent"
|
|
6
|
-
android:layout_height="match_parent"
|
|
7
|
-
tools:context="com.getcapacitor.BridgeActivity"
|
|
8
|
-
>
|
|
9
|
-
|
|
10
|
-
<WebView
|
|
11
|
-
android:id="@+id/webview"
|
|
12
|
-
android:layout_width="fill_parent"
|
|
13
|
-
android:layout_height="fill_parent" />
|
|
14
|
-
|
|
15
|
-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
package/ios/Plugin/Plugin.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate
DELETED
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Bucket
|
|
3
|
-
type = "0"
|
|
4
|
-
version = "2.0">
|
|
5
|
-
<Breakpoints>
|
|
6
|
-
<BreakpointProxy
|
|
7
|
-
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
8
|
-
<BreakpointContent
|
|
9
|
-
shouldBeEnabled = "No"
|
|
10
|
-
ignoreCount = "0"
|
|
11
|
-
continueAfterRunningActions = "No"
|
|
12
|
-
filePath = "PluginTests/PluginTests.swift"
|
|
13
|
-
timestampString = "539031493.297595"
|
|
14
|
-
startingColumnNumber = "9223372036854775807"
|
|
15
|
-
endingColumnNumber = "9223372036854775807"
|
|
16
|
-
startingLineNumber = "28"
|
|
17
|
-
endingLineNumber = "28"
|
|
18
|
-
landmarkName = "testEcho()"
|
|
19
|
-
landmarkType = "7">
|
|
20
|
-
</BreakpointContent>
|
|
21
|
-
</BreakpointProxy>
|
|
22
|
-
</Breakpoints>
|
|
23
|
-
</Bucket>
|
package/ios/Plugin/Plugin.xcworkspace/xcuserdata/stewan.xcuserdatad/UserInterfaceState.xcuserstate
DELETED
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
-
<key>CFBundleExecutable</key>
|
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
-
<key>CFBundleIdentifier</key>
|
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
-
<string>6.0</string>
|
|
13
|
-
<key>CFBundleName</key>
|
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>BNDL</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
19
|
-
<key>CFBundleVersion</key>
|
|
20
|
-
<string>1</string>
|
|
21
|
-
</dict>
|
|
22
|
-
</plist>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// import XCTest
|
|
2
|
-
// import Capacitor
|
|
3
|
-
// @testable import Plugin
|
|
4
|
-
//
|
|
5
|
-
// class PluginTests: XCTestCase {
|
|
6
|
-
//
|
|
7
|
-
// override func setUp() {
|
|
8
|
-
// super.setUp()
|
|
9
|
-
// // Put setup code here. This method is called before the invocation of each test method in the class.
|
|
10
|
-
// }
|
|
11
|
-
//
|
|
12
|
-
// override func tearDown() {
|
|
13
|
-
// // Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
14
|
-
// super.tearDown()
|
|
15
|
-
// }
|
|
16
|
-
//
|
|
17
|
-
// func testEcho() {
|
|
18
|
-
// // This is an example of a functional test case for a plugin.
|
|
19
|
-
// // Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
20
|
-
//
|
|
21
|
-
// let value = "Hello, World!"
|
|
22
|
-
// let plugin = MyPlugin()
|
|
23
|
-
//
|
|
24
|
-
// let call = CAPPluginCall(callbackId: "test", options: [
|
|
25
|
-
// "value": value
|
|
26
|
-
// ], success: { (result, call) in
|
|
27
|
-
// let resultValue = result!.data["value"] as? String
|
|
28
|
-
// XCTAssertEqual(value, resultValue)
|
|
29
|
-
// }, error: { (err) in
|
|
30
|
-
// XCTFail("Error shouldn't have been called")
|
|
31
|
-
// })
|
|
32
|
-
//
|
|
33
|
-
// plugin.echo(call!)
|
|
34
|
-
// }
|
|
35
|
-
// }
|
package/ios/Plugin/Podfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Uncomment the next line to define a global platform for your project
|
|
2
|
-
platform :ios, '14.0'
|
|
3
|
-
|
|
4
|
-
def capacitor_pods
|
|
5
|
-
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
|
|
6
|
-
use_frameworks!
|
|
7
|
-
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
|
|
8
|
-
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
target 'Plugin' do
|
|
12
|
-
# Pods for IonicRunner
|
|
13
|
-
pod 'FirebaseMessaging', '~> 11'
|
|
14
|
-
capacitor_pods
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
target 'PluginTests' do
|
|
18
|
-
pod 'FirebaseMessaging', '~> 11'
|
|
19
|
-
capacitor_pods
|
|
20
|
-
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|