Skip to content

Commit

Permalink
fix(android): add service exported flags w/ intent-filter (havesource…
Browse files Browse the repository at this point in the history
…#173)

(cherry picked from commit cde6d4b)
  • Loading branch information
erisu authored and lempere committed Oct 31, 2022
1 parent 1c3fd7c commit 0cf866d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</js-module>

<engines>
<engine name="cordova" version=">=9.0.0"/>
<engine name="cordova" version=">=10.0.0"/>
<engine name="cordova-android" version=">=9.0.0"/>
<engine name="cordova-ios" version=">=5.1.1"/>
</engines>
Expand Down Expand Up @@ -44,11 +44,17 @@
<receiver android:name="com.adobe.phonegap.push.BackgroundActionButtonHandler"/>
<receiver android:name="com.adobe.phonegap.push.PushDismissedHandler"/>

<service android:name="com.adobe.phonegap.push.FCMService">
<service android:name="com.adobe.phonegap.push.FCMService" android:exported="true">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>

<service android:name="com.adobe.phonegap.push.PushInstanceIDListenerService" android:exported="true" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
</config-file>

<config-file target="config.xml" parent="/*">
Expand Down Expand Up @@ -84,6 +90,8 @@
</platform>

<platform name="ios">
<preference name="IOS_FIREBASE_MESSAGING_VERSION" default="~> 6.32.2"/>

<config-file target="config.xml" parent="/*">
<feature name="PushNotification">
<param name="ios-package" value="PushPlugin"/>
Expand Down Expand Up @@ -112,10 +120,11 @@
<framework src="PushKit.framework"/>

<podspec>
<!-- keep empty `config` object to prevent `cordova-common` install issues.-->
<config></config>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="Firebase/Messaging" spec="~> 6.31.0" />
<pod name="Firebase/Messaging" spec="$IOS_FIREBASE_MESSAGING_VERSION" />
</pods>
</podspec>
</platform>
Expand Down

0 comments on commit 0cf866d

Please sign in to comment.